ThingSpeak public image display

조회 수: 5 (최근 30일)
Alec
Alec 2023년 8월 26일
편집: Christopher Stapels 2023년 12월 4일
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
Christopher Stapels
Christopher Stapels 2023년 8월 28일
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 2023년 8월 28일
@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?

댓글을 달려면 로그인하십시오.

채택된 답변

Christopher Stapels
Christopher Stapels 2023년 8월 29일
이동: Christopher Stapels 2023년 9월 14일
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
Jon
Jon 2023년 12월 3일
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 2023년 12월 4일
편집: Christopher Stapels 2023년 12월 4일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by