OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Last Weather Call Days Ago Reply To: Last Weather Call Days Ago

#38502

Samer
Keymaster

@radas Correct, when a program is running the controller will forgo network polls such as weather updates. The relevant line of code preventing the weather update when a station is running is contained in one line, here: https://github.com/OpenSprinkler/OpenSprinklerGen2/blob/master/main.cpp#L588. You are welcome to disable it for your use case however the reason we are doing this is to ensure the program runs uninterrupted. We will consider changing this condition in the future but for now as we roll out this relatively new featureset we want to ensure it works without interrupting any scheduled programs.

As soon as the program stops though, the check_weather function will be called and since the time since last check has drifted, it will update immediately after a program run.