Thingspeak Bulk Update missing a few entries time to time

1 Ansicht (letzte 30 Tage)
Syed Shah
Syed Shah am 24 Mär. 2021
Hi, I am updating data using the bulk update and sending 288 entries at a time. It works fine and I send next 288 entries after 20 seconds. Issue is that now my Channel shows 2292 entries which becomes 2292/288 as 7.958 times the data update. I wonder where the rest 12 entries are going. This behavior is random. Now the issue is that i am making a 2d graph of 288 entries. I read the latest 288 entries and if the number of the entries is not right then the graph is not right. I use the following line to read the keys.
thingSpeakRead(readChannelID, 'Field', 1, 'NumPoints', 288, 'ReadKey', readAPIKey);
In RPi i have the logic to send only 288 entries and i see that the sent data has exactly 288 of them. Have you seen this issue before? I see the status 202 after the update.
Also is there a way to clear the old entries through MATLAB code? I can do it with the Clear channel api but it is a bit slow in clearing the channel.
  1 Kommentar
Christopher Stapels
Christopher Stapels am 24 Mär. 2021
I would inspect the entries cloesly to see if they are malformed somehow. If they have duplicate timestamps, they will aslo be rejected.
You can also use the API in MATLAB, through webwrite() but it wont be any faster. I'd like to understand why you need to clear so rapidly and frequently. ThingSpeak is meant to be a timeseries collection of your historical data. You can always select a small segment of it to read without deleting. Can you tell us more about your workflow?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu ThingSpeak 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