I've got EmonTx -> Nanode -> Pachube, now I'm trying to get it to EmonCMS running on my home network.
I have EmonCMS installed on windows 7 machine using xampp, at http://192.168.1.54/emoncms2/
The only configuration I've changed from the example 'EtherShield_simpleClient_Emoncms_RF12' is:
byte mac[6] = { 0x54,0x55,0x38,0x12,0x01,0x23};
byte ip[4] = {192,168,1,8};
byte gateway[4] = {192,168,1,1};
byte server[4] = {192,168,1,54};
#define HOST "" // Blank "" if on your local network: www.yourdomain.org if not
#define API "/emoncms2/api/post.php?apikey=ChangedToMyAPIKey&json="
When I fire it up I get the stuff below from the serial console, so it all looks promising, but no data is getting into the database. If I try the example http://localhost/emoncms2/api/post?apikey=ChangedToMyAPIKey&json={power:252.4,temperature:15.4} it all works fine, just not from the Nanode. Am I missing something? I can ping the Nanode fine btw .
EtherShield_simpleClient_Emoncms_RF12
{emontx_ID:6,emontx_ctA:201,emontx_ctB:0,nPulse:0,emontx_temp1:0,emontx_temp2:0,emontx_temp3:0,emontx_V:2995}
sent
{emontx_ID:6,emontx_ctA:211,emontx_ctB:0,nPulse:0,emontx_temp1:0,emontx_temp2:0,emontx_temp3:0,emontx_V:2995}
sent
{emontx_ID:6,emontx_ctA:200,emontx_ctB:0,nPulse:0,emontx_temp1:0,emontx_temp2:0,emontx_temp3:0,emontx_V:2995}
sent
HTTP/1.1 200 OK
Date: Tue, 16 Aug 2011 12:45:21 GMT
Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.5
Set-Cookie: PHPSESSID=gkt87t8rcoushnkrpdijmednf5; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 145
Connection: close
Content-Type: text/html
<b{emontx_ID:6,emontx_ctA:204,emontx_ctB:0,nPulse:0,emontx_temp1:0,emontx_temp2:0,emontx_temp3:0,emontx_V:2995}
sent
HTTP/1.1 200 OK
Date: Tue, 16 Aug 2011 12:45:26 GMT
Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.5
Set-Cookie: PHPSESSID=td7b3s18gnom8rtma7n71i6hq3; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 145
Connection: close
Content-Type: text/html
Re: Nanode to EmonCMS
Hi,
Try the example here: https://github.com/openenergymonitor/NanodeRF . Its the most up to date and polished. You will need to insert your own API key and change the host name and server IP.
Good luck,