Current Cost Support Forum

A support forum for Current Cost users, partners and developers. Covering hardware, software and web.
Site Announcements

The support forum is moderated Monday to Friday, UK time. To submit a support ticket, please email: helpme [at] currentcost .com

It is currently Sat Apr 19, 2014 6:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: View Weekly - Blank?
PostPosted: Thu May 24, 2012 9:38 pm 
Offline

Joined: Sat Apr 16, 2011 1:10 pm
Posts: 328
Location: East Sussex
When I try the "View Weekly" button I get a blank page and 1970.

Attachment:
File comment: Blank Weekly Data
View Weekly.jpg
View Weekly.jpg [ 131.58 KiB | Viewed 3476 times ]


Does your one work?

Automan.


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Fri May 25, 2012 1:29 am 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
Ditto (not that I often use that function).

NB. You should turn Auto-refresh off when viewing history - but that is not our problem.

The problem is my.currentcost.com is getting a 500 return code ("Oops Something's broken...") when they make the call.
Here is the Cosm Debug
Attachment:
Get Weekly error.PNG
Get Weekly error.PNG [ 35.42 KiB | Viewed 3473 times ]

Since we are not getting the 500 when we go back to daily view something is wrong with the weekly request.
Looking at the request I see "...&function=average&..." This is not part of the documented api. My guess is that this is where it is falling down.
It seems unlikely that CC would just dream this up! Maybe there is an undocumented addition being tested by Currentcost?

_________________
Seeker
"The Truth is out there!"


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Fri May 25, 2012 3:00 am 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
Interesting. Here is an example of the "function=average" that works. So I think I am right about the new function.

The major difference seems to be the extra Header with the API key. It has been working with two headers for some time, so I expect COSM have tightened up and CC were sloppy about removing the extra header from the weekly data request when they removed it from the daily data request.

Hmm... Not sure why the data request was for week old data?

Debugging didn't take long, I wonder how long the fix will take?


Attachments:
Get Daily working.PNG
Get Daily working.PNG [ 33.85 KiB | Viewed 3470 times ]

_________________
Seeker
"The Truth is out there!"
Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Fri Jun 01, 2012 10:15 am 
Offline

Joined: Sat Apr 16, 2011 8:19 am
Posts: 12
Same problem :(
is there a way to correct ?


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Sun Jun 03, 2012 12:21 am 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
gipelo wrote:
Same problem :(
is there a way to correct ?

I reported the problem to helpme on Tuesday.
No reply, apart from the auto-reply, but mine was working 2 days later and still is.

Maybe the fix is an individual one.

Try raising the issue with the helpdesk.

_________________
Seeker
"The Truth is out there!"


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Wed Jun 27, 2012 12:05 pm 
Offline

Joined: Sat Apr 16, 2011 1:10 pm
Posts: 328
Location: East Sussex
Still seems to be an issue :(

Perhaps it will work next year?

Automan.


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Thu Jun 28, 2012 3:20 am 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
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:00
This 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:00
This 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.

_________________
Seeker
"The Truth is out there!"


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Thu Jun 28, 2012 3:18 pm 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
Response from Cosm support is that "view weekly" is taking too long and being killed for it. They expect a solution in about a week.

The "function=average" is a new facility and it appears that it is being piloted by Current Cost.

Some patience seems to be warranted!

_________________
Seeker
"The Truth is out there!"


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Mon Jul 02, 2012 2:08 pm 
Offline

Joined: Sat May 28, 2011 5:42 pm
Posts: 13
I thought it was just me but cheers guys for the update i now know its not me lol


Top
 Profile  
 
 Post subject: Re: View Weekly - Blank?
PostPosted: Wed Aug 15, 2012 4:01 pm 
Offline

Joined: Sat Apr 16, 2011 1:10 pm
Posts: 328
Location: East Sussex
View weekly now works but I note PVOutput website has stopped working on the 06/08/12 and has been blank ever since.

Automan.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group