How can I create a dashboard of widgets and graphs from multiple ThingSpeak channels?

10 visualizaciones (últimos 30 días)
I have multiple ThingSpeak widgets from different channels. Right now, monitoring them requires me to open multiple tabs in the browser, one tab for each widget. Is there a way to monitor all of them on the same page without having to open so many tabs?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 30 de Nov. de 2020
You can create a custom HTML page that embeds the widgets. Then, host that HTML page locally on their machine, or on a hosting service like: https://sites.google.com
Here is an example for this workflow: https://sites.google.com/view/mythingspeakdashboard/home
This pulls widgets from:
The steps to creating this dashboard are:
  1. Log in to: https://sites.google.com
  2. Create a new site
  3. Set up the logo, etc.
  4. On the right side click "Embed" (i.e, the <> icon)
  5. In a new browser tab, go to your ThingSpeak channel's public view and add the widgets you want to show up on the custom dashboard. Now, click the "bubble" icon on the widget window to get the embed URL.
  6. Paste the URL of the widget into the box in step 4
  2 comentarios
Vinod
Vinod el 11 de Feb. de 2021
Editada: Vinod el 11 de Feb. de 2021
@keith Armstrong: When you place the URL in the embed, you can add some additional parameters from the ThingSpeak charts API. For example, if you add "width=auto" and "height=auto" in the URL, the chart will fill its placeholder.
So, the URL for the embed in the example above is:
https://api.thingspeak.com/channels/12397/charts/4?&results=720&dynamic=true&width=auto&height=auto
Vinod
Vinod el 21 de Feb. de 2021
If you're creating a custom dashboard on google sites, you can use any JavaScript widget of your choice - including google gauges - that use the API to retrieve the last value and do the visualization using JavaScript.

Iniciar sesión para comentar.

Más respuestas (0)

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre ThingSpeak en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by