first try with emonhub: help request

Hi all

I have now my raspberrypi B working with emonSD-13-08-14.img.
In order to post data from EmonTx3 node to my SD card and to my emoncms server simultaneously, i need to edit emonhub.conf in the boot directory. In the  Reporters section i create 2 reporters, one for local and one for remote:

[reporters]

# This reporter sends data to emonCMS [local]
[[emonCMS]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://localhost/emoncms
        apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# This reporter sends data to myDomain [remote]
[[myDomain]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://www.myDomain.it/emoncms
        apikey = yyyyyyyyyyyyyyyyyyyyyyyyyyyy

Is it correct?
The local installation work fine and i see the correct input on my local page.
The remote server seems not work.  I can show this log:

pi@raspberrypi ~ $ tail -f /var/log/emonhub/emonhub.log
                           

2014-09-18 09:34:57,798 WARNING Send failure: wanted 'ok' but got <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <link rel='stylesheet' href='css/style.css' type='text/css' />
  <!--[if lt IE 7.]>
     <script defer type='text/javascript' language='JavaScript'  src='js/pngfix.js'></script>
  <![endif]-->
  <!--[if IE]>
  <link rel='stylesheet' href='css/style_exp.css' type='text/css' />
  <![endif]-->
  <link rel='stylesheet' href='css/wizard.css' type='text/css' />

  <script language='JavaScript' src='jquery/jquery.js?ver=1.6' type='text/javascript'></script>
  <script language='JavaScript' src='jquery/jquery.ba-bbq.js' type='text/javascript'></script>
  <script language='JavaScript' src='jquery/jqSOAPClient.js' type='text/javascript'></script>
  <script src='main.cgi?js=rg_config.js' type='text/javascript'></script>
  <script language='Javascript' src='js/lang.js' type='text/javascript'></script>
  <script language='Javascript' src='main.cgi?page=dm_path.js' type='text/javascript'></script>
  <script language='JavaScript' src='js/utils.js' type='text/javascript'></script>
  <script language='JavaScript' src='js/wizard_levels.js' type='text/javascript'></script>
  <script language='JavaScript' src='js/sm.js' type='text/javascript'></script>
  <script language='JavaScript' src='js/wizard_painter.js' type='text/javascript'></script>
  <script language='JavaScript' src='js/wizard_states.js' type='text/javascript'></script>
  <script language='JavaScript' src='main.cgi?page=back_end.js' type='text/javascript'></script>
  <script language='JavaScript'>
   $(document).ready(function(){
       dashboard_init();
   }); 
  </script>
<script language='JavaScript'>var dm_cookie='39073104';</script></head>
<body>
  <div id="logo"><div id="menu"></div></div>
  <div id="main">
   <div id="title"></div>
   <div id="content"><div id="center"></div><hr/>
    <noscript>
                                    <h1>Per visualizzare correttamente la pagina richiesta clicca su abilita. Abilita - Blocca</h1>
    </noscript>
   </div>
   <div id="bottom"></div>
   <div id="footer"></div>
  </div>
</body>
</html>

It's some html code that i dont understand. I can just notice that the var dm_cookie change at every try.  Maybe i need to activate cookies?

Emilio

TrystanLea's picture

Re: first try with emonhub: help request

Hello Emilio

translating: Per visualizzare correttamente la pagina richiesta clicca su abilita. Abilita - Blocca suggests that there is some kind of automatic blocking going on, not sure if its cookie related but its worth a try.

Does removing the www part from http://www. make any difference?

pb66's picture

Re: first try with emonhub: help request

Hi Emilio

It looks like the reporters are set up correctly, 

The log shows it didn't get the "ok" response to the URL it sent, instaead it got a load of html, this suggests the URL resulted in a webpage not a reply and towards the end of the html "<h1>Per visualizzare correttamente la pagina richiesta clicca su abilita. Abilita - Blocca</h1>" google translates to " To properly display the requested page click on Enable . Enable - Block " so either the url is incorrect in the emonhub.conf or there is another issue reaching that URLeg firewall, routing, forwarding etc.

If you cut and paste the URL and add the apikey you should be able to view the webpage and get a clue as to what is happening

This is a very similar situation to your other thread using oemgateway

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.