November 7, 2019
I have just set up a node MCU to upload temperature data to Thingspeak. Am impressed so far.
This sends several temperature readings, then goes into deep sleep for 3 minutes and repeats the process.
Question: Is this likely to work for months reliably without rebooting or other intervention ? I want something that works when I am away on holiday.
I have had a Raspberry Pi sending data to PrivateEyePi, but this drops out at random every few months. In an (unproven) attempt to fix this, I have script to reboot every 30 minutes and a plug in timer to make sure it's rebooted every 24h. I haven't applied such solutions to the node MCU at present.
March 7, 2017
My most stable device is an esp8266-01 connected to cheerlights that I almost never have to reboot over more than 2 years. The nodeMCU that monitors the plant in my office seems to go out every 3-5 months with wide error bars. It goes to deep sleep for 30 minute intervals. The traffic monitor on the Rpi seems to go for an average of 5 months, we have a remote power plug on that one as well. The Wemos d1 mini's vary even more, but Ive used them in fairly rough hardware configurations.
My guess it that its 20% the code you have and 80% power supply issues. Spikes in the supply can lead to lock conditions or partial reset signals. I have very limited data, but the ESP8266-01's that I had hardwired to a wall plug seemed to improve when I added a bunch of filtering capacitors.
I connect a timecontrol that sends an email to me when the channel data is not updated. You could even automate that with your remote power plug if you wanted to. ThingSpeak does not presently have built in alerts, but you can use a webhook to IFTTT, or pushingbox, or if you wait a while ThingSpeak.
FYI MATLAB answers is now the preferred site for ThingSpeak community discussion.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Soham_Nale, masterhead, shubham mishra, katleenbrown440, avong, vidya
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457