Don in Discussions
Última actividad el 5 de Jul. de 2023

I am remotely monitoring solar energy. My monitors shut off at night to conserve battery power, ending data being sent to ThingSpeak, which is fine. I do want to be alerted quickly though during the day when data should be coming in. How can I do this? ReAct doesn't have any way to limit when actions will happen and TimeControl doesn't seem to be able to only perform during certain hours either. I've looked for examples where Matlab analysis might perform a task between certain hours but can't seem to find anything. FWIW, an email would be the preferred method of alert. ThingSpeak React (or similar) needed for NoData, but only during certain hours. MATLAB analysis is the way to go. You can trigger the analysis from a regular time control but start the code with a check on the time. (datetime('now')) If the time is in the range you want, run the check for data. If the time is outside working hours, exit gracefully and nobody gets upset :) There are a few good ways to check for missing data. e.g. There is a last update age API that will give you the age of the most recent post (age=webread(url)). Or you can just read the last n points with thingSpeakRead and look at the timestamp. There is a template to generate email alerts in ThingSpeak in MATLAB analysis, or you can see similar code here. Here is the alerts doc. Here is the specific page on send alert. react time control no data

Acerca de ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.