#!/bin/bash apikey="" #RADARR API radarr_address="" # Your Radarr address (including base_url) pushhkey="" # Your Pushover API key pushuser="" #Pushover User # Grab movie information radarr_description=$(curl -s $radarr_address/api/movie/$radarr_movie_id --header "X-Api-Key:$apikey") | jq .overview # Format content pushtitle+="Downloading: " pushtitle+=$radarr_movie_title pushtitle+=" (" pushtitle+=$radarr_movie_year pushtitle+=")" pushmessage=$radarr_description # Prepare push notification body pushbody=$( jq -n \ --arg title "$pushtitle" \ --arg body "$pushmessage" \ --arg channel "$pushtag" \ '{body: $body, title: $title, type: "note", channel_tag: $channel}' ) # Send push notification curl --header "token:$pushkey" "user:$pushuser" --header 'Content-Type: application/json' --data-binary "$pushbody" --request POST https://api.pushover.net/1/messages.xml # I found 2 POST URLs but none seems to work: # https://api.pushover.net/1/messages.json # https://api.pushover.net/1/messages.xml