Deploy to RPi 4

master
Tanner Collin 8 months ago
parent 743ac56d3a
commit acc38ad17f
  1. 11
      README.md
  2. 2
      main.py

@ -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

@ -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 = [

Loading…
Cancel
Save