Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radames/ntp_rtc_sync
RTC Clock Sync with the NTP Protocol on ESP8266 Arduino
https://github.com/radames/ntp_rtc_sync
arduino esp8266 ntp ntp-client rtc rtc-module sync sync-rtc-clock wifi
Last synced: 3 months ago
JSON representation
RTC Clock Sync with the NTP Protocol on ESP8266 Arduino
- Host: GitHub
- URL: https://github.com/radames/ntp_rtc_sync
- Owner: radames
- Created: 2017-10-23T02:40:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T02:48:02.000Z (over 7 years ago)
- Last Synced: 2024-10-26T22:30:55.439Z (3 months ago)
- Topics: arduino, esp8266, ntp, ntp-client, rtc, rtc-module, sync, sync-rtc-clock, wifi
- Language: Arduino
- Homepage:
- Size: 1.95 KB
- Stars: 17
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sync RTC clock with NTP
## Libs
You must have the libs:
* [Adafruit RTCLib](https://github.com/adafruit/RTClib)
* [Arduino NTP Client](https://github.com/arduino-libraries/NTPClient)You can install from Arduino/ Manage Libraries menu
## Wifi
Copy `WifiPass.h.config` to `WifiPass.h` and change the `ssid` and `password` to your wifi network information.
## Parameters
Change the `NTP_SERVER` to a suitable server.```C
#define NTP_SERVER "0.us.pool.ntp.org"
```Change the GMT time zone `GMT_TIME_ZONE` you can add a signed number
```C
#define GMT_TIME_ZONE -7
```You can force the time sync after the first time changing the `FORCE_RTC_UPDATE` to a random number between 0-255
```C
#define FORCE_RTC_UPDATE 2
```