A MagicMirror module that connects to the Transmission BitTorrent client and allows you to monitor the progress of your torrents from your MagicMirror installation!
Using MMM-Transmission, you can display your current list of torrents, along with their status, progress and estimated time of completion, and a discreet progress bar. The module is created with the intent of monitoring Transmission, not updating the client (e.g. pausing downloads).
I am not associated with the Transmission project but can recommend it as a solid, lightweight solution for your RaspberryPi.
- A working MagicMirror installation.
- A working and configured Transmission installation.
- A working installation of Python 3.
- The transmission-rpc Python module. You can install it using
$ sudo pip3 install transmission-rpc
on your terminal.
- Open a terminal window and navigate to the MagicMirror modules directory:
$ cd MagicMirror/modules
- Clone the MMM-Transmission repo:
$ git clone https://github.com/nikxif/MMM-Transmission
- Change the directory to the config folder:
$ cd ~/MagicMirror/config
- Modify your config.js file and add the MMM-Transmission module:
$ sudo nano config.js
The basic configuration in the config.js
file is this:
{
module: "MMM-Transmission",
position: "top_left",
config: {}
},
The possible configs (and their defaults) are shown below:
config: {
TBTParams: {
host: "localhost",
port: "9091",
username: "pi",
password: "raspberry"
},
freq: 10000,
maxDisplayed: 3,
titleColor: "#fff",
propertyColor: "#666",
progressColor: "#fff"
}
Initially, the module is trying to connect to the Transmission client by using the default host, port, username and password settings. If you have updated the default pi/raspberry username and password combination (and you should!) you should update these by using the TBTParams
setting.
The maxDisplayed
parameter can be set to change the max number of torrents displayed on the MM simultaneously (default: 3). If there are more torrents than allowed, priority will be given to downloading torrents first; then to the ones with higher progress.
The titleColor
, propertyColor
and progressColor
control the color of the torrent titles, torrent properties and progress bars respectively. At this moment, turning off the progress bars is not possible through the config file.
freq
determines how frequently data will be pulled from the Transmission client, in milliseconds.
None at present time.
- Adding the ability to turn off/modify progress bars
- Adding the display of download/upload rates
- Adding buffering for the Transmission client JSON results
- Adding more ways to sort the torrent list