0x2142 / frigate-notify

Event notifications for a standalone Frigate NVR instance
https://frigate-notify.0x2142.com/
MIT License
110 stars 9 forks source link

Help me get a proper notification #99

Closed RebeliusGaming closed 5 months ago

RebeliusGaming commented 5 months ago

Hello. First of all, thank you for developing this tool. Even someone as me managed to configure it.

I created my config.yml to send notifications to telegram, but instead of recieveing them as you show in the readme, I only get a simple line text. How can I configure it to send me the Snapshot and also the links to view the camera or the clip?

I commented an open issue asking to be able to directly attach the video in the telegram message. It would be awesome, but meanwhile, can you help me ?

frigate:
  server: httXXXXXXXXXXX3:5000/
  ignoressl: false
  public_url: httX.XXXXXXXXXX.ud
  headers: 
  startup_check:
    attempts: 5
    interval: 30

  webapi:
    enabled: true
    interval: 

  mqtt: 
    enabled: false
    server: 
    port:
    clientid:
    username: 
    password: 
    topic_prefix: 

  cameras:
    exclude:

alerts:  
  general:
    title: Alerta Alarma
    timeformat: Mon, 02 Jan 2006 15:04:05 MST
    nosnap:

  zones:
    unzoned: allow
    allow:
     - zone_0
     - zone_1
    block:

  labels:
    allow:
     - person
     - dog
    block:
     - bird

  discord:
    enabled: false
    webhook: 
    template:

  gotify:
    enabled: false
    server:
    token: 
    ignoressl:
    template:

  smtp:
    enabled: false
    server: 
    port: 
    tls: 
    user:
    password:
    recipient:
    template:

  telegram:
    enabled: true
    chatid: 2XXXXXXXXXXXXXXXX
    token: 73XXXXXXXXXXXXXXXXXXXXXXXXXQZHiFtYI
    template: Detección en {{ .Camera }}. Parece {{ .Label }}!! 

  pushover:
    enabled: false
    token:
    userkey:
    devices:
    priority:
    retry:
    expire:
    ttl:
    template:

  ntfy:
    enabled: false
    server:
    topic:
    ignoressl:
    headers:
    template:

  webhook:
    enabled: false
    server: 
    ignoressl:
    headers:
    template:

monitor:
  enabled: false
  url: 
  interval: 
  ignoressl:
RebeliusGaming commented 5 months ago

Well. I managed to get the snapshot enabling them in frigate itself. Nice.

0x2142 commented 5 months ago

Hi there - Thanks for your interest in this app!

So in your config, it looks like you've specified a custom template: template: Detección en {{ .Camera }}. Parece {{ .Label }}!!

In this case, that will override the default & you'll no longer get the messages as shown in the README. If you leave template blank, it will default to the template as shown in the README. If you would like to build your own message template, the docs have some information & you can find the default template used by Telegram here

RebeliusGaming commented 5 months ago

Nice. Thank you :)

RebeliusGaming commented 5 months ago

All I needed was to read a bit more. Sorry for the inconvenience