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; int vcc; ADC_MODE(ADC_VCC); char temperatureCString; char humiditiyString; char pressureString; const int httpPort = 80;
Edit - fixed code formatting. BT, moderator.