Categorygithub.com/oldtyt/frigate-telegram
repositorypackage
0.0.0-20241111193445-d4956e2a0223
Repository: https://github.com/oldtyt/frigate-telegram.git
Documentation: pkg.go.dev

# README

Go Report Card GolangCI

Frigate telegram

Frigate telegram event notifications.


Example of work

alt text

How to start

  1. Install docker
  2. Download docker-compose.yml file:
https://raw.githubusercontent.com/OldTyT/frigate-telegram/main/docker-compose.yml
  1. Change environment variables in docker-compose
  2. Deploy:
docker compose up -d
  1. Profit!

Environment variables

VariableDefault valueDescription
TELEGRAM_BOT_TOKEN""Token for telegram bot.
FRIGATE_URLhttp://localhost:5000Internal link in frigate.
FRIGATE_EVENT_LIMIT20Limit the number of events returned.
DEBUGFalseDebug mode.
TELEGRAM_CHAT_ID0Telegram chat id.
SLEEP_TIME5Sleep time after cycle, in second.
FRIGATE_EXTERNAL_URLhttp://localhost:5000External link in frigate(need for generate link in message).
TZ""Timezone
REDIS_ADDRlocalhost:6379IP and port redis
REDIS_PASSWORD""Redis password
REDIS_DB0Redis DB
REDIS_PROTOCOL3Redis protocol
REDIS_TTL1209600Redis TTL for key event(in seconds)
TIME_WAIT_SAVE30Wait for fully video event created(in seconds)
WATCH_DOG_SLEEP_TIME3Sleep watch dog goroutine seconds
EVENT_BEFORE_SECONDS300Send event before seconds
SEND_TEXT_EVENTFalseSend text event without media
FRIGATE_EXCLUDE_CAMERANoneList exclude frigate camera, separate ,
FRIGATE_INCLUDE_CAMERAAllList Include frigate camera, separate ,