app
app copied to clipboard
Cost Comparison frozen and not able to click.
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
Running the function: feed.listbyidasync() does return a list of my feeds.
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]
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.