ThingSpeak public image display

4 vues (au cours des 30 derniers jours)
Alec
Alec le 26 Août 2023
I'm trying to make a website with a bunch of embedded html scripts that display data received from a Simulink program. All of my numerical data I can make public and then put the iFrame code onto my website, but when I go to add an image widget into my public channel there isn't an option to do this. I've tried using thingSpeakRead() in MATLAB using the API key with no luck. How does one publicly display images uploaded to ThingSpeak?
They did it here, and I can't figure out how: https://thingspeak.com/channels/366768
  2 commentaires
Christopher Stapels
Christopher Stapels le 28 Août 2023
I think @Vinod posted what he did somewhere in Answers or the ThingSpeak community.
At present, you cannot show an image channel preview on a public channel.
Where are the images stored? If they are available on a web page, you can use webread() and webwrite() to get and display them in a public MATLAB Visualization. You can also read them from another storage area such as dropbox.
Alec
Alec le 28 Août 2023
@Christopher Stapels thank you for your reply. The images are being taken by a Simulink simulation and stored locally on a drive, and another MATLAB script uploads them to an image channel on ThingSpeak using matlab.net.http functions. From there, I would like to send them to a website - ideally, I would imbed them in a webpage much like the MATLAB visualizations where you just copy/paste some HTML. I will explore what Vinod has done as well as webwrite() and webread().
Are there any plans to make image channels public?

Connectez-vous pour commenter.

Réponse acceptée

Christopher Stapels
Christopher Stapels le 29 Août 2023
Déplacé(e) : Christopher Stapels le 14 Sep 2023
I have similar workflows for two of my projects. For one, I upload to dropbox using this function to upload.
Then you can use the read from dropbox code I linked above.
For another workflow, I use Amazon Boto on a RPi to upload the files to an S3 bucket. Then you can read the images from AWS in a similar way using MATLAB visualization.
There are plans to make the image channels public, but that work is not yet scheduled.
  2 commentaires
Jon
Jon le 3 Déc 2023
OK -- let me ask my question which may be the same as OP.
Can I expose, private or public, my Thingspeak image feed in a private webpage of my own building? And if not, what is the point of an image channel?
Christopher Stapels
Christopher Stapels le 4 Déc 2023
Modifié(e) : Christopher Stapels le 4 Déc 2023
Right now, the primary use for image channels is to add a private view of the image on your channel. You can use this for monitoring assets that your are using to record thingSpeak data. For example if you have a weather station and a bird built a nest on it, you would be able to view the reason why the temperature shot up recently. The feature is intended to be a stepping stone.

Connectez-vous pour commenter.

Plus de réponses (0)

Communautés

Plus de réponses dans  ThingSpeak Community

Catégories

En savoir plus sur ThingSpeak dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by