How do I see live updates from my ThingSpeak channel?
1 view (last 30 days)
Show older comments
Hello, I want to subscribe to my channel from ThingSpeak, and after this to export this data to a json file. The problem is that I want this to be done automatically. Is it possible in Matlab, if yes, then how, I cannot find it in Matlab documentation? Thank you
1 Comment
Christopher Stapels
on 28 Mar 2022
Can you describe more about what you mean to subscribe to the channel? Are you using MQTT on a device? Our MQTT broker supports subscribe, but you will only get the last update. You can use the read data call in the REST API to export up to the last 8000 points into a json file, you don't even need MATLAB for that. However, you can use the alerts service to send an email with your last points in whatever format you like. For this you can use the built in MATLAB capabilities, even if you dont have a seperate MATLAB license (even with the free ThingSpeak license). See Analyze Channel Data to Send Email Notification and the TimeControl app to see how to trigger your report at regular intervals.
Answers (0)
Communities
More Answers in the ThingSpeak Community
See Also
Categories
Find more on Read Data from Channel in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!