Dynamic data display in ThingSpeak dashboard

6 views (last 30 days)
Hi,
I have a set of data gathered from many IoT devices and instead of having dozens of different Matlab Visualization widgets on my dashboard, I would have to display only one and be able to manually choose which device's data to display. Do you know of any simple way to do so?
Thanks in advance for any help you can provide.
Cheers!

Accepted Answer

Christopher Stapels
Christopher Stapels on 26 Oct 2022
Edited: Christopher Stapels on 26 Oct 2022
There is a plugin app in ThingSpeak that you could use to crate a javascript app with a dropdown menu (I suspect, though I havent tried) However, you cannot make plugins public, so you would only be able to use it yourself. But if you do make one, you can embed it on a private view of your channel.
I would also suggest using the charts API, if gives you easy access to charting your data, and you could create a seperate site that calls the charts API to show the desied data. I've sen some sucess using google sites to generate such a thing perhaps.
The easiest way to do this would be to create a MATLAB app in appdesigner if you have a MATLAB license.
Actually the javascript plugin worked really well! This took me about 2 minutes to make, using this link.
One problem is that the button dindt persist, I think you need to write the html so the button stays and then link opens in a subpanel or somemthing. Bet its possible with just a bit more effort.
  2 Comments
Julien
Julien on 26 Oct 2022
Thank you so much for the answer. I was looking at coding this within Matlab and couldn't make it work but what you propose makes perfect sense.
Thanks for taking the time to reply!
Christopher Stapels
Christopher Stapels on 26 Oct 2022
There arent active controls in the stateless version of MATLAB that runs in ThingSpeak. In the desktop MATLAB version this is much easier to do. (or MATLAB online)

Sign in to comment.

More Answers (0)

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on Read Data from Channel in Help Center and File Exchange

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!