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

조회 수: 3 (최근 30일)
Chris Parker
Chris Parker 2021년 2월 11일
댓글: Christopher Stapels 2021년 2월 19일
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..

답변 (1개)

Christopher Stapels
Christopher Stapels 2021년 2월 12일
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
Chris Parker
Chris Parker 2021년 2월 15일
편집: Chris Parker 2021년 2월 15일
hi chris, my curl command is as follows, plus i tried 'wget -O' and i get the same result ??!!
curl -o home/pi/shared/feed.csv https://api.thingspeak.com/channels/123456/feed.csv?api_key=V12345ABCDE123&days=7
Christopher Stapels
Christopher Stapels 2021년 2월 19일
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?

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  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