Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdaskalov/analogclock
Tasmota LVGL smooth moving analog clock written in berry
https://github.com/mdaskalov/analogclock
analog-clock berry-lang clock tasmota
Last synced: 13 days ago
JSON representation
Tasmota LVGL smooth moving analog clock written in berry
- Host: GitHub
- URL: https://github.com/mdaskalov/analogclock
- Owner: mdaskalov
- Created: 2023-07-05T19:01:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-19T09:49:27.000Z (2 months ago)
- Last Synced: 2024-10-27T23:42:19.701Z (2 months ago)
- Topics: analog-clock, berry-lang, clock, tasmota
- Language: Berry
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnalogClock
Tasmota LVGL smooth moving analog clock written in berry
## Installation
Download the Tasmota appication file (AnalogClock.tapp) and upload it to your Tasmota device under Tools / Manage File System menu.To build manually, execute following in the repo directory:
```
rm -f AnalogClock.tapp; zip -j -0 AnalogClock.tapp src/*.be
```
## Configuration
Following parameter could be configured in the `persist` module:`clock_round_face` - boolean (default: false): round or rectangular clock face
`clock_width` - integer (default: screen_width)
`clock_height` - integer (default: screen_height)
`clock_font` - string (default: undefined) - .ttf font file to use for the digits (should be uploaded in the file system)
`clock_mirrored` - boolean (default: false): should the clock be mirrored (the font shoudl also be mirrored)
By default the embeded montserrat font is used. Depending on the build type only limited sizes are available (10, 14, 20, 28).
Use LVGL build or define `USE_LVGL_FREETYPE` to use custom .ttf files.Example:
```
import persist
persist.clock_mirrored = false
persist.clock_font = 'Vera.ttf'
persist.clock_round_face = false
persist.clock_width = 240
persist.clock_height = 240
persist.save()
```