How to clear thingspeak channel from Matlab?

37 visualizaciones (últimos 30 días)
Mirko
Mirko el 4 de Mzo. de 2020
Comentada: Christopher Stapels el 22 de Feb. de 2021
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:

Respuestas (3)

Vinod
Vinod el 5 de Mzo. de 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 comentario
Mirko Mirabella
Mirko Mirabella el 8 de Mzo. de 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

Iniciar sesión para comentar.


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

Iniciar sesión para comentar.


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

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre ThingSpeak en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by