surv_camera_2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| surv_camera_2 [2025/03/16 05:12] – memeruiz | surv_camera_2 [2025/03/16 19:07] (current) – memeruiz | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| (or use the ip number that "ip add" shows for wifi) | (or use the ip number that "ip add" shows for wifi) | ||
| + | |||
| + | **journal to permanent storage** | ||
| + | |||
| + | * Edit / | ||
| + | |||
| + | Storage=persistent | ||
| + | Compress=no | ||
| + | SystemMaxUse=300M | ||
| + | MaxFileSec=1month | ||
| + | |||
| + | * Restart journald: | ||
| + | |||
| + | sudo systemctl restart systemd-journald.service | ||
| + | |||
| + | **Hardware Watchdog** | ||
| + | |||
| + | * Edit / | ||
| + | |||
| + | RuntimeWatchdogSec=15s | ||
| + | RebootWatchdogSec=10min | ||
| + | |||
| + | * Reload systemd config file: | ||
| + | |||
| + | sudo systemctl daemon-reload | ||
| + | |||
| + | * Test watchdog with a fork bomb. Create a file called / | ||
| + | |||
| + | #!/bin/bash | ||
| + | :(){ :|:& };: | ||
| + | |||
| + | * Run it: | ||
| + | |||
| + | sudo bash / | ||
| + | |||
| + | * After some seconds it should produce a reboot | ||
| + | |||
| + | |||
| **Connect your first camera to first camera port** | **Connect your first camera to first camera port** | ||
| Line 319: | Line 356: | ||
| **Configure network watchdog** | **Configure network watchdog** | ||
| + | |||
| + | * Copy the ping watchdog systemd service | ||
| + | |||
| + | sudo cp / | ||
| + | |||
| + | * Start and enable the service: | ||
| + | |||
| + | sudo systemctl start ping_watchdog.service | ||
| + | sudo systemctl enable ping_watchdog.service | ||
| **Using GPIOs for IR lights, normal lights and Alarm/ | **Using GPIOs for IR lights, normal lights and Alarm/ | ||
| Line 386: | Line 432: | ||
| mmcli -m 0 --messaging-delete-sms=0 | mmcli -m 0 --messaging-delete-sms=0 | ||
| + | | ||
| + | **Shrink raspberry pi SD images** | ||
| + | |||
| + | https:// | ||
| + | |||
| + | **Calculate power consumption** | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | https:// | ||
surv_camera_2.1742101970.txt.gz · Last modified: 2025/03/16 05:12 by memeruiz
