gatorback
Regular Contributor
A thermostat device returns JSON like data from the command line:
curl -s http://192.168.X.Y/tstat/humidity
{"humidity":51.00}
A cron job wass configured to execute a .sh UNIX script to save data to a USB memory stick. The next step in the pedagogical exercise is to upload data to a cloud service and visualize data
It would be interesting to setup a UNIX cron job to periodically script the upload of the data to a host so that it can be visualized (graphed). The command line device is an Asus router Configured with Merlin ASUS WRT and its abridged command set.
QUESTIONS
=========
1) What is the keyword search term that would quickly narrow down the IOT service providers and provide example of an API that allows the router to upload data from a command line script (UNIX instructions)? I think this is a RESTful API.
2) If this is not possible, what are the leanest \ smallest options of API classes (Python MQTT etc). The better options have a small foot print because RAM is limited?
I realize that a router is not a raspberry pi, nor is it design for this purpose. That being said, I am speculating that the task to query and upload a measurement is well within the hardware's capability. The goal is to avoid re-inventing wheel: examples of routers configured to upload data to a IOT cloud service is appreciated. Any lessons-learned are also appreciated. Thank you.
curl -s http://192.168.X.Y/tstat/humidity
{"humidity":51.00}
A cron job wass configured to execute a .sh UNIX script to save data to a USB memory stick. The next step in the pedagogical exercise is to upload data to a cloud service and visualize data
It would be interesting to setup a UNIX cron job to periodically script the upload of the data to a host so that it can be visualized (graphed). The command line device is an Asus router Configured with Merlin ASUS WRT and its abridged command set.
QUESTIONS
=========
1) What is the keyword search term that would quickly narrow down the IOT service providers and provide example of an API that allows the router to upload data from a command line script (UNIX instructions)? I think this is a RESTful API.
2) If this is not possible, what are the leanest \ smallest options of API classes (Python MQTT etc). The better options have a small foot print because RAM is limited?
I realize that a router is not a raspberry pi, nor is it design for this purpose. That being said, I am speculating that the task to query and upload a measurement is well within the hardware's capability. The goal is to avoid re-inventing wheel: examples of routers configured to upload data to a IOT cloud service is appreciated. Any lessons-learned are also appreciated. Thank you.
Last edited: