Skip to content

Commit 403529b

Browse files
committed
Fix timings of solar forecast and review
1 parent 63e79fc commit 403529b

3 files changed

+4
-2
lines changed

source/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def log_solar_forecast(log_as_review: bool = False) -> None:
1717
end = now.replace(hour=23, minute=0, second=0, microsecond=0)
1818
if log_as_review:
1919
end -= timedelta(minutes=2)
20+
else:
21+
start += timedelta(minutes=2)
2022

2123
solar_output_today = sun_forecast_handler.get_solar_output_in_timeframe(start, end)
2224
if log_as_review:

systemd/inverter-charge-controller-just-solar-forecast.timer

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description = "Timer: Software that logs the expected amount of solar output of the day (in the morning)"
33

44
[Timer]
5-
OnCalendar=Mon..Sun 05:05
5+
OnCalendar=Mon..Sun 05:00
66
RandomizedDelaySec=0
77
Persistent=true
88

systemd/inverter-charge-controller-just-solar-review.timer

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description = "Timer: Software that logs the amount of solar output of the day (in the evening)"
33

44
[Timer]
5-
OnCalendar=Mon..Sun 23:05
5+
OnCalendar=Mon..Sun 23:00
66
RandomizedDelaySec=0
77
Persistent=true
88

0 commit comments

Comments
 (0)