posting to emoncms.org works but local fails

I have setup my arduino with shield connected to the raspberry pi via usb.
This works very well, and posting to emoncms.org also works
But the data doesn't show up locally
I've set the logging level to debug, but don't see any errors. I only see communication with emoncms.org but nothing locally.

What did I do wrong?

part of my emonhub.conf file

######################################################
#######################  Reporters  #######################
######################################################
[reporters]

[[emonCMSlocal]]
    type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtime_settings]]]
        url = http://127.0.0.1/emoncms
        apikey = xxxxxxxxxapikeylocalxxxxxxxxxxxx

# This reporter sends data to emonCMS
[[emonCMSremote]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
    url = http://emoncms.org
        apikey = xxxxxxxxxapikeyremotexxxxxxxxxx

#######################################################
#######################  Interfacers  #######################
#######################################################
[interfacers]

# This interfacer manages the RFM2Pi module
[[SerialDirect]]

        Type = EmonHubSerialInterfacer
        [[[init_settings]]]
                com_port = /dev/ttyACM0
                com_baud = 9600
        [[[runtimesettings]]]

####################################################
#######################  Nodes  #######################
####################################################
[nodes]

# List of nodes by node ID
# 'datacode' is default for node and 'datacodes' are per value data codes.
# if both are present 'datacode' is ignored in favour of 'datacodes'
[[99]]
    datacode = h
    datacodes = l, h, h, h,

 

Edit - shortened comment lines to fix line wrapping - BT

pb66's picture

Re: posting to emoncms.org works but local fails

I'm not sure if
        url = http://127.0.0.1/emoncms

will resolve correctly. the usual entry is
        url = http://localhost/emoncms

and if that doesn't work we tend to use
        url = http://IP.ADD.OF.HOST/emoncms

​assuming you have assigned if a fixed IP at your router

"I've set the logging level to debug, but don't see any errors. I only see communication with emoncms.org but nothing locally."

That doesn't sound quite right, I would expect there to be something! there should be some logged attempts to send (regardless of whether they are successful or not) unless the reporter failed to create at startup (which should be logged too) 

Ahhah!!!    Remove the underscore from "runtime_settings"! if it can't find "runtimesettings" it will not create the reporter.

Paul

 

 

pimmernl's picture

Re: posting to emoncms.org works but local fails

Thanks!  Found another typo, now it works perfect.

 

 

Comment viewing options

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