How to clear thingspeak channel from Matlab?

조회 수: 38 (최근 30일)
Mirko
Mirko 2020년 3월 4일
댓글: Christopher Stapels 2021년 2월 22일
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:

답변 (3개)

Vinod
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
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
Larry Fostano 2020년 11월 3일
I must be missing something here , how do I do that
  댓글 수: 2
Christopher Stapels
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
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
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
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 커뮤니티

카테고리

Help CenterFile Exchange에서 ThingSpeak에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by