gamevault-backend icon indicating copy to clipboard operation
gamevault-backend copied to clipboard

External Notifications

Open Bovive opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. Being able to send notifications externally to webhooks, etc (ex. Discord) for when a new game is added, updated, or when new files are added (once #149 is implemented).

Describe the solution you'd like I would like for GameVault to be able to send the notifications directly.

Describe alternatives you've considered Currently I have an automation in Homeassistant handle this for me, however it is rather crude. It uses folder_watcher to monitor for new/updated files. It doesn't integrate with the GameVault API however, so the information it provides is limited to file/folder names. It currently sends three different types of notifications:

  1. A new .iso or .rar file -> New Game Available in GameVault.
  2. A modified .iso or .rar file -> Updated game available in GameVault.
  3. A new .exe file -> A game update is available via File Browser.

Additional context

This is an example notification for an updated .iso Discord notification using my current system:

image

Bovive avatar Dec 29 '23 17:12 Bovive

i really like this idea!

Alfagun74 avatar Dec 29 '23 18:12 Alfagun74

i would like a system that basically supports multiple services via one url scheme, you can configure in the config. Like a telegram, discord, sms service or whatever the user needs. I think i once saw something like that and need to look this up as it would be awesome to support more than only discord.

Alfagun74 avatar Jan 04 '24 07:01 Alfagun74

https://github.com/caronc/apprise

This right here. But it looks like it only supports python. I would need to install this in our docler base image, then call it via cli from gv-server. Need to check if that could cause any security vulnerabilites.

Alfagun74 avatar Jan 04 '24 07:01 Alfagun74

Alternatively, https://containrrr.dev/shoutrrr/v0.8/ ( https://github.com/containrrr/shoutrrr ) which is based on apprise but written in Go. It's a bit lighter but doesn't support as many endpoints. Probably easier to integrate though.

Zallist avatar Jan 27 '24 11:01 Zallist

Apprise can also be run via an API server (I use the Linuxserver.io implementation [https://hub.docker.com/r/linuxserver/apprise-api]), which allows you to send the notification to a webhook via anything that can send a post/get request, and it then handles the notifications from there. It is an extra service that would need to be run and set up, but there is minimal overhead with the running, and it could be used for other services, so people may already have one.

What would be helpful is having a default route but allowing to override this to other apprise notification paths for some messages, so, for example, a new game deployed goes to one notification, but errors go elsewhere.

ShadowPeo avatar Feb 26 '24 19:02 ShadowPeo

@ShadowPeo Thanks for the heads up, but i think i'd rather embed one. Given running GameVault in a Cluster is not really a thing it should not be a problem. Just need the time to begin this already. :)

Alfagun74 avatar Feb 28 '24 11:02 Alfagun74

I know this is now already on the Roadmap, But just wanted to give another Voice to the "Yes Please, I would love this feature..."

I have been having a conversion about this very recently, with regards to telling users about Updates. The new 'news.md' feature is really nice, but still also a Manual process, and also not without the issue that it always shows the GameVault News Page first, and the "Server News" option is not immediately visible, seemingly to any of my users.

Da-Geek avatar Oct 27 '24 14:10 Da-Geek