Skip to content

French word clock for Raspberry Pi with WS2812B LEDs

Notifications You must be signed in to change notification settings

coxla1/wordclock

 
 

Repository files navigation

Wordclock

French word clock for Raspberry Pi with WS2812B LEDs.

Inspiration

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:

Features

  • 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.

Font

D-DIN font by Datto licensed under the SIL Open Font License (OFL).

Configuration

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.

MQTT topics

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.

Clock

  • wordclock/plugin/clock/on
  • wordclock/plugin/clock/off
  • wordclock/plugin/clock/day
  • wordclock/plugin/clock/minute
  • wordclock/plugin/clock/rainbow

Display

  • wordclock/display/brightness

Temperature

  • wordclock/plugin/temperature/on
  • wordclock/plugin/temperature/off
  • wordclock/plugin/temperature/rainbow
  • wordclock/plugin/temperature/location

Assembly instructions

  1. Wire the Raspberry Pi according to this diagram (a diode can also be used, see here)
  2. Install Raspberry Pi OS
  3. Clone this github and change directory with git clone https://github.com/coxla1/wordclock.git; cd wordclock
  4. Install CircuitPython and NeoPixel library following this and this
  5. Install requirements with pip3 install -r requirements.txt
  6. Do not forget to disable audio ! (as in the second link on NeoPixel library)
  7. Install a MQTT server on the Raspberry (mosquitto for instance)
  8. Setup your settings.conf
  9. You can run the script with python3 app.py, or add it as a service (see here)

About

French word clock for Raspberry Pi with WS2812B LEDs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OpenSCAD 91.3%
  • Python 8.7%