Yes exactly. It checks the weather forecast however so it doesn’t water when it‘s raining. This way I don’t have to refill the canister too often. A better way would be to attach moisture sensors to the plants, but I don’t like having to change batteries constantly. This is a very simple solution but it works for me.
I used this code as the base and changed it slightly so the pump has a safety time out and can be controlled via PWM.
In newer projects I use code from Espressif however because it works with Matter and Threads.