-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add gotify notificator #4921
base: master
Are you sure you want to change the base?
Add gotify notificator #4921
Conversation
Can you please provide some references for this statement:
|
Sure, here are some links:
Maybe I should not used the phrase "a lot" but "some" instead. |
First two refer to the same thing. Also it's about forwarding, not notifications, from what I can tell. Also, couldn't you use SMS API option to basically achieve the same thing? |
Yes right, but different people having the same issue (and myself as well). II want to use the SMS function for different notifications using twilio in the future (so I want to use both gotify and twilio at the same time) and I think that is not possible if I already use the SMS Gateway for gotify notification. Is there a reason that is against integration gotify into traccar? Additionally I don't think that I can integrate the |
I'm kind of against it because it seems like pretty niche service and it's not going to be used a lot, but having it in the codebase means more maintenance burden. |
Hmm I think that gotify is kind of popular in the self hosting community (just like traccar for its purpose) it has about 7.6k stars. |
Maintenance needed not only when API changes, but also, for example, if we decide to refactor our internal stuff. Let's leave it as open for now and see how much interest we get. |
Another vote for integrating this from me. Gotify is not a niche service, as /r/selfhosted on Reddit would happily confirm. Using a SMS gateway would mean added cost. Other integrations like Firebase and Telegram route your data over 3rd party servers. Gotify can be hosted on your own infrastructure. So, yeah, please include this :) |
Same for me, i have a ntfy Server, but i have no idea how it works with Traccar. Gotfy is very welcome. Synapse Matrix is also very welcome as an alternative to Telegram. |
With ntfy it's easy, same boat for me now :) See my config bellow. Just point
You'll also have to add a dummy phone number to your account, as otherwise it will not try to send a SMS. (Maybe it might work to set the topic via the SMS attribute and then reference I think i'll try to submit a PR to get that into traccar's documentation :) |
I use https and thats not working with your configuration. Do you have any idea? |
Depends :)
I just double-checked it against ntfy.sh based on my example configuration which i submitted for PR there (binwiederhier/ntfy#631) and that seems to work :) |
Please excuse me for the time you took. I forgot to enter the dummy phone number to make it work. Thanks alot! |
+1 for gotify |
@tananaev Since other users have also expressed their interest in this, would you now consider this change? Currently I still can't use both Gotify and SMS at the same time, since I need to use the SMS provider to send the Gotify notifications. I'm also not able to send any commands to the tracker devices since they also need the SMS integration |
I agree with PR. I'm a self-hosted and open source enthusiast. Someday Firebase may be charged for usage, it's good to have alternatives like this. Congratulations @TheZoker! Please approve this. |
I would also love seing this merged!
This is kind of the same niche as those self-hosting a tracking service TBH. Many of us here are having a self-hosted infrastructure with Gotify and without Google apps. |
After a few trial and error, I managed to configure SMS API to work with Gotify. First make sure you have a dummy phone number in Settings > Account > Preferences otherwise messages won't be sent. <entry key='notificator.types'>sms,web</entry>
<entry key='sms.http.url'>https://[GOTIFY_SERVER]/message?token=[APP_TOKEN]</entry>
<entry key='sms.http.template'>
{
"message": "{message}",
"priority": 5
}
</entry> |
This add a notificator for gotify:
https://gotify.net/
I saw a lot of people having issues setting up gotify via event forward, so I looked at the code and saw, that the notificator implementation is quite simple. To ease the process of those people (and myself) I added a simple integration.
Since traccar is selfhosted and gotify is selfhosted as well, in my opinion those are a great match!
Docs and frontend (or is this handled via translation platform?) PR will follow, if this one is alright.
I tested it on my local installation and it works without issue.