I have a emonTx V3 reporting PV generation and home electricity demand to a R Pi/RFM69, All working well on localhost/emoncms. However, I am having problems sending this data to remote emonscms.org. It appears that I have two sets of API. Can this be right? My account for emoncms gives me one set which works for the loclhost, but when I login to emonscms.org I get another set of API. Which may explain why I am not able to see my data remotely. Do I need another emon.conf file? If I do how does that work?
Any help would be appreciated
Rob
Re: Why do I have two sets of API?
Hello Rob
To post to emoncms.org you need to use the emoncms.org write apikey.
In your emonhub.conf file you should see the entry:
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = http://emoncms.org
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
senddata = 1
sendstatus = 1
Set the apikey here to your emoncms.org write apikey and you should see the data appear in the emoncms.org inputs page.
Re: Why do I have two sets of API?
You need the Write API Key of your emoncms.org account in emonhub.conf in order to post data to it. The following guide should help explain it a bit better:
http://openenergymonitor.org/emon/modules/emonpi#remote
Re: Why do I have two sets of API?
Thank you for your prompt reply and I understand that, but it raises these questions. When I do that I get no data going to my localhost view. Is data still being written to my SD card? Do I have to choose between one or the other systems to view my data or is it possible to use both?
Rob