Jump to content

Setup Webhooks to send notification to Bark


hywell

Recommended Posts

hywell

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

hywell

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

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

hywell

I am going to write the corresponding plugin by myself, where is the corresponding material for reference?

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...