Cosm is a secure platform for Internet of Things devices and products. Its API and web service provide real-time control and data storage.
Unfortunately on these days cosm.com does not provide any software to download a datastream data, so i've build this script, which use cosm api to download datapoints of a datastream.
Before launch the script, you have to open the script with an editor and setup some parameters.
#setup your cosm account data here
#set cosm key
#set cosm feed id
#set cosm datastream
#download datastream backward from DATETO to DATEFROM, with datapoint interval of INTERVAL (seconds), and backward step of DATEINTERVAL (hour)
#cosm history interval request
#get backward from DATETO to DATEFROM
#interval between requested data (in hour)
#output file name, and conversion (date) to csv format
#set output file
#convert cosm data
- read risk disclaimer
- excuse my bad english