Add Gotify notification support.

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
HellStorm666
Posts: 4
Joined: Wednesday 24 June 2015 8:05
Target OS: Linux
Domoticz version: 4.11786
Location: Netherlands
Contact:

Add Gotify notification support.

Post by HellStorm666 »

Please add Gotify support.
A great, free and open, notification system that is self hostable, docker compatible and works on Windows, Apple and Android devices.

I tried to use the HTTP option for the notification, but that only gave 400 error's.

What Gotify needs:
curl or POST methode.
$ curl "https://push.example.de/message?token=<apptoken>" -F "title=my title" -F "message=my message" -F "priority=5"
$ http -f POST "https://push.example.de/message?token=<apptoken>" title="my title" message="my message" priority="5"

as variable fields you need:
the server addres (http(s)://push.example.de)
API/app token

The whole POST message should be:
"https://push.example.de/message?token=<apptoken>" title="my title" message="my message" priority="5"

For extra info see: https://gotify.net/docs/pushmsg
HellStorm666
Posts: 4
Joined: Wednesday 24 June 2015 8:05
Target OS: Linux
Domoticz version: 4.11786
Location: Netherlands
Contact:

Re: Add Gotify notification support.

Post by HellStorm666 »

Ok, did some fiddeling with the HTTP methode and found the solution (howerver, I still would like a official solution).

At URL/Action you need to fill in the url with token. eg https://push.example.de/message?token=SDFt4f4ffsh
At POST Data you need to fill in:
{
"message": "#MESSAGE",
"priority": #PRIORITY,
"title": "#SUBJECT"
}

So including the { and }
Mark that #PRIORITY does not need " " around it, but #MESSAGE and #SUBJECT do.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest