alexnathanson / solar-protocol

A repository in development for a solar powered network of servers that host a distributed web platform. Project by Tega Brain, Alex Nathanson and Benedetta Piantella. Supported by Eyebeam, Mozilla, and CS&S
http://solarprotocol.net
231 stars 19 forks source link

Local PV Data does not load due to incorrect filename expectations #54

Closed Pixouls closed 1 week ago

Pixouls commented 1 year ago

Today (2023-02-02) I went to the local.php page of my admin console and noticed that clicking "yesterday" or "the day before" was not producing graphs. When I clicked "yesterday", it's looking for .../tracerData2023-02-1.csv which should be -01.csv not -1.csv, missing the 0 digit. When I clicked "the day before", it's looking for .../tracerData2023-02-0.csv which should be -01-31.csv, there is no February 0.

https://github.com/alexnathanson/solar-protocol/blob/038f867bc23d0333cefb45d274f6a35bc25d00c5/frontend/admin/local.php