Comments (11)
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
- The Webhook URL is your ntfy root URL
- 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.
@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.
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.
from tautulli.
Added to the wiki.
from tautulli.
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.
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.
@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.
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.
from tautulli.
I wasn't receiving notifications with an authentication error until I added that
from tautulli.
Instead of adding authorization to every single data item, you can also use the query parameter in your Webhook-URL:
http(s)://<ntfy-hostname>:<port>/?auth=<authParam>
To create your auth parameter, use the following commands:
-
For
Basic Auth
:$ echo -n "Basic `echo -n 'testuser:fakepassword' | base64`" | base64 | tr -d '=' QmFzaWMgZEdWemRIVnpaWEk2Wm1GclpYQmhjM04zYjNKaw
-
For
Bearer Token Auth
:$ echo -n "Bearer faketoken" | base64 | tr -d '=' QmVhcmVyIGZha2V0b2tlbg
Examples for the Webhook-URL:
- Hosted on ntfy.sh:
https://ntfy.sh/?auth=QmFzaWMgZEdWemRIVnpaWEk2Wm1GclpYQmhjM04zYjNKaw
- Self-hosted on K8s:
http://ntfy.ntfy.svc.cluster.local:10222/?auth=QmVhcmVyIGZha2V0b2tlbg
Edit: Use topic
in the JSON data and not in the Webhook-URL.
from tautulli.
Related Issues (20)
- Meta: #2268 closed as support request but is actually a bug HOT 2
- Can't access Tautulli web server HOT 1
- Current remote stream count HOT 1
- API doesn't include CORS headers in response to GET method request
- Useage on March 8th very wrong HOT 1
- View for list the series which have missing episodes/seasons
- Allow users to set config values through environment variables on startup
- Favicon not showing correctly in Firefox. HOT 1
- BUG: Song on single-track repeat causes Tautulli to believe the entire session is one play HOT 1
- Stream Info Doesn't Update When Audio Stream Is Chnaged During Playback HOT 2
- Bandwidth Total HOT 2
- Allow each Notification agent to select "Group Notification" setting individually
- Windows Security Virus Alert - Beta 2.14.0 HOT 3
- Override for Notification Scripts : Allow Playback Stop Notifications Exceeding Watched Percent HOT 2
- Added to Watchlist Notification
- Live TV Notification Exclusion Tags
- Incorrect song count on music library HOT 2
- Alert when a live recording failed?
- Question about i18n Support HOT 2
- 'locale.getdefaultlocale' is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tautulli.