# 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:
```bash
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:
```bash
./run-pi.sh
```

Or, alternatively, you can run the commands manually.
```bash
# Change access permissions for Wayland (insecure but necessary)
xhost +
# Run the clock
sudo ./.venv/bin/python3 main.py
```
