OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Current State of the Weather Script › Reply To: Current State of the Weather Script
Ok. I have looked in more detail at the OpenSprinkler-Weather script. I’m not a Node.js expert. However, there seems to be a bug in the local.ts file. If we change the sequence in the getLocalWateringData function to first using today’s weather and second using yesterday’s weather as watering data everything works fine. Yesterday’s weather summary is captured every midnight and used to calculate the watering percentage of the ongoing day. There are no fluctuations at all in the watering percentage. In case of rain during the ongoing day the watering percentage is adapted as expected.
I can only speak for local PWS users who host the weather script on their own local server. With the above adaptations the weather script provides the same functionality as known from the “old Wunderground days”.