OpenEnergyMonitor Community

Query phptimeseries for historic data?

How, in PYTHON, do I query a phptimeseries feed to get the data at an historic time?

For example - CUM generation at this midnight minus CUM generation at last midnight = today’s generation

I’ve now discovered Trystan Lea’s useful script

So I can now try searching thru’ all the feed values to find the one closest to my desired time.