OpenSprinkler / OpenSprinkler-Firmware

OpenSprinkler Unified Firmware for OpenSprinkler, OpenSprinkler Pi, and OpenSprinkler Beagle.
http://www.opensprinkler.com
GNU General Public License v3.0
476 stars 286 forks source link

RTC Local time when there isnt internet connection #312

Closed iofirag closed 3 months ago

iofirag commented 3 months ago

Hi, i have been install Opensprinkler on raspberry pi (rpi3b+) by pull this repo and run ./build.sh, and want Opensprinkler will use RTC module when there isnt internet connection how can i achieve that? what model of RTC module is supported.

& by the way, i have future plans to move to D1 mini it will be possible also to run it with RTC module?

rayshobby commented 3 months ago

The microcontroller-based OpenSprinkler (i.e. OpenSprinkler 3.x) has built-in RTC which can maintain time when power is off. For RPi-based OpenSprinkler, because time keeping as well as NTP are managed by the Raspbian operating system, the firmware doesn't handle either of them. You can google 'rpi real-time clock' to install a RTC module yourself.

iofirag commented 3 months ago

Great. Thanks. What about d1 mini?

rayshobby commented 3 months ago

If you have an RTC module connected to D1 mini (the RTC can be PCF8563 or DS1307, both very common and popular), then the firmware can auto-detect these and use them.

iofirag commented 3 months ago

thanks! :)