Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cost Comparison frozen and not able to click. #46

Open
rcojoe opened this issue Feb 9, 2018 · 3 comments
Open

Cost Comparison frozen and not able to click. #46

rcojoe opened this issue Feb 9, 2018 · 3 comments
Assignees
Labels

Comments

@rcojoe
Copy link

rcojoe commented Feb 9, 2018

Hey guys. I'm trying to get the cost compare to work on the public site but it is frozen. When I click on the wrench on the top right of the app, nothing happens, like there is a javascript error.
ERROR feed.getdataDMY invalid response: false
ReferenceError: kwh is not defined
I see this error in the javascript log, so it looks like my settings aren't right but I can't get into the config area to fix.
I do have a use_kwh feed defined.

#32

@rcojoe
Copy link
Author

rcojoe commented Feb 9, 2018

Running the function: feed.listbyidasync() does return a list of my feeds.

@rcojoe
Copy link
Author

rcojoe commented Feb 9, 2018

Further debugging shows the first exception happening in
bargraph_load(start, end)
where start = 1517633999999
end = 1518238799999

Its actually calling getdataDMY_time_of_use but the error says it is for feed.getdataDMY

This call is what is coming back as false (myapikey = api key):

https://www.emoncms.org/feed/data.json?apikey=myapikey&id=205565&start=1517633999999&end=1517738799999&mode=daily&split=[0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5,6,6.5,7,7.5,8,8.5,9,9.5,10,10.5,11,11.5,12,12.5,13,13.5,14,14.5,15,15.5,16,16.5,17,17.5,18,18.5,19,19.5,20,20.5,21,21.5,22,22.5,23,23.5]

@rcojoe
Copy link
Author

rcojoe commented Feb 9, 2018

This is related to the 24 vs 48 allowed datapoints in the split parameter. If I only put 24 split data points in the split, it returns data correctly.

@TrystanLea TrystanLea self-assigned this Aug 15, 2018
@TrystanLea TrystanLea added the bug label Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants