MTry / homebridge-smart-irrigation

Turn any electrical irrigation valve into a smart-valve.. or run your pumps on a smart schedule based on your climate! This homebridge plugin exposes a multi-zone irrigation sprinkler dummy control system to Apple's HomeKit. Although a dummy, it brings smarts of an evapotranspiration based climate and plant adaptive irrigation controller with the use of OpenWeatherMap API. The plugin can optionally email you, and/or send you push notifications through Pushover or Pushcut, with the watering schedule it has calculated, or when a watering run is completed, along with the next 7-day weather forecast. Added option to expose system controls to Homekit allowing a user to enable/disable irrigation, rechecks, push and email notifications from within the Home App. Associated WaterLevel Characteristic shows the % of watering cycle remaining.
MIT License
78 stars 3 forks source link

Choosing hour of irrigation #39

Closed matbe81 closed 2 years ago

matbe81 commented 2 years ago

Hi,

I read some scientist documentation recommending to irrigate at evening in place of morning.

Thank you !

MTry commented 2 years ago

The choice is yours as there are multiple opinions on this. The way to achieve it would be to give a negative number in sunriseoffset: so a -60 in the setting will result in irrigation being concluded by 1 hour post sunrise. Calculate for your evening in terms of the number of minutes post sunrise.

matbe81 commented 2 years ago

Thank you.

Is it possible to define a timing related to sunset in place of sunrise as length of days can very a lot depending of the month?

MTry commented 2 years ago

Sorry.. that's not possible at the moment or planned 🙂

I do understand your point though but it would take quite a bit of code update to do this..