Anton K in MATLAB Answers
上次活动时间: 2022-12-5

I've tried reading entries from my channel (a kind of bulk read) to save them locally for analysis , and noticed two issues: if end date isn't specified, it defaults to current one if date range is used, the entries are limited (8000 for free accounts) starting from the end date I don't know which rationale stands behind such implementation, but this "feature" causes a bit of inconvenience when reading entries back. Let's consider a use case. If I want to get all entries for a month-long period (like [2022-10-04 ... 2022-11-04)), I'd submit a request like this: https://api.thingspeak.com/channels/124005/feeds.json?start=2022-10-04&end=2022-11-04 and then look at the last returned entry to get its timestamp to submit further requests to get rest of chunks. However this request returns the entries in the range [2022-10-05T17:59:48Z .. 2022-11-03T23:59:24Z], which is quite unexpected because the first entry for this period has timestamp 2022-10-04T00:03:00Z (use one day request like https://api.thingspeak.com/channels/124005/feeds.json?start=2022-10-04&end=2022-10-05 to verify this). From the response I can conclude that the start date is actually ignored (as redundant?) in this case, and the system returns 8000 entries before the end date. This is quite unnatural taking into account that the returned entries are sorted by date in ascending order. But things become a bit more queer when I drop the end date from the request - https://api.thingspeak.com/channels/124005/feeds.json?start=2022-10-04 Guess which timestamp will be the first this time! It is ... 2022-11-02T22:39:22Z ! Surprise! :) And if you submit the request later you'll get first entry with a later timestamp, because the system ignores your start date and returns 8000 entries before the current date. Such "feature" forces me to write crazy code, when updating local cache of entries - I have to ... a) ... either read entries day by day (not to hit the cap of 8000 entries) in forward direction to catch up with the current date => increased amount of requests, b) ... or read entries starting from the current date in backward direction => increased amount of memory usage (I can't save entries into the cache until I reach the last cached date) Any plans to make this behavior a bit more natural? :)
Sheik Dawood in MATLAB Answers
上次活动时间: 2022-1-3

My partner has uploaded the DHT 22 sensor details in ThingSpeak,however from there we have no clue on how to retrieve those data into unity. i really hope someone could help me with this

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.