I installed the latest emoncms to my raspberry pi yesterday. I like the changes/improvements.
However, my NanodeRf could no longer post data to my local emoncms. It was working fine for about 3 months with the previous emoncms.
I don't understand what is going on behind the scenes on emoncms, but I fixed it by changing my NanodeRf code. I am using a modified version of NanodeRF_multinode.ino.
To fix the problem I changed one line in NanodeRF_multinode.ino, using "api" rather than "input":
change
str.print(basedir); str.print("/api/post.json?");
to
str.print(basedir); str.print("/input/post.json?");
Like I said, I don't understand this. Interestingly, either "api" or "input" work when posting to emoncms.org rather than my local emoncms. From my web browser I can send:
On Github, I see that the NanodeRF_multinode_static_IP.ino created three months ago also changed "api" to "input", but none of the other NanodeRf versions have that change.
New emoncms with NanodeRF_multinode - "api" vs "input" data posting problem to local installation of emoncms.
Submitted by edllew on Wed, 17/04/2013 - 16:38I installed the latest emoncms to my raspberry pi yesterday. I like the changes/improvements.
However, my NanodeRf could no longer post data to my local emoncms. It was working fine for about 3 months with the previous emoncms.
I don't understand what is going on behind the scenes on emoncms, but I fixed it by changing my NanodeRf code. I am using a modified version of NanodeRF_multinode.ino.
To fix the problem I changed one line in NanodeRF_multinode.ino, using "api" rather than "input":
change
str.print(basedir); str.print("/api/post.json?");
to
str.print(basedir); str.print("/input/post.json?");
Like I said, I don't understand this. Interestingly, either "api" or "input" work when posting to emoncms.org rather than my local emoncms. From my web browser I can send:
http://raspberrypi/emoncms/input/post.json?csv=100,200,300 ====> this works
http://raspberrypi/emoncms/api/post.json?csv=100,200,300 ====> this FAILS
http://emoncms.org/input/post.json?&csv=100,200,300 ====> this works
http://emoncms.org/api/post.json?&csv=100,200,300 ====> this works
On Github, I see that the NanodeRF_multinode_static_IP.ino created three months ago also changed "api" to "input", but none of the other NanodeRf versions have that change.
-Ed