From acc38ad17f36515495282945f0901d34e28a2ad8 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 3 Sep 2023 03:07:12 +0100 Subject: [PATCH] Deploy to RPi 4 --- README.md | 11 ++++++++++- main.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00b5450..6bfa1ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Airlock -Door controller for scanning Protospace member cards on the front and back doors. +Door controller for scanning Fuse33 member cards on the front and back doors. ## Setup @@ -34,6 +34,13 @@ KERNEL=="watchdog", MODE="0666" Also ensure `/boot/cmdline.txt` doesn't contain `console=serial0,115200`. +On Raspberry Pi 4, you may need to add this to the end of '/boot/config.txt`, after `[all]`: + +``` +enable_uart=1 +dtoverlay=disable-bt +``` + Then reboot: ```text @@ -90,6 +97,8 @@ stdout_logfile=/var/log/airlock.log stdout_logfile_maxbytes=10MB ``` +Run `sudo supervisorctl reread; sudo supervisorctl update` to deploy. + Script logs to /var/log/airlock.log. Remove `-u` from the above command when you're done testing. ## License diff --git a/main.py b/main.py index 68a939c..6d52a9d 100644 --- a/main.py +++ b/main.py @@ -22,7 +22,7 @@ if not TEST: import secrets -RELAY_PIN = 17 +RELAY_PIN = 18 CARDS_FILE = 'card_data.json' OPEN_DURATION = 4 VALID_PACKAGES = [