https://github.com/dr-mod/xmas-tree
https://github.com/dr-mod/xmas-tree
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dr-mod/xmas-tree
- Owner: dr-mod
- Created: 2021-01-16T21:26:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T15:20:49.000Z (over 3 years ago)
- Last Synced: 2025-04-26T17:46:58.350Z (about 1 year ago)
- Language: Python
- Size: 419 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blackout-proof Xmas Tree
A pattern for a 3D RGB Xmas Tree and RPi.

## Hardware
* Raspberry Pi
* 3D RGB Xmas Tree for Raspberry Pi
* Waveshare UPS HAT
## Installation
1. Install dependencies
```
sudo apt install python3-gpiozero
```
2. Download the script
```
git clone https://github.com/dr-mod/xmas-tree.git ~/xmas-tree
```
3. Run it
```
python3 ~/xmas-tree/main.py
```
4. To make it run on startup
1. `nano /etc/rc.local`
2. Add one the following before `exit 0`
```
/usr/bin/python3 /home/pi/xmas-tree/main.py &
```
conversely, you can run in `screen`
```
su - pi -c "/usr/bin/screen -dm sh -c '/usr/bin/python3 /home/pi/xmas-tree/main.py'"
```
### Support the project
If you would like to support this project and and keep me caffeinated, you can do it here:
[](https://www.buymeacoffee.com/drmod)