OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Program start time x minutes before sunrise does not work
- This topic has 3 replies, 2 voices, and was last updated 3 months ago by
Ray.
-
AuthorPosts
-
March 24, 2026 at 3:43 am #85141
sprinklerspainParticipantI set the start time for all programs to be -x minutes before sunrise.
Station 1: Sunrise – 4h (-240) for 15 minutes
Station 2: Sunrise – 3h -30 (-210) for 15 minutes
…
Since programming the stations a few weeks ago, their start times haven’t changed.
Station 2, for example, has been starting at 4:31:00 AM since it was programmed on March 1st.
Now, on March 24th, the sun is rising about 45 minutes earlier.
However, the program still starts at 4:31 AM.
My OS is connected to Wi-Fi but doesn’t have internet access. Time and GPS location are correct.
PD:
Program Vers 2.4.90
Firmware 2.2.0 (1)
Hardware 3.1 – DCMarch 24, 2026 at 7:56 am #85143
RayKeymasterThe first thing to check is if the controller is actually getting the correct sunrise and sunset times. At the homepage, swipe left to right to open the side menu, then ‘System Diagnostics’. Check the Weather Service status and Weather Service Details. If it shows any error, that means the controller is not getting the correct sunrise and sunset times, which can explain why the program start times never changed.
Actually, I just noticed you said your OSPi has no Internet access, well, that explains it. The firmware currently requires Internet to send weather queries in order to get the sunrise and sunset times.
March 25, 2026 at 7:42 am #85157
sprinklerspainParticipantHello Ray,
Thank you very much for your quick reply. I’ve enabled internet access and it’s now working.
Is there a set time at which the data is checked?
If so, I could limit the internet access. Of course, it would be better not to have to do that at all.March 25, 2026 at 11:35 am #85163
RayKeymasterThe firmware checks weather approximately every 6 hours, which is defined here:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/main.cpp#L81
but it’s a bit difficult to define a specific time frame, because this is every 6 hours since the last reboot of the controller. If you need to have fine control over when it makes the call, you can modify the firmware:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/main.cpp#L1218
and change the check_weather condition to a fixed time of a day.Alternatively, the firmware maintained by our German distributor Stefan:
https://github.com/opensprinklershop/OpenSprinkler-Firmware
has a feature that calculates sunrise/sunset times locally without needing a weather query. You could use his firmware, but it has substantially more features that the official OpenSprinkler user manual does not document. You could certainly grab just the part of the code that does this calculation. -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Program start time x minutes before sunrise does not work