question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Support Gotify

See original GitHub issue

Description

Notification settings include most systems, except the self-hosted ones. Please add support for Gotify (https://gotify.net/docs/more-pushmsg for examples with code).

Desired Behavior

A Gotify section at the URL /settings/notifications/webhook

Additional Context

Gotify supports Markdown, so it is capable of displaying images.

Currently, I have to use the webhook in order to use Gotify ~,but the webhook does not allow to use Markdown.~

If it helps, this is my current JSON payload:

{
    "title": "{{subject}}",
    "message": "notification_type: {{notification_type}}\n\nmessage: {{message}}\n\nimage: ![]({{image}})\n\n\nemail: {{notifyuser_email}}\n\nusername: {{notifyuser_username}}\n\navatar: {{notifyuser_avatar}}{{media}}:\n\n- media_type: {{media_type}}\n\n- tmdbId: {{media_tmdbid}}\n\n- imdbId: {{media_imdbid}}\n\n- tvdbId: {{media_tvdbid}}\n\n- status: {{media_status}}\n\n- status4k: {{media_status4k}}\n\n\n\n{{request}}:\n\n- request_id: {{request_id}}\n\n- requestedBy_email: {{requestedBy_email}}\n\n- requestedBy_username: {{requestedBy_username}}\n\n- requestedBy_avatar: ![]({{requestedBy_avatar}})",
    "priority": 1,
    "extras": {
        "client::display": {
            "contentType": "text/markdown"
        }
    }
}

It is hacky, not user-friendly at all, ugly, but it works. The webhook URL is http://gotify/message?token=XXXXXXX.

Edit: better JSON webhook

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
schklomcommented, May 19, 2022

Ok, I will switch to the develop tag. I should have tried it before making an issue x) Thanks for the quick replies 😃

0reactions
Fallenbagelcommented, May 19, 2022

And as promised for ntfy, here’s a json payload you can use. Remember to change the https://requests.example.com to your url. And the topic too according to which topic and priority to whichever you want. With this config you can press the notification and it will direct you to the media page (as you can see with the click json key).

{
    "topic": "requests",
    "title": "{{event}}",
    "message": "{{subject}}\n{{message}}\n\nRequested by: {{requestedBy_username}}\n\nStatus: {{media_status}}\nRequest Id: {{request_id}}",
    "priority": 4,
    "attach": "{{image}}",
    "click": "https://requests.example.com/{{media_type}}/{{media_tmdbid}}"
}

Screenshot_20220520-041018_ntfy

with this I’m closing this issue as Gotify is already available and ntfy pre-config is provided here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Send notifications via Gotify for admins ...
Is your feature request related to a problem? Not a problem. · Describe the solution you'd like · Describe alternatives you've considered
Read more >
#878 - [Feature request] Integrate with Gotify or use webhook ...
[Feature request] Integrate with Gotify or use webhook for notifications #878 ... in browsers which don't have support for scheduled notifications (yet).
Read more >
Gotify · a simple server for sending and receiving messages
gotify /server features a WebUI and functionality for: sending messages via a REST-API; subscribing/receiving messages via a web socket connection; managing ...
Read more >
Gotify Server - AWS Marketplace
A simple server for sending and receiving messages in real-time per WebSocket. It Includes a sleek web-UI. This is a pre-configured server ready...
Read more >
Push Yourself - » Linux Magazine
The service receives and processes push notification requests received ... Gotify is based on the server/client model, and there are three pieces of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found