Display Thing-Speak's charts in my MATLAB app.

Hello,
I am bulding an app using MATLAB's App designer, But I am facing a problem. In my app I am trying to embed charts of thing speak fields. For
example I want to show exactly this plot in my App and to be dynamic which means as the data changes in thing speak, it also changes in my app. (if the method change in embeding the plot between public and private channel please give me the method for both)

 Respuesta aceptada

Christopher Stapels
Christopher Stapels el 6 de Sept. de 2023

0 votos

Click the cloud icon on your ThingSpeak play. Copy the html starting with '<iframe width=...'
Open app designer. Type 'html' in the Component library and select HTML.
Drag it into your form. Paste the iframe html into the field in the HTML Source in the Component browser for the HTML element.
To do it with a private chart you will need to embed a read API key., see the charts API.
Can you share a screen shot of your app when done? Or even better, share it on File exchange!

2 comentarios

Mecdettin
Mecdettin el 6 de Sept. de 2023
Thank you for your response it helped me a lot. I have searched for days to embed this plot in my app but with no solution. Below is a screen shot of the plot in my app. Thank you again.
Awesome, thanks. I tried it out after I saw your question, so I appreciate that chance to learn a new trick. When the app is done, please consider sharing it on File Exchange so others could use it.

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 MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by