Correct times

This commit is contained in:
Paul Warren 2024-10-23 07:34:12 +11:00
parent 065fdeab98
commit a50d3b60e1

View file

@ -41,7 +41,7 @@ print("1h est WH: %.2f" % h_estim)
print("1hr est %%: %.2f" % h_estpct)
time_check = (current_time.hour == 9 or current_time.hour == 15)
time_check = (current_time.hour == 5 or current_time.hour == 15)
estimate_check = (h_estpct < 18.0)
if (time_check and estimate_check):
@ -51,7 +51,7 @@ else:
# Logic of this is:
#
# If it's 05:00 and battery SoC will be < 18% at 07:00: charge at full beans for 1 hour
# If it's 05:00 and battery SoC will be < 18% at 06:00: charge at full beans for 1 hour
#
# if it's 15:00 and battery SoC will be < 25% at 16:00: charge at full beans for 1 hour