]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commit
Fix default setting of pump
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 6 Sep 2023 13:15:58 +0000 (14:15 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 6 Sep 2023 13:21:05 +0000 (14:21 +0100)
commit8b7728ddbd1c8a024205b82f05b3cb81a747b83d
tree87ab534fc7ba9ae9956dea187f6406551111f1e6
parent5649afaabd5bbdfbbbcd5926e769fad45b11b4ae
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.
pool.yaml