I noticed that the collection of energy_latest is commented out and breaks the script if enabled. Have you done any debugging on why?
OK, I fixed the script problem. Coffee and better light. Un-commenting #energy_latest required adding a comma back to the line above to make the array element correct. So the simple bit of getting the data in can happen. Now to play with the data structure itself...
What are you trying to do with your data?
Tried Roost. Didn't quite solve the problem either, but the UI looks attractive.
Actually, I mis read. I didn't write this app. I wrote Roost. Try Roost.