No inputs in emoncms.org

I have edited my emonhub config file to upload data from my emonpi to emoncms.org by following the instructions given at https://github.com/openenergymonitor/documentation/blob/master/Applications/HomeEnergyMonitor/HomeEnergyMonitor.md , however no inputs appear. When I access my emonpi locally there is no problem.

Robert Wall's picture

Re: No inputs in emoncms.org

Have you used the Write APIkey from emoncms.org?

Toberwine's picture

Re: No inputs in emoncms.org

Yes I have

//Edit. Andrew your screenprint reveals your private API key! so I've removed it.   Paul (moderator)

pb66's picture

Re: No inputs in emoncms.org

Can you post some emonhub.log? (set "loglevel = debug" in emonhub.conf if it isn't already)

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Paul,

See here.

Thanks.

Toberwine's picture

Re: No inputs in emoncms.org

Thanks Paul.

pb66's picture

Re: No inputs in emoncms.org

Ok that shows no attempts to send to emoncms.org which would normally suggest a config issue,

Check the "emoncmsorg" section of emonhub.conf very closely for typos including case, Or you ou can copy and paste excerpts from your emonhub.conf from the emoncms webpage to the forum (but fudge or remove your apikeys), 

Otherwise can you restart emonhub using " sudo service emonhub restart " and attach the emonhub.log section showing the start up routine that should highlight if any attempt is made to create "emoncmsorg" and the settings used.

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Paul,

This is the relevant section of my config file with the apikey deleted.

I'm having some trouble with my network at the moment so I can't restart the emonpi using the sudo command, will it do to restart it manually by powering off then on again?

Andrew

[[emoncmsorg]]
    Type = EmonHubEmoncmsHTTPInterfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        pubchannels = ToRFM12,
        subchannels = ToEmonCMS,
        url = http://emoncms.org
        apikey =
        senddata = 1
        sendstatus = 1
[reporters]
[[emonCMS_remote]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://emoncms.org
        apikey = 
 

Toberwine's picture

Re: No inputs in emoncms.org

Paul,

I've done the restart command, hopefully the attached screen grab will show you what you were looking for.

Cheers,

Andrew

pb66's picture

Re: No inputs in emoncms.org

If you are using the "emon-pi" variant included on the emonPi SDcard image, which I suspect you are due to the the logs and emonCMS pages, you will not be needing the

[[emonCMS_remote]]
    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
    [[[runtimesettings]]]
        url = http://emoncms.org
        apikey = 

as that is a reporter which is for the original emonhub not this version

As for the 

[[emoncmsorg]]
    Type = EmonHubEmoncmsHTTPInterfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        pubchannels = ToRFM12,
        subchannels = ToEmonCMS,
        url = http://emoncms.org
        apikey =
        senddata = 1
        sendstatus = 1

that appears ok too (all bar the missing apikey) as far as I can tell so I'm at a bit of a loss until the start up logs arrive.

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Paul - see my post above.

Andrew

pb66's picture

Re: No inputs in emoncms.org

Hi Andrew, unfortunately it doesn't reveal anything, it looks like the initial setup logs were earlier maybe. there should be a run of phrases like creating this and starting that, we're specifically looking for any EmonHubEmoncmsHTTPInterfacer entries

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Hi Paul,

See new screen grab here.

Andrew

pb66's picture

Re: No inputs in emoncms.org

That shows the start of the "creation" process but there isn't enough info to know if it was successful, either by specific log entries or the absence of them.

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Sorry Paul. I've tried this again. The top line of the new grab is the last MainThread line which should overlap the previous log (although they are from different restarts).

Thanks again,

Andrew

pb66's picture

Re: No inputs in emoncms.org

Well there still isn't anything incriminating in the log, but neither does that section have any attempts to post the data to emoncms.org but there isn't enough log to be sure any send interval has passed.

If you have checked emonhub.conf for typos etc then there isn't anything you can do without proper access to the Pi even if we do spot something, so once you have access you can post a proper log and we can pick it up from there.

Paul

Toberwine's picture

Re: No inputs in emoncms.org

Hi Paul. Today I powered off the Emonpi and powered it up again, and re-pasted the apikey into my conf file. Bizarrely everything seems to be working now with inputs appearing in my Emoncms.org account.

Thanks so much for your help, I think I would have given up without it.

 

Comment viewing options

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