Delete spurious sensor data from cosm

86 views
Skip to first unread message

turboisland

unread,
Dec 30, 2012, 3:41:31 PM12/30/12
to airqua...@googlegroups.com
Hi,
I've had a few problems getting my egg stable and now my cosm feed has some crazy values. For example there a temperature spikes to 37777777777 C. These obscures my real data and I'd like to remove them. So my questions are:
1) Can I do it?
2) if so how do I do it?

I've tried the generic cosm delete command I found in their API guide:

curl --request DELETE --header "X-ApiKey: YOUR_API_KEY_HERE" http://api.cosm.com/v2/feeds/89470/datastreams/1/datapoints/2012-12-30T17:50:23.000000Z

but i get back a message:
{"title":"Unauthorized","errors":"You do not have permission to access this resource"}

FYI I'm using the//Air Quality Egg v01 Product Secret I found in the AQEbase sketch for YOUR_API_KEY_HERE & my feed ID is 89740


I'd really appreciate any guidance on this.

thanks

Toby

Cesar Garcia Saez

unread,
Jan 2, 2013, 2:01:40 AM1/2/13
to airqua...@googlegroups.com

I'd say you're getting unauthorized because all air quality eggs are under the same account, which is not your personal account btw.

Maybe the key created when you register you AQE is read and write only, and doesn't have permission to delete.

I think Cosm people in the list will be able to offer you more insight about how to do it.

Best,
César

--


Joseph Saavedra

unread,
Jan 2, 2013, 1:30:25 PM1/2/13
to airqua...@googlegroups.com
Hi Toby -

If you can send me your serial number (MAC address you used to claim the feed) , i'll send you your APIKEY that should allow DELETE functions.  The first time the base pings COSM, it provisions itself - meaning it reports it's MAC address and generated SHA hash, and receives a response with the generated Feed ID and API KEY. So if we think it's necessary in the future we can find a way to make that privately available to each Egg owner. However, to just read/pull all/any egg data (and all COSM data in general) any APIKEY will work, which you get for free when registering in COSM. In general, I'd like to avoid deleting any data (even spurious data will help us with many things like data analysis, sensor calibration, evaluation, etc). However, in the meantime, any advanced users can contact us individually with the request, not a problem.

Ping e...@sensemake.rs with your Egg's serial, and I'll get that to you.

Thanks all, and Happy New Year!!

joe


--
 
 

turboisland

unread,
Jan 2, 2013, 6:04:08 PM1/2/13
to airqua...@googlegroups.com

Thanks Joe, Will do.

Toby

Reply all
Reply to author
Forward
0 new messages