From 2b8d46aa5fff7fbec39ff3433479ff3bd527e271 Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Thu, 5 Jan 2023 19:32:17 -0500 Subject: [PATCH] Clean up code --- .gitignore | 1 - README.md | 3 --- garage.py | 3 --- garage.service | 1 - 4 files changed, 8 deletions(-) diff --git a/.gitignore b/.gitignore index 03ea543..46249cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ __pycache__/ *.swp -*.tmp garage.cfg www/* !www/.gitkeep diff --git a/README.md b/README.md index 8afe482..cae4f4e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/garage.py b/garage.py index dbb2893..49d9fab 100644 --- a/garage.py +++ b/garage.py @@ -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() diff --git a/garage.service b/garage.service index 01e1b6d..f9cb0c0 100644 --- a/garage.service +++ b/garage.service @@ -4,7 +4,6 @@ After=multi.user.target [Service] Type=simple -KillMode=mixed WorkingDirectory=$workingDirectory ExecStart=$execStart Restart=on-failure