[1mdiff --git a/README.md b/README.md[m
[1mindex 0417d6f..7f3dac4 100644[m
[1m--- a/README.md[m
[1m+++ b/README.md[m
[36m@@ -1,2 +1,14 @@[m
[m
[32m+[m[32m## Dependencies[m
[32m+[m[32m```[m
[32m+[m[32msudo raspi-config nonint do_spi 0[m
[32m+[m[32msudo apt install python3-pip[m
[32m+[m[32msudo apt install python3-gpiozero[m
[32m+[m[32msudo pip3 install unicornhatmini[m
[32m+[m[32m```[m
[32m+[m
[32m+[m[32m## Installation[m
[32m+[m[32m```[m
[32m+[m[32msudo ./install[m
[32m+[m[32m```[m
[1mdiff --git a/install b/install[m
[1mnew file mode 100755[m
[1mindex 0000000..85f26c9[m
[1m--- /dev/null[m
[1m+++ b/install[m
[36m@@ -0,0 +1,34 @@[m
[32m+[m[32m#! /usr/bin/env python3[m
[32m+[m
[32m+[m[32mimport os[m
[32m+[m[32mimport sys[m
[32m+[m
[32m+[m[32mfrom string import Template[m
[32m+[m[32mfrom subprocess import check_call[m
[32m+[m
[32m+[m[32mEXEC = 'system-status.py'[m
[32m+[m[32mSERVICE = 'system-status.service'[m
[32m+[m[32mSYSTEM_DIR = '/etc/systemd/system'[m
[32m+[m
[32m+[m[32mCURRENT_DIR = os.path.dirname(os.path.realpath(file))[m
[32m+[m[32mEXEC_PATH = os.path.join(CURRENT_DIR, EXEC)[m
[32m+[m[32mSERVICE_TEMPLATE = os.path.join(CURRENT_DIR, SERVICE)[m
[32m+[m[32mSERVICE_FILE = os.path.join(SYSTEM_DIR, SERVICE)[m
[32m+[m[32mPYTHON = sys.executable[m
[32m+[m[32mEXEC_START = f'{PYTHON} {EXEC}'[m
[32m+[m
[32m+[m[32mwith open(SERVICE_TEMPLATE) as f:[m
[32m+[m[32m serviceTemplate = Template(f.read())[m
[32m+[m
[32m+[m[32mserviceFile = serviceTemplate.substitute([m
[32m+[m[32m workingDirectory=CURRENT_DIR,[m
[32m+[m[32m execStart=EXEC_START[m
[32m+[m[32m)[m
[32m+[m
[32m+[m[32mwith open(SERVICE_FILE, 'w') as f:[m
[32m+[m[32m f.write(serviceFile)[m
[32m+[m
[32m+[m[32mcheck_call(['systemctl', 'daemon-reload'])[m
[32m+[m[32mcheck_call(['systemctl', 'enable', '--no-pager', SERVICE])[m
[32m+[m[32mcheck_call(['systemctl', 'restart', '--no-pager', SERVICE])[m
[32m+[m[32mcheck_call(['systemctl', 'status', '--no-pager', SERVICE])[m
[1mdiff --git a/system-status.py b/system-status.py[m
[1mnew file mode 100644[m
[1mindex 0000000..50b17fa[m
[1m--- /dev/null[m
[1m+++ b/system-status.py[m
[36m@@ -0,0 +1 @@[m
[32m+[m[32mfrom unicornhatmini import UnicornHATMini[m
[1mdiff --git a/system-status.service b/system-status.service[m
[1mnew file mode 100644[m
[1mindex 0000000..05bf741[m
[1m--- /dev/null[m
[1m+++ b/system-status.service[m
[36m@@ -0,0 +1,13 @@[m
[32m+[m[32m[Unit][m
[32m+[m[32mDescription=System Status Service[m
[32m+[m[32mAfter=multi.user.target[m
[32m+[m
[32m+[m[32m[Service][m
[32m+[m[32mType=simple[m
[32m+[m[32mWorkingDirectory=$workingDirectory[m
[32m+[m[32mExecStart=$execStart[m
[32m+[m[32mRestart=on-failure[m
[32m+[m[32mSyslogIdentifier=system-status[m
[32m+[m
[32m+[m[32m[Install][m
[32m+[m[32mWantedBy=multi-user.target[m
text/plain
This content has been proxied by September (ba2dc).