Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hpsaturn/esp32-s3-clock
Basic digital clock synced with Internet via NTP and configured via the serial console using a basic CLI
https://github.com/hpsaturn/esp32-s3-clock
arduino cli esp32 esp32s3 lvgl ntp
Last synced: 3 months ago
JSON representation
Basic digital clock synced with Internet via NTP and configured via the serial console using a basic CLI
- Host: GitHub
- URL: https://github.com/hpsaturn/esp32-s3-clock
- Owner: hpsaturn
- License: gpl-3.0
- Created: 2022-09-25T19:50:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T11:39:32.000Z (4 months ago)
- Last Synced: 2024-09-29T18:44:53.968Z (3 months ago)
- Topics: arduino, cli, esp32, esp32s3, lvgl, ntp
- Language: C
- Homepage:
- Size: 912 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp32-s3-clock
Basic digital clock synced with Internet via NTP and configured via command line (CLI via USB-Serial)
## Build and Upload
Please install first [PlatformIO](http://platformio.org/) open source ecosystem for IoT development compatible with **Arduino** IDE and its command line tools (Windows, MacOs and Linux). Also, you may need to install [git](http://git-scm.com/) in your system. After install that you should have the command line tools of PlatformIO. Please test it with `pio --help`. Then please run the next command for build and upload the firmware:
```bash
pio run --target upload
```## Configuration
![Clock settings](pics/preview.jpg)
Using your USB cable, connect it and run:
```bash
pio device monitor
```Press enter and type help. You should see the configuration commands for setup your WiFi and time settings.
For instance to set Tokio time zone, select the correct time zone code [here](https://raw.githubusercontent.com/nayarsystems/posix_tz_db/master/zones.csv) and set it:
```bash
ntpzone JST-9
```## CLI preview
![ESP32S3 Clock CLI preview](pics/cli.jpg)
## Credits
The original version was from [LilyGO](https://github.com/Xinyuan-LilyGO/T-Display-S3), but this version burned the libraries and dependencies into the main repository. Also the LVGL config was into the hidden directory. For show the best practices I did this basic example using some tools from PlatformIO to suppress this bad practices.