MATLAB Answers

API - Inconsistency with Curl, when downloading a .csv of my channel

1 view (last 30 days)
Chris Parker
Chris Parker on 11 Feb 2021
Hi,
i'm trying to download a 7 day .csv of my channel via curl, but it only seems to download part of it.
if i place the same url into the browser it gives me the full 7 days, but when using curl i only get just over a day downloaded?
Any ideas ? if anyone has a curl command that they know works flawlessly please let me know..

Answers (1)

Christopher Stapels
Christopher Stapels on 12 Feb 2021
You can get all the correct API calls from the Read data section of the documentation. The API limits you to only 8000 points of data per call, so you may have the correct format already.
  4 Comments
Christopher Stapels
Christopher Stapels on 19 Feb 2021
Thanks for sharing the rest of the call.
What do you mean by can see all days.. "when viewed online". Is this on your ThingSpeak field chart? How many points are in the 7 days of date, by the way?

Sign in to comment.

Communities

More Answers in the  ThingSpeak Community

Products

Community Treasure Hunt

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

Start Hunting!