Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http GET Notifier #127

Open
pcaro opened this issue Aug 25, 2024 · 1 comment
Open

Http GET Notifier #127

pcaro opened this issue Aug 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pcaro
Copy link

pcaro commented Aug 25, 2024

In services like TextMeBot or CAllMeBot the notifications are simple GET calls.
I would like a simple http GET notificator which: accept a list of templated pararms.
Configuration example (for a Telegram call using CallMeBot):

webcall:
  enabled: true
  server: "http://api.callmebot.com/start.php
  params:
    text=Looks like {{ .Camera }} spotted a {{ .Label }}
    user: @telegram_user
     source:frigate-notify
     rpt:5
     cc:yes
     lang:"es-ES-Standard-A"
  headers:
    - Authorization: Basic {{ env "FN_AUTH_BASIC" }}

This would call:

GET "http://api.callmebot.com/start.php?user=@telegram_user&source=frigate-notify&rpt=5&cc=yes&text=Looks like camera1 spotted a person&lang=es-ES-Standard-A"

PD:
We have webhook notifications, but in that case is a POST, server url is fixed (we have no query pararms), etc.
Maybe you could also set a method and json_data_params and integrate this on webhook notifier.

@0x2142
Copy link
Owner

0x2142 commented Aug 26, 2024

Hi there, Thanks for the suggestion! I'm okay with adding this - but I think I would probably just modify the existing webhook notifier to accommodate the additional config items, like you mentioned.

I'll add this to my list for the next release👍

@0x2142 0x2142 self-assigned this Aug 26, 2024
@0x2142 0x2142 added the enhancement New feature or request label Aug 26, 2024
@0x2142 0x2142 added this to the v0.3.5 milestone Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants