How to clear thingspeak channel from Matlab?
조회 수: 38 (최근 30일)
이전 댓글 표시
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:
댓글 수: 0
답변 (3개)
Vinod
2020년 3월 5일
Try this:
ChannelID = YOUR_CHANNEL_NUMBER;
UserAPIKey = 'YOUR_USER_API_KEY'; % This is available from https://thingspeak.com/account/profile
url = sprintf('https://api.thingspeak.com/channels/%s/feeds.json?api_key=%s',num2str(ChannelID),UserAPIKey)
response = webwrite(url, weboptions('RequestMethod','delete'))
댓글 수: 1
Mirko Mirabella
2020년 3월 8일
Thank you Vinod for the support, the Script that you send me work perfectly.
Now I can clear my ThingSpeak channels directly from MATLAB.
Thanks
Mirko
Larry Fostano
2020년 11월 3일
I must be missing something here , how do I do that
댓글 수: 2
Christopher Stapels
2021년 1월 28일
편집: Christopher Stapels
2021년 2월 22일
You can use the script that Vinod posted in MATLAB analysis in ThingSpeak to programatically delete a channel.
Larry Fostano
2021년 2월 21일
Ok I still don't see any script, how do I use a script that I don't have? Thank you
Larry Fostano
2021년 2월 21일
If I copy the url it says this page isn't working, contact the site owner, thanks
https://api. thingspeak.com/channels/<channel_id>/feeds.<format>
댓글 수: 1
Christopher Stapels
2021년 2월 22일
Try this one and then modify it to have the channel values you need.
http://api.thingspeak.com/channels/1417/feeds.html
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!