cosm

Copy range of historical datapoints between xively channels

此生再无相见时 提交于 2020-01-13 21:04:30
问题 I have a legacy Xivey (from Cosm) feed with old channels. I will create new feed and I want to migrate some old data to some new channels. How can I do that efficiently ? Thanks ! Else, I will work with scripts like this... curl --request GET " http://api.xively.com/v2/feeds/ #oldFeed# /datastreams/ #oldChannel# .csv?key= #key# &start=2013-12-02&duration=24hours&interval=900&limit=100&interval_type=discrete" > tmp.csv curl --request PUT --data-binary @tmp.csv --header "X-ApiKey: #key# " -

Xively: how to activate a device with the python api?

徘徊边缘 提交于 2019-12-11 13:46:35
问题 Since COSM has become Xively, a nice device api has been added (or was always there- not sure). The flow is create product batch with serial numbers activate devices using some product batch identifiers (?) start using the device with the obtained feed/api keys I can't figure out how to do this via the python API- are there any pointers? 回答1: This should be added to the library, but for now you can use this code to implement device activation. I have used environment variables to store

Copy range of historical datapoints between xively channels

匆匆过客 提交于 2019-12-06 12:45:12
I have a legacy Xivey (from Cosm) feed with old channels. I will create new feed and I want to migrate some old data to some new channels. How can I do that efficiently ? Thanks ! Else, I will work with scripts like this... curl --request GET " http://api.xively.com/v2/feeds/ #oldFeed# /datastreams/ #oldChannel# .csv?key= #key# &start=2013-12-02&duration=24hours&interval=900&limit=100&interval_type=discrete" > tmp.csv curl --request PUT --data-binary @tmp.csv --header "X-ApiKey: #key# " --verbose https://api.xively.com/v2/feeds/ #newFeed# /datastreams/ #newChannel# .csv There is no supported