Skip to content
Snippets Groups Projects
Select Git revision
  • 86b8cd1ef2751e82ea50f31e7a0465f19670b76d
  • master default protected
2 results

cs-fancy-clock

  • Clone with SSH
  • Clone with HTTPS
  • TheJoeCoder's avatar
    TheJoeCoder authored
    86b8cd1e
    History

    cs-fancy-clock

    A simple clock that displays the current time in a fancy way.

    Installation (on Pi Zero W)

    Use Wayland for the display server, especially if you're using an SPI display. X11 may also be too slow.

    To install:

    cd ~
    git clone https://git.rb9.xyz/TheJoeCoder/cs-fancy-clock
    cd cs-fancy-clock
    sudo apt-get install python3 python3-dev python3-pip python3-pygame
    python3 -m venv .venv
    
    # Install the requirements
    # Omit the -r requirements.neopixel.txt if you don't have a neopixel strip
    ./.venv/bin/pip install -r requirements.txt -r requirements.neopixel.txt

    Then to run, run the pre-made script:

    ./run-pi.sh

    Or, alternatively, you can run the commands manually.

    # Change access permissions for Wayland (insecure but necessary)
    xhost +
    # Run the clock
    sudo ./.venv/bin/python3 main.py