David Woodhouse [Thu, 9 May 2024 09:27:09 +0000 (10:27 +0100)]
Turn pump off when it gets cold after 5pm
There's still some water flow through the roof even when the bypass valve
is open. So stop pumping completely if it stays cold for more than half
an hour. But *only* after 5pm, because the pump *does* need to run for
enough hours each day to actually clean the water, and because this way
I don't need to bother with a trigger for actually turning it back on
again — if it's already cold after 5pm, it's unlikely to warm up again.
Bump the timed switch off to 8pm, because this should now be the primary
way the pump is turned off.
David Woodhouse [Wed, 6 Sep 2023 13:15:58 +0000 (14:15 +0100)]
Fix default setting of pump
Make a script which turns the pool pump on or off depending on whether
the time is between 7am and 7pm. Run it at 7am and 7pm.
Also run it on time sync, and on startup, to ensure that the pump is
running if it's supposed to be after a reboot.
The 'force' parameter ensures that we don't keep flipping it on at every
time sync; only at startup and at the regular 7am/7pm switches. So if
it's been overridden manually it should stay that way without surprises.