LED display for TM1637 displays
Project description
LED Kurokku
The over-powered LED clock for raspberry pis and the TM1637 LED Display.
Overview
LED-Kurokku is a versatile system for controlling TM1637 LED displays with multiple widgets, automated brightness control, and weather integration. The system consists of:
- led-kurokku: Core application that controls the LED display
- kurokku-cli: Command-line tool for managing multiple LED-Kurokku instances
See the Architecture Document for a detailed system diagram and explanation of how the components work together.
The clock can be configured to show various widgets at specific intervals.
Widget types:
- clock
- configurable to show either 12/24 hour format.
- message
- these can be static messages or dynamically loaded on display from a Redis compatible store. So if you have a separate process updating a temperature reading in redis, you can have a static message that displays that reading.
- alert
- these are designed to be shorter lived messages that you only display when they're present.
- they are loaded from redis and will appear immediately (depending on configuration) once added.
- animation
- doing silly stuff with the LED display.
- the configuration is based on integer arrays and timings.
The clock is designed to have its configuration controlled by a server application that writes configuration data to redis.
Running Locally without an LED Display
If you don't install the optional rpi dependencies or they're not installed correctly, the program will default to a virtual text display.
━━ ━━ ━━ ━━
┃ ┃ ┃ ┃ ┃ ┃
: ━━ ━━
┃ ┃ ┃ ┃ ┃ ┃
━━ ━━ ━━
If you want to do a deeper dive into debugging, you can specify both the --debug flag to force DEBUG level logging and --console to log detailed information about what would have been sent to the display instead of the virtual display or the real display.
Or you can choose to use the virtual or real display but also log debug level output to a file via:
--debug
--log-file=my_log_filename.log
Configuration Details
Redis Keys
Configuration
kurokku:config- main configuration stored in JSON stringwidgets- a list of widget configuration objectswidget_type- one ofclock,alert,message,animationenabled- boolean (defaults totrue)duration- number of seconds to display (defaults to5)- additional widget_type specific configuration options
brightness- brightness settingsbegin- time to begin high brightness (e.g.08:00)end- time to end high brightness and use low (e.g.20:00)high- value for high brightness (from0to7)low- value for low brightness (from0to7)
Alerts
kurokku:alert:*- alert messagestimestamp- ISO 8601 timestampmessage- string message to displaydisplay_duration- number of seconds to display
Weather Data
kurokku:weather:temp:*- weather temperature data (e.g., "72*F")kurokku:weather:alert:*- weather alerts from NOAA
Messages
*- any key (specified key name in thedynamic_sourcefield of amessagewidget)- raw string text to display
Animations
*- any key (specified key name in thedynamic_sourcefield of ananimationwidget)frames- a list of frame objectssegments- a list of integers representing the segments to display in each digitdisplay_duration- afloatin seconds (e.g..1)
Example Configuration
TODO: example configuration
CLI Tool
The kurokku-cli tool provides a way to manage multiple LED-Kurokku instances. See README-cli.md for detailed usage instructions.
Key features:
- Instance management for multiple LED-Kurokku displays
- Configuration management using YAML files
- Alert sending with customizable display duration
- Weather data integration with automatic brightness adjustment
- Template management for reusable configurations
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file led_kurokku-0.1.0.tar.gz.
File metadata
- Download URL: led_kurokku-0.1.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8217b3f114f3d57a460d4261a58142a0773ad2c6f383c76ea8e1831f4d7876ec
|
|
| MD5 |
2837de89afc2c96cdba9cf17df4a5b38
|
|
| BLAKE2b-256 |
62f02bdbc6c8ef085177e1aca97b2e7693e12a3775264195aec2c475d92f18b5
|
File details
Details for the file led_kurokku-0.1.0-py3-none-any.whl.
File metadata
- Download URL: led_kurokku-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60bc7943445b034e1b54217e1ab116f84bc0beb515a763963c0412c7e40169be
|
|
| MD5 |
e30f762dc7072cad654450a1f3062f59
|
|
| BLAKE2b-256 |
8c7151528e554d76b30c5e404a3168a8587045a7997360f1b027e8eefe76a031
|