How can I upload data to ThingSpeak with a custom timestamp instead of using the server’s current time?
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am currently using the ThingSpeak API to upload bat detection data from my project. I am trying to set the created_at timestamp to match the date and time captured from the image filenames. However, despite sending the created_at field in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) via JSON in a POST request, ThingSpeak still records the current upload time instead of the provided timestamp.
Could you please clarify the correct way to send a custom timestamp so that ThingSpeak uses it instead of the current server time? Any guidance or examples would be greatly appreciated.
2 Kommentare
Christopher Stapels
vor etwa 4 Stunden
Bearbeitet: Christopher Stapels
vor etwa 4 Stunden
Bat data! A new data type for us I think. Sounds awesome.
Can you share the complete format of the request you are using now, and perhaps the channel ID?
The doc for write data has an example in the section in the expander "Write JSON encoded entry" You can pretty easiely turn that into a GET request if you prefer that. The parameter look like this: &created_at=2025-04-23 21:36:20 +0200 You may have to url encode it depending on the client you are using. then when you read .
Antworten (0)
Communitys
Weitere Antworten in ThingSpeak Community
Siehe auch
Kategorien
Mehr zu REST API finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!