There is a getter function in accumulated_real, energy_change, etc. that expects the elements in the array of objects to be at regular intervals. findCloset rounds the indices to nearest valid, e.g. 7 PM original query rounds to 11:59 PM if that's only valid option.
Other Tips
Add up to 2 weeks of fake data either actually in SQL database (go back in time 2 weeks I guess), or just add to resultDataObject directly in frontend accumulated_real file
Reference from last year
https://github.com/OSU-Sustainability-Office/energy-dashboard/issues/191 https://github.com/OSU-Sustainability-Office/energy-dashboard/pull/216
https://github.com/OSU-Sustainability-Office/energy-dashboard/pull/220
resultDataObject is an array of objects, e.g.
There is a getter function in accumulated_real, energy_change, etc. that expects the elements in the array of objects to be at regular intervals. findCloset rounds the indices to nearest valid, e.g. 7 PM original query rounds to 11:59 PM if that's only valid option.
Other Tips
resultDataObject
directly in frontendaccumulated_real
fileCurrent related PacificPower Issues: