I have sensors that wake up at specific intervals ( ie 15 minutes), take a measurement and send it to Thingspeak.
I also have a Matlab Analysis script that examines the data in the stored fields and derives different values and then writes it to a different Field in the same channel.
My specific question is "Is there a way to trigger an Matlab script by watching for an update on a Channel field?" So for example, when Field1 gets updated, the Matlab analysis triggers and updates Field2.
The other option is just triggering on fixed intervals, but that feels inefficient and inaccurate.
Found my own answer.
Create a trigger that "on insertion" of data into a specific field, checks for "Not equal to" a value and triggers if true.
If I give it a nonsense value to check for, like a Humidity reading of -500, it will never meet the condition, and trigger the Matlab analysis every time.
Most Users Ever Online: 114
Currently Online: jacktheripper125
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee