How to clear thingspeak channel from Matlab?

58 ビュー (過去 30 日間)
Mirko
Mirko 2020 年 3 月 4 日
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 Center および File ExchangeRead Data from Channel についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by