How to clear thingspeak channel from Matlab?

47 Ansichten (letzte 30 Tage)
Mirko
Mirko am 4 Mär. 2020
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:

Antworten (3)

Vinod
Vinod am 5 Mär. 2020
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 Kommentar
Mirko Mirabella
Mirko Mirabella am 8 Mär. 2020
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

Melden Sie sich an, um zu kommentieren.


Larry Fostano
Larry Fostano am 3 Nov. 2020
I must be missing something here , how do I do that
  2 Kommentare
Christopher Stapels
Christopher Stapels am 28 Jan. 2021
Bearbeitet: Christopher Stapels am 22 Feb. 2021
You can use the script that Vinod posted in MATLAB analysis in ThingSpeak to programatically delete a channel.
Larry Fostano
Larry Fostano am 21 Feb. 2021
Ok I still don't see any script, how do I use a script that I don't have? Thank you

Melden Sie sich an, um zu kommentieren.


Larry Fostano
Larry Fostano am 21 Feb. 2021
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 Kommentar
Christopher Stapels
Christopher Stapels am 22 Feb. 2021
Try this one and then modify it to have the channel values you need.
http://api.thingspeak.com/channels/1417/feeds.html

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu Read Data from Channel finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by