hywell 1 Posted April 17 Share Posted April 17 I am configuring the webhook to send notifications to Bark. At this stage the webhook only supports the post method and there is no way to customize the content of the post request.How do I configure a webhook to send notifications to bark? Link to comment Share on other sites More sharing options...
Luke 37272 Posted April 17 Share Posted April 17 Hi, what does bark expect? Link to comment Share on other sites More sharing options...
hywell 1 Posted April 18 Author Share Posted April 18 https://github.com/finb/bark Get: Url /:BarkKey/:body /:BarkKey/:title/:body /:BarkKey/:category/:title/:body Post: Json: { "body": "Test Bark Server", "title": "Test Title", "badge": 1, "category": "myNotificationCategory", "sound": "minuet.caf", "icon": "https://day.app/assets/images/avatar.jpg", "group": "test", "url": "https://mritd.com" } Link to comment Share on other sites More sharing options...
Luke 37272 Posted April 18 Share Posted April 18 OK so the post body needs to be formatted differently .That means one of two things needs to happen: A community member could build a bark plugin with everything about the notification tailored for Bark Or you'll need something intermediary to receive the Emby webhook, such as IFTTT, and then you can parse the Emby web hook, transform the data as needed and then pass it along to Bark. Link to comment Share on other sites More sharing options...
Luke 37272 Posted April 18 Share Posted April 18 So in terms of the plugin route, we have lots of examples, such as: https://github.com/MediaBrowser/Emby.Notifications.Discord Link to comment Share on other sites More sharing options...
hywell 1 Posted April 19 Author Share Posted April 19 I am going to write the corresponding plugin by myself, where is the corresponding material for reference? Link to comment Share on other sites More sharing options...
Luke 37272 Posted April 19 Share Posted April 19 3 hours ago, hywell said: I am going to write the corresponding plugin by myself, where is the corresponding material for reference? The easiest thing to do is start here to learn how to create plugins: https://github.com/MediaBrowser/Emby/wiki/How-to-build-a-Server-Plugin But for the most part you should be able to clone an existing notification plugin. we have a bunch that you could use as an example. This might be the simplest one: https://github.com/MediaBrowser/Pushbullet Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now