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

Support for Weatherlink Live data locally from Davis Weather Station #146

Open ccorcos opened 7 months ago

ccorcos commented 7 months ago

I don't know what's going on with the other document about integrating with a Davis Weather Station, but it seems outdated and/or overcomplicated.

I'm using a weather link live device which has a local api for getting weather data. All I did was add some env variables and leverage the rest of the local weather service api.

I added a markdown doc explaining how to set it up.

I think I have all the units working right and left some comments to help out others.

I also removed the condition to wait 23 hours before ETo weather will work. The only measurement that will be incorrect is the precipitation because it hasn't accumulated yet. But for the other values, its averaging so that should be fine after just a single sample...

Let me know what you think! I now have a full local system going now :)

ccorcos commented 7 months ago

Phew. There was some annoying bugs to figure out there.

I think everything looks good now though. Here's the numbers in OpenSprinkler as they compare to Weatherlink

Screenshot 2024-01-17 at 3 19 56 PM Screenshot 2024-01-17 at 3 20 14 PM