Giter Club home page Giter Club logo

Comments (10)

hevel86 avatar hevel86 commented on June 12, 2024 2

I took your advice and used webhooks. I now have a working configuration that I'm fairly pleased with and I plan to share the example, but I'm not sure the best way to submit that.

  • Under the Configuration tab
    • The Webhook URL is your ntfy root URL
      • Important note "To publish as JSON, you must PUT/POST to the ntfy root URL, not to the topic URL. Be sure to check that you're POST-ing to" per ntfy documentation.
    • The Webhook Method is POST
  • Under the Data tab in the Recently Added section, JSON Headers were not used in this example:

JSON Data

<movie>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "popcorn"],
	"title": "{title} was recently added to {library_name} on {server_name}"
}
</movie>
<show>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} was recently added to {library_name} on {server_name}"
}
</show>
<season>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} Season {season_num00} recently added to {library_name} on {server_name}"
}
</season>
<episode>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} (S{season_num00}:E{episode_num00}) was recently added to {library_name} on {server_name}"
}
</episode>
  • I used the Tautulli parameters as described here. @samwiseg0 is there an official reference that could be used instead?

from tautulli.

samwiseg0 avatar samwiseg0 commented on June 12, 2024 2

@hevel86 thank you for providing an example. I think here is the best place. Folks can always search GitHub and find it here. You could also post it in discord in the general channel if you would like.

from tautulli.

JonnyWong16 avatar JonnyWong16 commented on June 12, 2024 1

image

from tautulli.

JonnyWong16 avatar JonnyWong16 commented on June 12, 2024 1

Added to the wiki.

from tautulli.

Proximus888 avatar Proximus888 commented on June 12, 2024 1

I took your advice and used webhooks. I now have a working configuration that I'm fairly pleased with and I plan to share the example, but I'm not sure the best way to submit that.

* Under the **Configuration** tab
  
  * The **Webhook URL** is your ntfy root URL
    
    * Important note "To publish as JSON, you must PUT/POST to the ntfy root URL, not to the topic URL. Be sure to check that you're POST-ing to" per [ntfy documentation](https://docs.ntfy.sh/publish/#publish-as-json).
  * The **Webhook Method** is _POST_

* Under the **Data** tab in the  _Recently Added_ section, **JSON Headers** were not used in this example:

JSON Data

<movie>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "popcorn"],
	"title": "{title} was recently added to {library_name} on {server_name}"
}
</movie>
<show>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} was recently added to {library_name} on {server_name}"
}
</show>
<season>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} Season {season_num00} recently added to {library_name} on {server_name}"
}
</season>
<episode>
{
	"topic": "tautulli",
	"icon": "{poster_url}",
	"message": "{summary}",
	"tags": ["tautulli", "tv"],
	"title": "{title} (S{season_num00}:E{episode_num00}) was recently added to {library_name} on {server_name}"
}
</episode>
* I used the Tautulli parameters as described [here](https://github.com/Zefau/ioBroker.tautulli/blob/master/tautulli-parameters.json).  @samwiseg0 is there an official reference that could be used instead?

I also add:

        "attach": "{server_url}{poster_thumb}",

Then it adds the poster of the movie/series to the notification.

from tautulli.

samwiseg0 avatar samwiseg0 commented on June 12, 2024

This can be done today with webhooks. https://github.com/Tautulli/Tautulli/wiki/Notification-Agents-Guide#webhook

If you need help please use discord for further assistance.

from tautulli.

hevel86 avatar hevel86 commented on June 12, 2024

@JonnyWong16 Doh! Thanks for pointing out something obvious 😆
@samwiseg0 Glad to give back in some small way! Would it be worthwhile to add a section to the wiki? I feel that section is a bit broad (I get that Webhooks in general are a bit broad), but it references Slack and Discord webhooks which already have official integrations. The general examples on the Slack webhooks can give some kind of reference, but looking for a directly applicable example in Tautulli would have helped me when first looking into this project, and I imagine it could help others as well.

from tautulli.

Feramance avatar Feramance commented on June 12, 2024

Just adding the missing piece of info which took me a while to gather to this issue, you also need to add the below in the JSON header field:

{
	"Authorization": "Bearer tk_yourPrivateToken"
}

from tautulli.

hevel86 avatar hevel86 commented on June 12, 2024

Just adding the missing piece of info which took me a while to gather to this issue, you also need to add the below in the JSON header field:

{
	"Authorization": "Bearer tk_yourPrivateToken"
}

That's interesting @Feramance, I didn't have to do that in my config.
firefox_cOr3znQY0b

from tautulli.

Feramance avatar Feramance commented on June 12, 2024

I wasn't receiving notifications with an authentication error until I added that

from tautulli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.