cjpcnz / custompush Goto Github PK
View Code? Open in Web Editor NEWCustom Push Notifications for Sonarr, Radarr and Lidarr
Custom Push Notifications for Sonarr, Radarr and Lidarr
As title, can this be use with telegram?
If so, may i know how to setup this?
I've followed the instructions. I tested it under custom connection in Radarr & Sonarr. In Sonarr, which is the only one to have a completed download thus far, the notification is just "-". Nothing else.
Can we look at cover art and login for Sonarr.
Hello, using pushbullet for both sonarr and radarr, i successfully am able to receive the push notification, however, the information in the notification is a bit sparse. I get the episode name and season/episode details on sonarr and on radarr i merely get the movie name. It seems as though it's not correctly grabbing the pushmessage details.
Component | Message | Time | |
---|---|---|---|
PushBullet.sh | 100 531 100 441 100 90 355 72 0:00:01 0:00:01 --:--:-- 355 | 17:43 | |
PushBullet.sh | 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | 17:43 | |
PushBullet.sh | 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | 17:43 | |
PushBullet.sh | Dload Upload Total Spent Left Speed | 17:43 | |
PushBullet.sh | % Total % Received % Xferd Average Speed Time Time Time Current | 17:43 |
The above is the log information from Sonarr and the same information is given in Radarr.
Can you make a script for Lidarr, like you have for Radarr and Sonarr.
With cover art and login.
Any plans or if not, could you make this support Slack too?
Will this script work as is if I just want notifications on "grab" rather than download & upgrade (if I set that option in the radarr custom scripts settings obviously)?
Is it possible to add dvd/blue-ray cover art, to the message ?
Hi there, I made a modified version of your Sonarr pushbullet script so that it can work with all different event types as per the Sonarr documentation here.
This allows test events to be sent as well as any of the selectable event options.
I removed the access to the Sonarr api as you can get the episode titles from the event but it does mean you don't get the episode description, however I didn't feel that was overly necessary. (add it back if you like)
I find using the notifications for Grabs gives a lot more detail than on import/upgrade.
I couldn't be bothered making a pull request so it is just a gist:
https://gist.github.com/GodKratos/83276e43b7d362b4c2c848e543157e3d
Hi, first of all, I wanted to thank you for your hard work on these custom scripts,
Easy to follow and set up.
I use pushbullet but I am wondering if the script can be converted to Pushover? I think half the work is done already but I am having a difficult time with it. Attached is my attempt at replicating your script. (Didn't let me upload .sh file) Pushover.txt
If you have a chance, do you mind taking a look at it and seeing if you can get this to work. If not, I understand will continue using Pushbullet. Their Info site is below:
https://pushover.net/api#messages
Thank you
#!/bin/bash
apikey="" # Your Sonarr API key
sonarr_address="http://localhost:8989" # Your Sonarr address (including base_url)
pushkey="" # Your PushOver API key
pushuser="" # Your PushOver User Key
# Grab Episode information
sonarr_episode_title=$(curl -s $sonarr_address/api/episode?seriesId=$sonarr_series_id --header "X-Api-Key:$apikey" | jq -r ".[] | select(.Id==$sonarr_episodefile_id) | .title")
sonarr_episode_description=$(curl -s $sonarr_address/api/episode?seriesId=$sonarr_series_id --header "X-Api-Key:$apikey" | jq -r ".[] | select(.Id==$sonarr_episodefile_id) | .overview")
# Format content
pushtitle+="Downloading"
pushmessage+=$sonarr_series_title
pushmessage+=" (S"
pushmessage+=$sonarr_release_seasonnumber
pushmessage+="E"
pushmessage+=$sonarr_release_episodenumbers
pushmessage+=") - "
pushmessage+=$sonarr_release_episodetitles
pushbody=$( jq -n \
--arg token "$pushkey" \
--arg user "$pushuser" \
--arg title "$pushtitle" \
--arg message "$pushmessage" \
'{token: $token, user: $user, title: $title, message: $message}' )
# Send push notification
curl --header 'Content-Type: application/json' --data-binary "$pushbody" --request POST https://api.pushover.net/1/messages.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.