June 26, 2019
I send a data point in a fixed interval to thing speak - e.g. every hour. When no data is available after 80 minutes - there is a problem and a Twitter alarm message shall be sent.
There should be only one message. The next time the analysis is called, it should know that the message has already been sent.
I would like to store a flag "message_sent" which is available in the next thingspeak analysis session - but this seems not to be possible.
Is there a way how to do this ?
I monitor the electrical power at home - when no data point is sent this usually means that the fuse shut down the electricity - which should be fixed soon as the refrigerator will get warm.
March 7, 2017
for my plant monitor, I use a thingspeak field to store the state variable that tells me i've already set en email to water the plant.. You have to make sure to update the value on every write, or use a seperate channel for the derived data, as I do, but it is definitely possible.
You can also write to the metadata for the channel to store a flag. That will not effect the feeds.
Here is the MATLAB analysis I use.
data=thingSpeakRead(channelID,'ReadKey','xxxxxxxxxxxxxxxxx','NumDays',90,'Fields',[1 7 8 ]);
%find out if an email has already been sent
message='The plant is too wet.'
message='The soil is wet.'
message='Water needed soon!'
webwrite('email API service');
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457