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
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
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 Community

类别

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