CodeCasterNL / PVBridge

Sync live and historic solar panel data from GoodWe to PVOutput.org and CSV, on Windows.
https://codecasternl.github.io/PVBridge/
MIT License
3 stars 0 forks source link

Sync further back than 14 days and allow greater resolution #10

Open CodeCasterNL opened 2 years ago

CodeCasterNL commented 2 years ago

Sync backlog since installation date of system.

For that we need to write a little JSON in AppData\PVBridge\PVBridge.Status.json with where we are, or we'll poll more and more months the longer a system is installed (Schlemiel the Painter algorithm).

Also, the interval is currently hardcoded at 5, we can do a Math.Max(input.Resolution, output.Resolution). Could be 1 minute in PVOutput donation mode.