Does anyone know if it is possible to write a file to thingspeak or somehow have thingspeak import a file created in MIT App Inventor? I have data I am collecting at 100Hz and writing to a text file. I can send the incoming data directly to thingspeak, but it is not nearly fast enough. Fortunately the data does not need to be processed real time. I am trying to send the file of data to thingspeak, but I can only find examples of sending a single raw data point at a time.
Thanks for helping the new guy!
Hello Caleb
Yes it is. Search this forum for "Thingspeak" and you should find an example.
This tutorial is not for uploading file from application to ThingSpeak, it is for uploading file from Arduino-WiFi to ThingSpeak, maybe you can get some idea about the necessary file format.
https://www.mathworks.com/help/thingspeak/continuously-collect-data-and-bulk-update-a-thingspeak-channel-using-an-arduino-mkr1000-board-or-an-esp8266-board.html
https://www.mathworks.com/help/thingspeak/bulkwritejsondata.html
I have tried uploading the bulk_update.json file but it has not worked for me.
https://es.mathworks.com/help/thingspeak/bulkwritejsondata.html
{
"write_api_key": "WRITE_API_KEY",
"updates": [{
"created_at": "2021-06-02 10:26:31 -0500",
"field1": "34",
"field2": "26",
"field3": "88"
},
{
"created_at": "2021-06-03 11:27:27 -0500",
"field1": "66",
"field2": "32",
"field3": "21"
},
{
"created_at": "2021-06-04 11:28:29 -0500",
"field1": "44",
"field2": "21",
"field3": "12"
}
]
}
try_ThingSpeak.aia (2.5 KB)