Taproot-Manufacturing-Syndicate / hydroponics-controller

1 stars 1 forks source link

Scheduler: Simple #1

Open rustbloom opened 1 week ago

rustbloom commented 1 week ago

We need to turn on the lights and the pump each on their own schedule.

The schedule will be set with a YAML (or maybe a TOML or JSON) file.

The simplest schedule would be: -lights on at time T0 and off at T1 each day. -pump runs every X minutes out of every Y minutes.

This is planned to be two async tasks.

Signalling to hardware will be an HTTP request.

rustbloom commented 4 days ago

Scope expansion ideas:

sigil-03 commented 23 hours ago

Not sure if it's helpful or not - but a while ago I wrote a little MQTT tool for interfacing with tasmota outlets: https://gitlab.com/sigil-03/mqtt-status-rs