Will Thingspeak uploads work for months without rebooting my device ? | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Will Thingspeak uploads work for months without rebooting my device ?
No permission to create posts
November 7, 2019
5:15 am
Avatar
Jaizan
New Member
Members
Forum Posts: 1
Member Since:
November 7, 2019
sp_UserOfflineSmall Offline

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.

November 7, 2019
7:51 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 792
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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.
https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=ThingSpeak&sort=asked+desc

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

titan83, Svetoslav, abubakar, shindepavan551@gmail.com, fet61-fakohse, Mario Marquez

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457