xively

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# " -

Why does TCP connection keep closing while connecting to xively from Adruino GPRS with AT commands?

别等时光非礼了梦想. 提交于 2020-01-04 14:28:32
问题 I'm trying to send data from a cellular-connected arduino temperature sensor to xively.com using AT commands. I can open the TCP connection, but then it immediately closes. Why does the TCP connection keep closing? setup: arduino uno mackbook seeedstudio gprs v2.0 att gophone sim card Here is my Terminal readout: Call Ready AT OK AT+CPIN? +CPIN: READY OK AT+CGATT? +CGATT: 1 OK AT+CIPSHUT SHUT OK AT+CIPSTATUS OK STATE: IP INITIAL AT+CIPMUX=0 OK AT+CSTT="wap.cingular" OK AT+CIICR OK AT+CIFSR 10

How to pull data from Xively without authentication?

心不动则不痛 提交于 2019-12-26 05:04:32
问题 Im trying to pull data from xively.com to my android phone. The problem that i have is that i need to authenticate myself before being able to see the data. However, according the documentation here, if the data is public, then everyone should have the access to it. Im trying to see the results of this dummy device: https://api.xively.com/v2/feeds/1549265960, but i cant without login! Thanks for all the help i can get! 回答1: I found out after some testing, that the proper way of using the key

Xively provisioning: Activating a device more than once/fetching API key & feed Id a second time

狂风中的少年 提交于 2019-12-12 19:47:40
问题 I am working with testing out provisioning for an embedded device where I can't save the API key and feed ID when power cycling. After activating the product once, I get 403 forbidden when trying to fetch the device API key and feed id for the second time, even though I am supplying a master API key (with read permission) when making the request. The request works however when using API key belonging to the device, which is an inadequate solution considering I don't have access to that API

Device’s Activation Code best practice

梦想的初衷 提交于 2019-12-11 19:29:17
问题 Quoting the documentation: Once pre-registered, a Device can Activate by sending an Activation Code to the Xively API. This signals to Xively that the Device has woken up for the first time, and is requesting to be provisioned with a Feed ID and API Key that it can use. A Device’s Activation Code is generated using an HMAC-SHA1 hash that combines the Device’s Serial Number with its parent Product’s Product Secret to makes it effectively impossible for someone to extract the Product Secret

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

Hiding API Key on Xively Image

江枫思渺然 提交于 2019-12-11 09:07:09
问题 I'm interested in using Xively's image embed code in a website I'm working on, but I need to either: Make the Xively feed public in order to access the image Include the API key in the get request Now I do not want to expose our private information or open up the datastreams to being modified without my permission using my API key, what options do we have? In other words, how can I conceal the API key in the image URL that your can easily find by viewing the source? I'm not particularly keen

Include libraries with g++

旧街凉风 提交于 2019-12-10 10:34:21
问题 My cpp project uses these libraries: #include <string.h> #include <iostream> #include <stdlib.h> #include <fstream> #include <sstream> #include <cstring> #include <time.h> #include <xively.h> #include <xi_helpers.h> #include <wiringPi.h> The wiringPi.h is in /home/pi/wiringPi/wiringPi and the xively.h is in /root/libxively/src/libxively Before I used the xively.h I could compile it with g++ -o ilc ilc.cpp -lwiringPi . I now tried g++ -o ilc ilc.cpp -I/root/libxively/src/libxively -I/home/pi

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

Include libraries with g++

别等时光非礼了梦想. 提交于 2019-12-06 11:28:25
My cpp project uses these libraries: #include <string.h> #include <iostream> #include <stdlib.h> #include <fstream> #include <sstream> #include <cstring> #include <time.h> #include <xively.h> #include <xi_helpers.h> #include <wiringPi.h> The wiringPi.h is in /home/pi/wiringPi/wiringPi and the xively.h is in /root/libxively/src/libxively Before I used the xively.h I could compile it with g++ -o ilc ilc.cpp -lwiringPi . I now tried g++ -o ilc ilc.cpp -I/root/libxively/src/libxively -I/home/pi/wiringPi/wiringPi . This doesnt work and reports an "undefined reference" for all the function calls of