필터 지우기
필터 지우기

Contents of Channel Status Updates disappears

조회 수: 1 (최근 30일)
Jan
Jan 2022년 7월 14일
답변: Christopher Stapels 2022년 7월 20일
Hi,
my Channel Status Updates show the right data for a while. After a few hours without sending status data, the Channel Status Updates window becomes empty. Is this the intended behaviour? I would prefer to keep the data, even if it is a few hours old.
Jan

답변 (2개)

Christopher Stapels
Christopher Stapels 2022년 7월 20일
Is this true after refreshing the page? The channel status updates widget shows onlu the last 24 hours of status.
You could create a custom MATLAB visualization to display more.
Heres some code to show the last 8 results (may need some tweaking though)
url='https://api.thingspeak.com/channels/592680/status.json?results=8';
out=webread(url);
myTab=struct2table(out.feeds);
disp(myTab.(3));
{' servoClose fill 200 sec sleep 1500 Seconds.json'} {' servoClose servoOpen off Work .json' } {' servoClose servoOpen off Work .json' } {' servoClose servoOpen off Work .json' } {' servoClose fill 200 sec sleep 1500 Seconds.json'} {' servoClose fill 200 sec sleep 1500 Seconds.json'} {'.json' } {' servoClose fill 200 sec sleep 1500 Seconds.json'}
see the status API for more helpful parameters.
  댓글 수: 1
Jan
Jan 2022년 7월 20일
Thank you, Christpher. The 24 hrs limitation is my problem. It's not clear to me why it is there. My application monitors rare events so that I get an empty status box most of the time.
I will look deeper into your code lines later.

댓글을 달려면 로그인하십시오.


Christopher Stapels
Christopher Stapels 2022년 7월 20일
I thnk the idea was to remove noise if you had a system that reports everytime (like the system on the channel in the code I shared.) Since there is a seperate status API, you can get the custom time frame or number of entries that you want, and there is less motivation for changing the status widget.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by