Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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()
```