Skip to content
Snippets Groups Projects
Verified Commit 86b8cd1e authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Update README.md

parent cbbc1d78
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ A simple clock that displays the current time in a fancy way. ...@@ -7,6 +7,7 @@ A simple clock that displays the current time in a fancy way.
Use Wayland for the display server, especially if you're using an SPI display. X11 may also be too slow. Use Wayland for the display server, especially if you're using an SPI display. X11 may also be too slow.
To install:
```bash ```bash
cd ~ cd ~
git clone https://git.rb9.xyz/TheJoeCoder/cs-fancy-clock git clone https://git.rb9.xyz/TheJoeCoder/cs-fancy-clock
...@@ -17,10 +18,18 @@ python3 -m venv .venv ...@@ -17,10 +18,18 @@ python3 -m venv .venv
# Install the requirements # Install the requirements
# Omit the -r requirements.neopixel.txt if you don't have a neopixel strip # 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 ./.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) # Change access permissions for Wayland (insecure but necessary)
xhost +SI:localuser:root xhost +
# Run the clock # Run the clock
sudo ./.venv/bin/python3 main.py sudo ./.venv/bin/python3 main.py
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment