rTorrent - Notifications

There are different ways you can be notified of when torrents are added or completed in rTorrent. This guide covers some of these services - Pushbullet.

You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).

Table of contents

Installing Pushbullet

First of all you need an account at Pushbullet and the necessary API access token. You can get this from the My Account section of the Pushbullet site, clicking Create Access Token. You should make a note of this as it's necessary to make use of the API.

Create the necessary file by executing nano ~/pushbullet.sh, copying and pasting the below (after replacing access_token with the API access token you obtained earlier):

#!/bin/bash
tname=$1
curl -u access_token: https://api.pushbullet.com/v2/pushes -d type=note -d title="$tname added to rTorrent"

Configuring Pushbullet

To configure rTorrent to use the script simply copy and paste the following:

chmod +x ~/pushbullet.sh
echo "system.method.set_key = event.download.inserted_new,push_me,\"execute=$PWD/pushbullet.sh,\$d.get_name=\"" >> ~/.rtorrent.rc
pkill -fu "$(whoami)" 'SCREEN -S rtorrent' 
screen -dmS rtorrent rtorrent

Installing and Configuring Discordpush

Discordpush is a rutorrent plugin that sends messages on Torrent Added, Deleted and Finished to a specific Discord channel. Compared to Pushbullet, Discord is free, has a mobile client, has unlimited Messages channels can be configured so that multiple users can get notified if you wish.

You can find the instructions on the Plugin Page