Clean up code
This commit is contained in:
parent
88f5086701
commit
2b8d46aa5f
|
@ -1,6 +1,5 @@
|
|||
__pycache__/
|
||||
*.swp
|
||||
*.tmp
|
||||
garage.cfg
|
||||
www/*
|
||||
!www/.gitkeep
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
## Dependencies
|
||||
```
|
||||
sudo raspi-config nonint do_spi 0
|
||||
sudo apt install python3-pip python3-dev python3-spidev
|
||||
sudo pip3 install unicornhathd
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
import json
|
||||
import requests
|
||||
import sys
|
||||
|
||||
from configparser import ConfigParser
|
||||
from gpiozero import Button
|
||||
from signal import pause
|
||||
from signal import signal
|
||||
from signal import SIGTERM
|
||||
from threading import Lock
|
||||
|
||||
threadLock = Lock()
|
||||
|
|
|
@ -4,7 +4,6 @@ After=multi.user.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
KillMode=mixed
|
||||
WorkingDirectory=$workingDirectory
|
||||
ExecStart=$execStart
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in New Issue