How to display two ThingSpeak dashboard channel widgets, one from actual data input, and the other calculated.

조회 수: 7 (최근 30일)

If I write data representing Fahrenheit temperature from my remote Raspberry Pi to my ThingSpeak channel “xxxxxx”, then I can select a widget from my ThingSpeak channel menu to represent the Fahrenheit temperature via round gage, square info box, or chart, etc. How can I add three addition widgets representing a “calculated” Celcius temperature in same channel display? And, the Fahrenheit temperature field will update every 15 to 40 seconds as that rate was chosen on Raspberry Pi so as not to exceed the 15 second limitation of ThingSpeak channel accepting the remote write. I would want the Celcius widgets to update at same time frame. My best guess so far is to us Matlab analysis to read and calculate then write, but to a different channel, not the same channel. And that calculation can only be accomplished every 5 minutes via time control. That’s the minimum time allowed. That is not acceptable. Too slow. In each widget’s setup are multiple user choice blocks allowing for ticks, labels, spans, and colors, etc, etc. Why is there no block for a simple math manipulation on a field before displaying it? Other IoT cloud services offer that feature. Why not ThingSpeak? Perhaps I am missing something. Let me know.

  댓글 수: 2
Shore
Shore 2023년 3월 20일
Christopher,
Yes, I will expand on my project with a write up soon. It was put into actual operation in Alaska yesterday. I have used visualization as you stated but it still requires a notice to visitors that they must reload the page to see updates or all visualizations. So, widgets are dynamic but visualizations are not. I donot see that as problem however. A reload click of mouse is easy.
Christopher Stapels
Christopher Stapels 2023년 3월 20일
편집: Christopher Stapels 2023년 3월 20일
Looking forward to the write up. The are dynamic iin that they u[date with live data each type you load them, but I see what you are sayiing.
BTW, one of the many benefits of a paid license is the ability to auto refresh visualizations. Its still every 5 minutes but you dont need to press hte refresh button on the browser.

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

답변 (1개)

Christopher Stapels
Christopher Stapels 2023년 2월 21일
You can use 'on data insert' react to use MATLAB to translate and write to the other channel each time the original channel is updated.
You can only have one 'on data insert' eact howver, per user- so use it carefully.
The difference with ThingSpeak is that it has built in MATLAB so you can build your own completely customized visualization. Thanks for the widgets feature suggestions, Ill add them to our enhancement request list.
Can you share what you are measuring the temperature of? Im curious to know about the application.

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Configure Accounts and Channels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by