.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
TELEGRAM_BOT_TOKEN
secret
Telegram Bot Token (obtener de @BotFather en Telegram)
TELEGRAM_CHAT_ID
Telegram Group Chat ID (donde se enviarán las alertas) Para obtenerlo: agregar el bot al grupo, enviar un mensaje, y visitar…
YOUTUBE_URL
YouTube Live Stream URL
FRAME_INTERVAL
Intervalo entre capturas de frames (en segundos)
DETECTION_CONFIDENCE
Confianza mínima para detección de personas (0.0 1.0)
ALERT_THRESHOLD_SECONDS
Tiempo mínimo (en segundos) que una persona debe estar inmóvil en zona de riesgo antes de alertar
ALERT_COOLDOWN_SECONDS
Cooldown entre alertas para evitar spam (en segundos)
YOLO_MODEL
Modelo YOLO a usar (yolov8n.pt es el más liviano) Opciones: yolov8n.pt, yolov8s.pt, yolov8m.pt
LOG_LEVEL
brew install flyctl && fly launch --from https://github.com/agustin107/puente-alerta
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/agustin107/puente-alerta
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/agustin107/puente-alerta