Update README.md

This commit is contained in:
Jonathan Flueren 2023-08-17 18:21:57 +02:00
parent 45d2e8a34e
commit a117984276

View file

@ -13,9 +13,8 @@ Dependencies:
- Website: php
Configs to change:
- `scanner/scan.sh`:
- `scanner/live-scanner.sh`:
- WiFi adapter name
- network restart routines (front-end)
- `scanner/upload.py`:
- URLs for webhook and identities
- webhook secret
@ -23,4 +22,38 @@ Configs to change:
- webhook secret
Put `scanner` onto the scanning device (e.g. Raspberry Pi) and put `scanner/scan.sh` into a cron job.
Put `website` onto a php-capable webserver and point your domain to it.
Put `website` onto a php-capable webserver and point your domain to it.
## Systemd services
Service for scanning packets in the background
```systemd
[Unit]
Description=CZI Presence Detector - Scanner
After=network.target
[Service]
User=root
Group=root
Restart=always
WorkingDirectory=/path/to/scanner
ExecStart=/path/to/scanner/live-scanner.sh
[Install]
WantedBy=multi-user.target
```
Service for uploading every $n seconds
```systemd
[Unit]
Description=CZI Presence Detector - Uploader
After=network.target
[Service]
User=pi
Group=pi
Restart=always
WorkingDirectory=/path/to/scanner
ExecStart=/path/to/scanner/live-uploader.sh
[Install]
WantedBy=multi-user.target
```