conkytransmission

Conky

Source (required if based on other people's work):

0
Score 63%
Description:

conkytransmission

(Aug 23 2010 - You can now find this project on launchpad.net: http://launchpad.net/conkytransmission.
post bugs, follow development, ask questions, submit code...)

Most transmission plugins/scripts for conky I could find were in bash code, and all of them seem really slow and cause conky to flicker when I had > 10 torrents. I decided to try to do better in python. Enjoy!

As of version 0.5, you can change the output via templates. You can even set a custom template path.

Also new in version 0.5 is the addition of command line arguments, which let you gain additional control over conkytransmission, (like sort methods, unit names, and custom template paths). (run ~/.conkytransmission/conkytransmission.py -h" for details)

To install and run:
You will need to install conky.
Also, you will need to install transmission-cli and turn on the transmission web client (web tab in the gui options).

Unzip conkytransmission.tar.gz.
Please read Instructions.txt before running install.sh to install conkytransmission.

I should note:
If conky is loaded before your window manager, when you add torrents or the window size of conky changes in length, conky will cut output off where the window originally ended on all window types besides override. I do not know a fix for this. Conky does NOT behave this way if started after your gnome-session has finished loading and your window manager takes over. If anyone has information about this, I'd really really like to know, as I'm pretty baffled. I don't know if it's a bug, or what.
Last changelog:

7 years ago

v0.5 - Aug 21 2010:
* Has an installation script now!
* Added template engine
* Added command line arguments (run "~/.conkytransmission/conkytransmission.py -h" for details)
* Uses lua_bar instead of execbar by default so that the progress bar can be varied in size easily, instead of having to rely on your default_bar_size param

v0.1 - Aug 19 2010:
* Built it. Code is probably not the best, but it seems to work pretty well.

McLovin

6 years ago

I'm trying to use this with templates, but every time i put the --templatespath=~/folder/file it comes up with "Could not find templates! Quitt!
What am I doing wrong?
This is the line im using:
Quote:${execpi 3 ~/.conkytransmission/conkytransmission.py --templatespath=/home/mclovin/2-conky/transmission.template}

Report

xrdim

7 years ago

As said before if characters are not displayed properly try increasing the text buffer size.In my case I just added the following line to the .conkyrc file and it work fine :

text_buffer_size 600

Report

christo91

7 years ago

Works fine:-) BTW how to change a fonts?

Report

C

lienmeat

7 years ago

In conky, you define fonts like:
${font Droid Sans:style=Bold:size=8}Some text or something${font}

Or more generally, in the format of:
${font <font name>(:style=<style stuff>)} output in desired font ${font}
If you don't get it, read the conky documentation on their website (I think they have it there) or the man page.

Report

leodelacruz

7 years ago

Work perfect, thanks!

Report

brand0ng

7 years ago

i was wondering if theres a way to modify the way these lua_bars look so instead of them being simple white bars i can make them match my other conky script which has these properties:

max=100,
alarm=90,
bg_colour={0xFFFFFF,0.25},
fg_colour={0xfff0ff,1},
alarm_colour={0x00FF00,1},
x=119,y=56,
blocks=20,
space=1,
height=6,width=10,
angle=90,
smooth=true,
mid_colour={{0.5,0x0000FF,1}}


anyone know?

Report

C

lienmeat

7 years ago

I'm not really sure I get how you want it to look, but if you modify the templates in /.conkytransmission/templates/ you could make it look however you wanted pretty much. You don't HAVE to use lua_bar if you don't want to obviously...it's just for me it tends to work pretty well, so I used that by default when I designed the original templates. I wish I was a lua master so I could tell you how to do all kinds of crazy cool stuff with lua, but I'm just very very novice with lua

Report

C

lienmeat

7 years ago

firstly, and I cannot stress this enough, all code that runs in conkytransmission is either python, or one single lua function that mearly returns the same value it gets. If you are getting errors that aren't python errors (run it in a terminal to see), it's either the conky code in one of the templates causing issues, or your conky settings that are messing things up.

A common cause for errors when using conkytransmission is a couple conky settings in particular:

text_buffer_size bytes : this basically tells conky the max amount in bytes to process. If you are getting "unknown variable" errors with the default templates, this is likely the cause. Increase this value and you should be fine.

max_specials : this defaults to 512. It determines the max number of fonts, offsets, aligns, etc. If you get a "too many special things" error, increase this number.

conky can be annoying to troubleshoot, as there is so much that can go wrong. Just thought I'd let people know what I've found to help...

Report

jeddycakes

7 years ago

works pretty well, ty.

Is there a way to select which torrents are showing?

Report

C

lienmeat

7 years ago

You can use the -a parameter on the call to conkytransmission.py in your conkyrc file, which will then only list active torrents (downloading, seeding, or down and up). That is as much "selection" of torrents as I have programmed in though. What exactly were you thinking though? I may be able to add the feature in a future update.

Report

jeddycakes

7 years ago

Hiding porn

lmao

Report

C

lienmeat

7 years ago

So you actually mean at the torrent level. So do you think a keyword match sort of a feature would work? I suppose it would be a matter of having a cli argument for a keyword-hide file, and if any of the keywords in that file are in the title, the torrent wouldn't show. If you think something like that would work...I'll keep it in mind for the next version. Cause that's kinda the only way I can think of doing something like that...unless you have some other idea. Since it's an external script...the file would be checked on every update...so you could add words on the fly that way...

Report

jeddycakes

7 years ago

Sounds good. We could create keyword text files that people could download and paste into it.

TY

Report

dwsalo

7 years ago

Hi,

I don't know, maybe I do something wrong, but the script doesn't work for me.

I have an error:

Conky: unknown variable
Conky: too many special things in text

I use conkycolors generated .conkyrc config and without conkytransmission all works fine.

Do you know where can be a problem?

Thanks in advance.

Report

C

lienmeat

7 years ago

I really am not sure. I haven't encountered this error yet.

I know I have the conky-all package installed...which has all compile options enabled.

As long as you have transmission-cli installed, and can see the web interface, and have the line I posted to add to your conkyrc, it should work i'd think

I'd be willing to look and test your .conkyrc on my system if you would like. However, I'm no conky expert, so I'm not gonna guarantee I can figure it out.

BTW...I've got a new version I'll be putting up soon that has templates, cli options...and all kinds of goodies. It's a huge improvement over the version you have.

Report

dwsalo

7 years ago

Thanks.

I'll look if I have conky-all installed too. I think it is no need to test my .conkyrc on your environment, because a new version of conkytransmission script coming soon. All other requirements are presented on my machine.


Look forward to your new version of this script.

Report

dwsalo

7 years ago

* I'm looking forward :))

Report

dwsalo

7 years ago

I have conky-all installed too. So I'll wait a new version and hope it will work for me :)

Report

C

lienmeat

7 years ago

actually... regarding the "to many special things" error you got, I think this is the answer: (from the conky manpage)
max_specials
Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)

I'm guessing you need to change this setting in your ~/.conkyrc file. The other error I'm guessing/hoping is because of this as well...but I don't know for sure. I just ran across this info today. Hope it helps

Report

C

lienmeat

7 years ago

The new version is not likely to fix your issue I don't believe. I think it's an issue related to the configuration settings of your ~/.conkyrc
I know for a fact that the "special things" error can be prevented by setting the max_specials variable higher, as I got the same error when I set that to a low value to see if I was giving you good advice.

Report

dwsalo

7 years ago

The updated version is working.
But I had to install it manually, since install script isn't work for me. It couldn't cope the .conkytransmission folder to my home folder since the .conkytransmission foldre didn't exists. I suppose I run install.sh from an unexpected location. But this wasn't a problem, because you gave a good explanation and examples how it should be configured in order to work.

Thanks :)

Report

C

lienmeat

7 years ago

odd. I tested the install script and made sure it always copied everything to your home dir regardless of if the path ~/.conkytransmission already exists or not. If you come across a fix for my install script for your case, would you let me know? Glad you got it working though!

Report

dwsalo

7 years ago

I've just looked on your install script and found the reason why it didn't work in my case.

It has this line:
cp -R .conkytransmission ~/

It means that I run the install.sh file from other than install.sh and .conkytransmission folder (e.g. I could run bash ~/downloads/install.sh).

So, It's my fault :)

Report

7 years ago

v0.5 - Aug 21 2010:
* Has an installation script now!
* Added template engine
* Added command line arguments (run "~/.conkytransmission/conkytransmission.py -h" for details)
* Uses lua_bar instead of execbar by default so that the progress bar can be varied in size easily, instead of having to rely on your default_bar_size param

v0.1 - Aug 19 2010:
* Built it. Code is probably not the best, but it seems to work pretty well.

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.5
updated Aug 22 2010
added Aug 19 2010
downloads today
0
page views today 0