Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.