BrainDock/run_frigate_report.sh

14 lines
351 B
Bash
Executable File

#!/bin/bash
cd /home/marc/bot-deploy
# Generate report
REPORT=$(python3 src/frigate_report.py)
# Send to Telegram via Hermes
echo "$REPORT" | hermes send-message telegram --message-file /dev/stdin || true
# Also save to log
echo "[$(date)]" >> /tmp/frigate-reports.log
echo "$REPORT" >> /tmp/frigate-reports.log
echo "" >> /tmp/frigate-reports.log