Jump to content

Setup Webhooks to send notification to Bark


Recommended Posts

Posted

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?

Posted

Hi, what does bark expect?

Posted

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" }

Posted

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.
Posted

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

Posted
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

  • 8 months later...
beocean
Posted
On 4/19/2024 at 10:51 AM, hywell said:

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

if you have a solution now?

Posted

Bark Notification has been successfully implemented by writing its own plugin.

  • Thanks 1
  • 2 months later...
wabisabi926
Posted

Can you share?

Posted

@hywellis this available for other users to try?

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...