Community
OpenEnergyMonitor

Community

Using Time of use - flexible


(Juan Manuel Sende) #1

Just trying to use Time of use - flexible but I got a error

Message: TypeError: undefined is not an object (evaluating 'data[tier_names[a]][data[tier_names[a]].length - 1][1]')

URL: http://192.168.254.26/emoncms/app/view?name=Time%20of%20use%20-%20flexible&readkey=XXXXXX

And the app keeps loading without the possibility to modify the parameters. Any advice on how to fix this?


(Greebo) #2

How much data have you got in your EmonCMS? Is it less than one full day?
Where did you see that error, was it in the Browsers debug console (F12) or was it a pop-up message?

[EDIT], this post has a method to delete the app and try again.


(Juan Manuel Sende) #3

Well the problem was related to if there are not a full data of data this will produce this error. There error will show as a pop-up message. Let me review the code if I’m able to provide a fix to this case.
[Fixed Typo]