what I’ve successfully done so far:
Sketch on NodeMCU that reads data from bme280 sensor and upload it to emoncms.org. After starting the sketch the first time, I was immediately able to see the datas from the nodemcu as inputs on emoncms.org.
Now I want to have emoncms on a raspberry pi B+ and therefore I flashed the emonSD-30Oct18 (Stable) from github. At the very first start, as recommended, I connected the pi via LAN cable in order to let it do its updates.
After that, in a webbrowser with the correct IP adress, I was able to create an account and log into it. Everything seems to work fine, but:
There are no inputs anymore from my sensor/nodemcu. I replaced the host with the correct ip adress (and no it doesn’t change anything, if adding input subfolder after the ip adress) and also replaced the input API in the code.
No success at all
What’s working though, is to copy a jason example from the inputAPI documentation page.
What am I missing here ?
this is part of the code I use:
//emoncms settings, change node ID for every node
const char* host = "192.168.0.133";
const char* nodeId = "Kitchen";
const char* privateKey = "emoncmsapireadandwritekey";
float h = 0;
float t = 0;
float p = 0;
const int httpPort = 80;
Is there anything in the log window on the admin page to indicate if there are any errors? If not, in the emoncms folder you will find a file settings.php. Look for the logging option and change it to INFO level.
When the NodeMCU posts to emoncms, you should see some entries in the log.
Is there anything in the log window on the admin page to indicate if there are any errors? If not, in the emoncms folder you will find a file settings.php . Look for the logging option and change it to INFO level.
Hmm, I cannot find the folder emoncms and settings.php, I’m sorry…
Unless you can put a print statement into your code and get the URL it is sending
This is exactly what I mean with complicated…
I’m a totally newby who just copy code together, which I may can adjust to my needs and that’s it…
I’ll do a research and give it a try, I want to get this going !
The IP differs from my first post, since the node connects to a different router now.
For my humble knowledge it looks all good, but there are still no inputs, yet.
I also put the whole link from above, except the measured values, in the host line of the emoncms setting section,
but again, no success…
The request from tshark from my last post wasn’t from the node.
I ran it again and from the node comes nothing, but every 5 min an output, that mqtt server got 0 data…
I get a 404 on my emonSD image if I omit the /emoncms sub-directory.
So do I and with /emoncms I also get an error, but didn’t copy it, because this seems to be a dead end for me.
I do not understand what’s going on here and can’t get it to work. I’m not able to expand the code for posting a print line to get the url, too. Maybe I find some ohter code for the nodemcu and emoncms. I just wanted something neat to display temperature and humidity with a little bit of logging and the code that I have was exactly what I wanted, when using it with “emoncms.org” as host for the cms.
But since it is not possible for me to run emoncms locally, I’ll may check for something else.
Thanks all for your help, it was definitely educational