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 04:37] – 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 271: | Line 308: | ||
| sudo systemctl start wg-quick@wg0 | sudo systemctl start wg-quick@wg0 | ||
| sudo systemctl enable wg-quick@wg0 | sudo systemctl enable wg-quick@wg0 | ||
| + | | ||
| + | This methods doesn' | ||
| **Configure the openvpn VPN** | **Configure the openvpn VPN** | ||
| + | |||
| + | * Install openvpn | ||
| + | |||
| + | sudo apt-get install openvpn | ||
| + | |||
| + | * copy config file and certificates: | ||
| + | |||
| + | cd ~/ | ||
| + | sudo cp -r openvpn /etc/ | ||
| + | |||
| + | * Start and enable openvpn client service: | ||
| + | |||
| + | sudo systemctl start openvpn-client@camrem0 | ||
| + | sudo systemctl enable openvpn-client@camrem0 | ||
| + | |||
| + | * In the openvpn server config file be sure to comment out all "push and route" lines. Specially " | ||
| + | |||
| **Configure motion Telegram notification** | **Configure motion Telegram notification** | ||
| + | |||
| + | * Edit both files "/ | ||
| + | |||
| + | on_movie_start / | ||
| + | |||
| + | * Messages should now be arriving to Telegram! | ||
| **Configure motion video file upload** | **Configure motion video file upload** | ||
| Line 294: | 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 336: | Line 407: | ||
| } | } | ||
| }); | }); | ||
| + | | ||
| + | * Restart polkit: | ||
| + | |||
| + | sudo systemctl restart polkit.service | ||
| * To list modems: | * To list modems: | ||
| Line 351: | Line 426: | ||
| * To create and send an SMS: | * To create and send an SMS: | ||
| - | | + | mmcli -m 0 --messaging-create-sms=" |
| mmcli -s 3 --send | mmcli -s 3 --send | ||
| + | * To delete an SMS: | ||
| + | |||
| + | mmcli -m 0 --messaging-delete-sms=0 | ||
| + | | ||
| + | **Shrink raspberry pi SD images** | ||
| + | |||
| + | https:// | ||
| + | |||
| + | **Calculate power consumption** | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | https:// | ||
surv_camera_2.1742099826.txt.gz · Last modified: 2025/03/16 04:37 by memeruiz
