Giter VIP home page Giter VIP logo

custompush's People

Contributors

brainwash111 avatar chinedu40 avatar cjpcnz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

custompush's Issues

Sonarr - PushOver

#!/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

Pushbullet notification for Sonarr is just a dash -

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.

Feature request.

Is it possible to add dvd/blue-ray cover art, to the message ?

Question about radarr events

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)?

Modified to work with all event types

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

Enhancement

Any plans or if not, could you make this support Slack too?

Feature request

Can you make a script for Lidarr, like you have for Radarr and Sonarr.
With cover art and login.

Pushover Script

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

No message body

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.

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.