TimeControl (ThingSpeak) stopped running

4 Ansichten (letzte 30 Tage)
Vince Nguyen
Vince Nguyen am 7 Mai 2023
Kommentiert: chris weedon am 18 Okt. 2023
I have a TimeControl to trigger Matlab Analysis that fetches some external data to write to my ThingSpeak channels. It has been working just fine, until around May 6 2023 11:30AM UTC when it stopped working all of a sudden.
I could see in my Matlab Analysis that it Timed out. I fixed the issue in the Analysis. It ran just fine (manually). But when I set it up to be triggered from the TimeControl, it didn't work, even if I changed the frequency or made it a one-time thing. I even removed the TimeControl and made a new one but still nothing works. The Last Ran field remains empty even after the supposed trigger time.
Can someone please look into this issue? Thank you very much in advance.
  8 Kommentare
Perky Whale
Perky Whale am 8 Mai 2023
Bearbeitet: Perky Whale am 8 Mai 2023
Looks like it's up and running again as of about half an hour ago. 🤙
Vince Nguyen
Vince Nguyen am 8 Mai 2023
Cool, thanks! Waiting for an official explanation for why this happened

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Christopher Stapels
Christopher Stapels am 8 Mai 2023
TimeControls are working fine as of May 8 12:45 UTC. If you continue to see missing TimeControls, please comment here.
  25 Kommentare
Christopher Stapels
Christopher Stapels am 16 Okt. 2023
We should probably start a new thread for this.But Ill put a quick example here. If you get stuck, please start a new post. If you wanted to catch an error for example with the thingSpeakRead command, you could use the following.
Since you dont have acess to the code when its triggered by timeControl, in the catch part at the bottom, you could replace
disp(ME.message)
with something like
thingSpeakWrite(channelId, ME.message,, 'WriteKey', writeKey);
that way the error message would get recorded to a channel.
try
thingSpeakRead(channelID, data, 'WriteKey', writeKey);
catch ME
disp(ME.message);
end
I recently had an error form reading data and calculating the mean because in some instances, I didnt realize there wasnt any data to read and the code was failing. You might try wrapping the calculaiton part of your code in a try catch loop. It wont make the calculation fail, but it will make it so the code continues running even when it hits the error.
chris weedon
chris weedon am 18 Okt. 2023
thanks it seems to be working, I'll keep an eye on it

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu Read Data from Channel finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by