erijo / sunnyportal-py

Python module to access PV systems in Sunny Portal
GNU General Public License v3.0
40 stars 24 forks source link

<enhancement> add optional "days-past" argument to sunnyportal2pvoutput #16

Closed michaelpeeters closed 4 years ago

michaelpeeters commented 4 years ago

Hi, my Inverter is on an unreliable internet connection, so the updates to sunnyportal are not always available in the night. By adding an optional "days-past" argument I can update pvoutput with data of a previous date once sunnyportal is updated.

eg: PYTHONPATH=. ./bin/sunnyportal2pvoutput --status --days-past 1 sunnyportal.config will fetch the productiondata from today and yesterday.

erijo commented 4 years ago

Closing this as #17 has been merged.