Automan wrote:
Still seems to be an issue

Perhaps it will work next year?
Automan.
Mine has failed also, since when, who knows!
Checking what is happening using COSM Debug...
Clicking "View weekly" sends the folloiwng request
https://api.cosm.com/v2/feeds/40873/datastreams/1.json?end=2012-06-27T01:12:05Z&function=average&interval=86400&start=2012-06-25T14:00:00This gives 500 response {"title":"Oops, something's broken","errors":"We've been unable to complete your request due to a problem with our server"}
Clicking "View Daily" sends 2 requests:
(1) //api.cosm.com/v2/feeds/40873.json?datastreams=0,1&end=2012-06-28T02:01:08Z&interval=60&per_page=1000&start=2012-06-27T14:00:00
this gives a 200 response
Code:
{"title":"Current Cost Bridge","status":"live","creator":"https://cosm.com/users/rollos","datastreams":[{"at":"2012-06-28T01:57:09.806591Z","datapoints":[{"value":"17.50","at":"2012-06-27T14:03:26.793509Z"},{"value":"17.20","at":"2012-06-27T14:08:28.230221Z"},{"value":"16.80","at":"2012-06-27T14:13:29.831400Z"},{"value":"16.60","at":"2012-06-27T14:18:31.868439Z"},{"value":"16.30","at":"2012-06-27T14:23:33.288733Z"},{"value":"16.10","at":"2012-06-27T14:28:34.967981Z"},{"value":"15.90","at":"2012-06-27T14:33:36.561543Z"},{"value":"15.80","at":"2012-06-27T14:38:38.117860Z"},{"value":"15.50","at":"2012-06-27T14:43:39.616596Z"},{"value":"15.50","at":"2012-06-27T14:48:41.207299Z"},{"value":"15.20","at":"2012-06-27T14:53:42.615731Z"},{"value":"15.20","at":"2012-06-27T14:58:44.201703Z"},{"value":"14.90","at":"2012-06-27T15:03:45.819024Z"},{"value":"14.90","at":"2012-06-27T15:08:47.368956Z"},{"value":"14.60","at":"2012-06-27T15:13:48.808270Z"},{"value":"14.60","at":"2012-06-27T15:18:50.234668Z"},{"value":"14.50","at":"2012-06-27T15:23:51.791256Z"},{"value":"14.30","at":"2012-06-27T15:28:53.417891Z"},{"value":"14.30","at":"2012-06-27T15:33:55.077227Z"},{"value":"14.20","at":"2012-06-27T15:38:56.655951Z"},{"value":"14.00","at":"2012-06-27T15:43:58.327570Z"},{"value":"14.00","at":"2012-06-27T15:48:59.852638Z"},{"value":"14.00","at"
and a whole lot more.
(2)
https://api.cosm.com/v2/feeds/40873/datastreams/1.json?end=2012-06-21T01:12:05Z&function=average&interval=86400&start=2012-06-20T14:00:00This gives 200 response also
Code:
{"datapoints_function":"average","at":"2012-06-28T01:57:09.806591Z","datapoints":[{"value":"105.230688317385","at":"2012-06-21T14:00:00.000000Z"}],"tags":["solar"],"unit":{"symbol":"W","type":"derivedUnits","label":"watts"},"max_value":"3042.0","id":"1","version":"1.0.0","current_value":"1712","min_value":"0.0"}
The second is identical to the request that failed except for the interval 1 day copared to 7!
Why? I dunno - just a dumb user - I sent the question to Support at Cosm.com.