TransmissionScreenlet

Conky

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
Features:
shows current torrent-listing of your transmission-daemon, sorted by progress
control-functions:
Clear Finished Torrents*
Add Torrent*
Open WebUI*
Open download directory*
Pause active torrents
Resume prev. active torrents
start/stop daemon
(items marked with * can be activated with buttons)
optional: notification when torrent has finished downloading
auto-run command on finished torrents

Depends:
transmission (transmission-remote), tested with v 1.33
screenlets, tested with v 0.1.2
python-xlib (optional)
pynotify (optional)

NB:
the icon is part of the transmission-package, so not made by me.

some usage examples/ideas for the autorun feature
1) logging
script:
[quote]#!/bin/bash
echo "`date`: $1" >> logfile[/quote]
run with:
/path/to/script %n

2) stopping or removing
transmission-remote -t%t --stop
or
transmission-remote -t%t --remove
3) removing torrent based on ratio and moving files to another directory
script:
[quote]#!/bin/bash
if [ $(echo "a=$(transmission-remote -t$1 --info | grep Ratio | sed -e 's/ Ratio: //');b=$5;r=0;if(a>=b)r=1;r"|bc) -eq 1 ]
then
transmission-remote -t$1 --remove
mv $3/$2* $4
fi[/quote]
run with:
/path/to/script %t %n %d "/archive/directory" desired.Ratio
uncheck "Run above command only once"
(please set desired.Ratio to 1.0 or higher)

4) playing sound (e.g. with play)
5) mail notification

these scripts are mostly untested, use at own risk
Last changelog:

v0.2beta3:
output formatting
minor bugfix

v0.2beta2:
bugfix

v0.2beta:
improvements, cleaner code, fixes
python-xlib dependency only optional (it's used to automatically set screenlet-width to screen-width when first started, if python-xlib is not present, it's set to 800pixels)
notification (if pynotify is present)
new features: start/stop daemon, pause/resume torrents, autorun command
-- please note that this is a beta release, so tell me about any bugs you find --

v0.1.1:
bug-fix: listing of torrents didn't necessarily show all torrents
added menuitems
buttons can be hidden
button size according to font

v0.1:
initial release


Ratings & Comments

2 Comments

flakon

You will be may do support for deluge?

Vaarsuvius

definitely not. "Adding" support for deluge would mean rewriting all/most of the code, so this would be a totally different screenlet. I do like the fact that Deluge is written in python, and using deluge instead of transmission would give me a lot of opportunities... but last time I tried deluge, it was way to buggy for me. I doubt I will try deluge again anytime soon, so don't expect a screenlet for deluge from me.

Pling
0 Affiliates
Details
license
version 0.2beta3
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Conky:

System Status
Whise
last update date: 17 years ago

Score 5.0

Genetic code
Whise
last update date: 17 years ago

Score 5.0

BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

Diggler
Whise
last update date: 17 years ago

Score 5.0

Comic
Whise
last update date: 17 years ago

Score 5.0

Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7