Deploy to RPi 4

This commit is contained in:
Tanner Collin 2023-09-03 03:07:12 +01:00
parent 743ac56d3a
commit acc38ad17f
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Airlock # 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 ## Setup
@ -34,6 +34,13 @@ KERNEL=="watchdog", MODE="0666"
Also ensure `/boot/cmdline.txt` doesn't contain `console=serial0,115200`. 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: Then reboot:
```text ```text
@ -90,6 +97,8 @@ stdout_logfile=/var/log/airlock.log
stdout_logfile_maxbytes=10MB 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. Script logs to /var/log/airlock.log. Remove `-u` from the above command when you're done testing.
## License ## License

View File

@ -22,7 +22,7 @@ if not TEST:
import secrets import secrets
RELAY_PIN = 17 RELAY_PIN = 18
CARDS_FILE = 'card_data.json' CARDS_FILE = 'card_data.json'
OPEN_DURATION = 4 OPEN_DURATION = 4
VALID_PACKAGES = [ VALID_PACKAGES = [