Questions tagged [cosm]

Cosm is an online database service provider allowing developers to connect sensor data to the web and to build their own applications on it.

Cosm, formerly known as Pachube, lets you collect data from embedded devices in its time-series database exposed via a RESTful API over HTTP, WebSocket, plain TCP or even MQTT.

31 questions
4
votes
1 answer

Why won't Highcharts accept UTC value from my JSON?

I'm trying to get some JSON formatted data from a COSM feed into a simple chart, but am having trouble doing so. I'm not sure if I'm misunderstanding how the series array works (even after reviewing the documentation on it. This is my code with…
user1767125
  • 95
  • 2
  • 7
3
votes
2 answers

Cannot upload data to Cosm from arduino mega by tutorial sketch

I cannot upload data from my Arduino Mega with Ethernet Shiled to Cosm. I tried one of the tutorial examples (DatastreamUpload.ino). I used the API key and feed ID that Cosm gave to me at the registration and changed the init() function to use a…
2
votes
2 answers

DHT22 (sensor) to Pachube via Arduino with Ethernet shield error

I'm trying to connect a DHT22 sensor to the Pachube online service. I am understanding the code and have everything wired up correctly but I get this error: DHT22 Library Demo Requesting data at 6335 Sync Timeout What does sync timeout mean? Is…
asselinpaul
  • 386
  • 1
  • 5
  • 19
2
votes
1 answer

Copy range of historical datapoints between xively channels

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…
2
votes
1 answer

Is there an API call for searching datastreams?

In the Xively API, I found a way to search for feeds, but what I really wanted is a way to search within datastreams. For example, I want the most recent five datapoints that == 1. I looked at the "historical data" API and could not find such…
Andrew
  • 43
  • 3
2
votes
1 answer

Upload homewizard data to cosm

Today I discovered Cosm and I'm trying to get some data uploaded as a test. I have a device (it's called HomeWizard) and I use it to remotely control switches and read weather and energy data. Reading data from the device is done using HTTP and…
Edwin
  • 33
  • 2
2
votes
2 answers

JSONP pass api key

I've got an arduino uploading sensor data to cosm.com. I made a simple webpage on my local web server to query the cosm.com API and print out the values. The problem is that if I am not logged into cosm.com in another tab, I get this popup. The…
spuder
  • 17,437
  • 19
  • 87
  • 153
1
vote
1 answer

Can't read from NETMF socket

This trivial adaptation of the Pachube sample for Netduino doesn't work. It doesn't barf, it just fails silently. I noticed that if you wait a little after the write, the socket reports 315 bytes in its Available property, but attempting to read the…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
1
vote
1 answer

Arduino + sim900 + xively

I have a problem, I'm new to Arduino and I'm totally a beginner. I bought a SIM900 Quad-band GSM / GPRS Shield for Arduino (http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=221176159800&ssPageName=ADME:X:RTQ:US:1123) and I have two problems. (I…
Vragolasti
  • 11
  • 3
1
vote
2 answers

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

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…
andig
  • 13,378
  • 13
  • 61
  • 98
1
vote
1 answer

How to create a Highstock chart for Xively datastream?

I'm trying to create a Highstock chart from Xively data. I'm able to create regular line chart from a historic query of a Xively datastream and with some basic data format adaptation I am able to pass it to Highcharts.Chart(). I have tried making…
1
vote
1 answer

xively (replacement for Cosm (replacement for Pachube)) examples and charts

Does the new Xively have curl examples of the various read and write functions specifically for the new API? If so, where? If not, can we have some? Also, are the embedable charts gone? If not, where are they?
1
vote
2 answers

COSM feed receiving updates but graph is flatlined at zero

context: My first project with COSM is recording datapoints from my electric meter. When I look at the graph of the feed, it's flatlined at zero even though the datapoints appear to be correctly received. Any idea what's wrong, or things I should…
fearless_fool
  • 33,645
  • 23
  • 135
  • 217
1
vote
2 answers

How to retrieve all data points in a Cosm datastream?

Given a datastream like https://api.cosm.com/v2/feeds/61916/datastreams/random5.json, I'd expect to be able to page through all the datapoints in a feed like so: GET ?start=1970-01-01T00:00:00Z&interval=0&offset=0&limit=1000 GET…
ejain
  • 3,456
  • 2
  • 34
  • 52
1
vote
3 answers

COSM JSON Parser Error on .POST

I'm using jpachube and am running into problems with .POST on creatDatastream. I am getting POST error 400, and the following details from COSM's debug tool: {"title":"JSON Parser Error","errors":"lexical error: invalid char in json text.
1
2 3