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