Go to file
Ebbe Baß b098463363 finnally removed animation
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
2022-07-02 10:32:41 +02:00
.gitignore added test.py 2022-07-01 21:59:03 +02:00
GPIO Pin.png Create GPIO Pin.png 2021-11-09 14:55:54 +01:00
LICENSE Initial commit 2021-11-08 20:35:03 +00:00
README.md Updated README 2022-03-11 10:32:39 +00:00
main-old.py removed debug client and added new main.py 2022-05-15 20:40:08 +02:00
main.py finnally removed animation 2022-07-02 10:32:41 +02:00
requirements.txt updated reqs 2022-06-29 22:02:56 +02:00
start.sh changed screen name 2022-06-29 22:01:19 +02:00

README.md

GPIO pin setup

Install Python script as service

Requirements:

  • systemd (sudo apt install systemd -y)

Create service file: sudo nano /etc/systemd/system/server-rack-led.service

Content in the service file:

[Unit]
Description=Server Rack LED
After=multi-user.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /home/pi/server-rack-led/main.py

[Install]
WantedBy=multi-user.target

Reload daemon, enable service and start service:

sudo systemctl daemon-reload
sudo systemctl enable server-rack-led.service
sudo systemctl start server-rack-led.service