OpenSprinkler / OpenSprinkler-Weather

OpenSprinkler weather service used to calculate watering scale for the OpenSprinkler Unified Firmware.
https://opensprinkler.com
63 stars 38 forks source link

How to turn on caching? #119

Closed rmloeb closed 3 weeks ago

rmloeb commented 3 years ago

Caching is used by the weather server that runs in the Amazon cloud to provide a consistent water level adjustment throughout the day. Can I use that feature with a local weather server? How do I turn it on?

[I need this to make ETo work correctly when sprinklers can't/don't run every day.]

Rog

rayshobby commented 3 weeks ago

shouldCacheWateringScale() is a function per weather service provider, you can define it for each weather service provider individually: https://github.com/OpenSprinkler/OpenSprinkler-Weather/blob/master/routes/weatherProviders/Apple.ts#L179