Submitted by Ian Eagland on Mon, 01/02/2016 - 10:59
Hi
I have NanodeRF base stations sending data to my Pi Emoncms server over the Internet as the buildings are remote. This is working without fault and has been for some years.
I would like to update to 9.3 as I use MQTT and would like to add security. Also I think it is a good idea to keep up to date.
I tried to update by renaming EMONCMS folder and doing a new install. However no matter what I did I could not see my inputs so I quickly reverted to 8.4
I copied everything from the old pi which seemed to go without problem as I has all my inputs and feeds are visible and it shows the correct write API but still I was not receiving anything.
So I set up a new test account. I tested it by posting data as shown in the input api help
I got the response ok and data visible on the inputs screen as I expected. I then set up a spare NanodeRF to send data to this test account with the following setup data:-
// or if your posting to a static IP server:
static byte hisip[] = { 192,168,1,20 };
// change to true if you would like the sketch to use hisip
boolean use_hisip = true;
// 2) If your emoncms install is in a subdirectory add details here i.e "/emoncms3"
char basedir[] = "/emoncms";
Watching this Nanode via the serial port serial I get the following response:-
Terminal log file
Date: 01/02/2016 - 10:18:06
-----------------------------------------------
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Time request sent
Time: t10,18,15
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Time request sent
Time: t10,19,15
BUT I See nothing on the inputs page!
This is driving me nuts. I feel I must have something simple wrong but I can't see it.
Has the requirement for posting to emocms changed?
Don't worry that I have posted my API key, it is only a temporary account.
Problem updating local server from 8.4 to 9.3
Submitted by Ian Eagland on Mon, 01/02/2016 - 10:59Hi
I have NanodeRF base stations sending data to my Pi Emoncms server over the Internet as the buildings are remote. This is working without fault and has been for some years.
I would like to update to 9.3 as I use MQTT and would like to add security. Also I think it is a good idea to keep up to date.
I tried to update by renaming EMONCMS folder and doing a new install. However no matter what I did I could not see my inputs so I quickly reverted to 8.4
To avoid disrupting my existing system I set up a new Pi2 with the latest Jessie as per the instructions here https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md omitting the step for emonhub as I do not use it.
I copied everything from the old pi which seemed to go without problem as I has all my inputs and feeds are visible and it shows the correct write API but still I was not receiving anything.
So I set up a new test account. I tested it by posting data as shown in the input api help
http://192.168.1.20/emoncms/input/post.json?node=1&json={power:200}&apikey=086b7380d7c041a8b9abd21fe9334b3f
I got the response ok and data visible on the inputs screen as I expected. I then set up a spare NanodeRF to send data to this test account with the following setup data:-
// or if your posting to a static IP server:
static byte hisip[] = { 192,168,1,20 };
// change to true if you would like the sketch to use hisip
boolean use_hisip = true;
// 2) If your emoncms install is in a subdirectory add details here i.e "/emoncms3"
char basedir[] = "/emoncms";
Watching this Nanode via the serial port serial I get the following response:-
Terminal log file
Date: 01/02/2016 - 10:18:06
-----------------------------------------------
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Time request sent
Time: t10,18,15
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Data sent: /emoncms/api/post.json?apikey=086b7380d7c041a8b9abd21fe9334b3f&node=15&json={rf_fail:1}
Time request sent
Time: t10,19,15
BUT I See nothing on the inputs page!
This is driving me nuts. I feel I must have something simple wrong but I can't see it.
Has the requirement for posting to emocms changed?
Don't worry that I have posted my API key, it is only a temporary account.
Regards
Ian