French word clock for Raspberry Pi with WS2812B LEDs.
This is a fork from the project tidsram of machosallad. Many thanks to them for providing their code!
The code and build is inspired by the following makers:
- rpi_wordclock by bk1285
- LED Word Clock (code) by Chloe Kuo
- Display the current time with resolution of one minute.
- Pygame to run the main loop consistently.
- Abstract display allows development without access to WS2812B LEDs.
- Control various settings through MQTT.
D-DIN font by Datto licensed under the SIL Open Font License (OFL).
A configuration file allows the user to make adjustments to the application. Such as: LED brightness & color, run simulated time etc.
Make a copy of settings.conf.example
, save it as settings.conf
and then change the available fields to suitable values.
The configuration is read when the application starts, so make sure to restart the application for the change to take effect.
Settings such as adjusting the brightness or changing the color of the LEDs are done using MQTT. The topics are tied to specific plugins or core modules.
- wordclock/plugin/clock/on
- wordclock/plugin/clock/off
- wordclock/plugin/clock/day
- wordclock/plugin/clock/minute
- wordclock/plugin/clock/rainbow
- wordclock/display/brightness
- wordclock/plugin/temperature/on
- wordclock/plugin/temperature/off
- wordclock/plugin/temperature/rainbow
- wordclock/plugin/temperature/location
- Wire the Raspberry Pi according to this diagram (a diode can also be used, see here)
- Install Raspberry Pi OS
- Clone this github and change directory with
git clone https://github.com/coxla1/wordclock.git; cd wordclock
- Install CircuitPython and NeoPixel library following this and this
- Install requirements with
pip3 install -r requirements.txt
- Do not forget to disable audio ! (as in the second link on NeoPixel library)
- Install a MQTT server on the Raspberry (mosquitto for instance)
- Setup your
settings.conf
- You can run the script with
python3 app.py
, or add it as a service (see here)