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

7 vues (au cours des 30 derniers jours)

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 commentaires
Shore
Shore le 20 Mar 2023
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 le 20 Mar 2023
Modifié(e) : Christopher Stapels le 20 Mar 2023
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.

Connectez-vous pour commenter.

Réponses (1)

Christopher Stapels
Christopher Stapels le 21 Fév 2023
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.

Communautés

Plus de réponses dans  ThingSpeak Community

Catégories

En savoir plus sur Configure Accounts and Channels dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by