Skip to content
Snippets Groups Projects
Select Git revision
  • 303f207cdb9cce069a06192f766bc1fb32bb95da
  • master default protected
2 results

cs-fancy-clock

  • Clone with SSH
  • Clone with HTTPS
  • TheJoeCoder's avatar
    TheJoeCoder authored
    303f207c
    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.

    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
    
    # Change access permissions for Wayland (insecure but necessary)
    xhost +SI:localuser:root
    # Run the clock
    sudo ./.venv/bin/python3 main.py