Page 4 of 27 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 268

Thread: Conky Deluge Python Script

  1. #31
    Join Date
    Jul 2007
    Location
    Segura, Spain
    Beans
    235

    Re: Conky Deluge Python Script

    Perfect, i look for that exactly, summary and individual active torrents

    Quote Originally Posted by kaivalagi View Post
    For the per torrent uploads/downloads, would these 2 options do the trick?

    Code:
    --activeonly (both directions only if there are peers/seeds connected)
    --uploadonly
    uploadonly its not necesary, with active is enough, so when i donwload something conky shows it too

    THANKS AGAIN SIR KAIVALAGI
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

  2. #32
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Deluge Python Script

    UPDATE

    I've updated the script, any --template options will have to be changed to use --torrenttemplate

    Changes as follows:

    • Updated to output text in utf-8 format, in case of strange characters used in torrent names etc
    • Replaced the --downloadonly option with --activeonly, when used torrent output is only printed if there are active peers or seeds
    • Renamed --template option to be called --torrenttemplate as it relates to individual torrent information
    • Added --showsummary and --summarytemplate options to facilitate the displaying of summary information for all torrents. If --showsummary is used no torrent details are output. This is affected by the --activeonly option.
    • Added currentpeers, currentseeds, totalpeers, totalseeds and ratio to the data available for torrenttemplate


    The first post has been updated and the apt package will be available shortly

    New usage help as follows:

    Code:
    Usage: conkyDeluge [options]
    Options:
      -h, --help            show this help message and exit
      -s SERVER, --server=SERVER
                            [default: 127.0.0.1] The server to connect to where
                            the deluge core is running
      -p PORT, --port=PORT  [default: 58846] The port to connect to where the
                            deluge core is running
      -S, --showsummary     Display summary output, if used no torrent details are
                            output. This is affected by the --activeonly option.
      -t FILE, --torrenttemplate=FILE
                            Template file determining the format for each torrent.
                            Use the following placeholders: <name>, <state>,
                            <totaldone>, <totalsize>, <progress>, <nofiles>,
                            <downloadrate>, <uploadrate>, <eta>, <currentpeers>,
                            <currentseeds>, <totalpeers>, <totalseeds>, <ratio>.
      -T FILE, --summarytemplate=FILE
                            Template file determining the format for summary
                            output. Use the following placeholders: <notorrents>,
                            <totalprogress>, <totaldone>, <totalsize>,
                            <totaldownloadrate>, <totaluploadrate>,
                            <currentpeers>, <currentseeds>, <totalpeers>,
                            <totalseeds>, <totalratio>.
      -a, --activeonly      If set only info for torrents in an active state will
                            be displayed.
      -e FILE, --errorlogfile=FILE
                            If a filepath is set, the script appends errors to the
                            filepath.
      -i FILE, --infologfile=FILE
                            If a filepath is set, the script appends info to the
                            filepath.
      -v, --verbose         Request verbose output, no a good idea when running
                            through conky!
      -V, --version         Displays the version of the script.

    Have fun

  3. #33
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Deluge Python Script

    Quote Originally Posted by jjgomera View Post
    THANKS AGAIN SIR KAIVALAGI
    Enjoy

    I need to get a second monitor, so I have enough desktop width for all this stuff

  4. #34
    Join Date
    Oct 2007
    Location
    MidWest USA
    Beans
    94
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Deluge Python Script

    Ummmm, it seems like I ask questions in all of your threads.

    I seem to keep getting this error, and I am not knowledgeable enough to figure it out. I installed through aptitude after adding your source, so... Is there something else I need to install?

    Any help would be appreciated, but you've already done enough to make my conky the MOST prized item on my desktop.

    Keep up the awesome work!

    Code:
    shifty@MediaBox:~$ conky
    --02:50:25--  http://ip.tupeux.com/
               => `-'
    Resolving ip.tupeux.com... 88.191.12.240
    Connecting to ip.tupeux.com|88.191.12.240|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 13 [text/html]
    
    100%[====================================>] 13            --.--K/s             
    
    02:50:26 (535.52 B/s) - `-' saved [13/13]
    
    Conky: forked to background, pid is 16471
    shifty@MediaBox:~$ 
    Conky: desktop window (1a6) is root window
    Conky: window type - normal
    Conky: drawing to created window (1000001)
    Conky: drawing to double buffer
    Traceback (most recent call last):
      File "/usr/share/conkydeluge/conkyDeluge.py", line 31, in <module>
        from deluge.ui.client import sclient
    ImportError: No module named ui.client
    My Conky-
    Code:
    #Conky Configuration File
    maximum_width 300
    background yes
    border_width 1
    cpu_avg_samples 3
    default_color light grey
    default_outline_color light grey
    default_shade_color light grey
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont 
    xftalpha 0.5
    gap_x 3
    gap_y 40
    minimum_size 5 5
    net_avg_samples 1
    no_buffers yes
    out_to_console no
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 3
    update_interval 2
    uppercase yes
    use_spacer left
    alignment top_right
    double_buffer yes
    text_buffer_size 2048 # use 1024 for the forecast
    
    TEXT
    
    ${color db7835}${font Capture it:size=17}System Info${voffset -4}${stippled_hr 4}
    ${color dark grey}${font Hardkaze:size=10}OS: ${color light grey}${alignr}Ubuntu 8.04 Hardy Heron
    ${color dark grey}Kernal: ${color light grey}${alignr}$sysname $kernel 
    ${color dark grey}User: ${color light grey}${alignr}Shifty@$nodename
    
    ${color dark grey}Uptime:$alignr ${offset 10}${color dark red}${font Capture it:25} $uptime
    ${alignr}${color db7835}${time %H:%M}/23:59
    
    ${color db7835}${font Capture it:size=17}Hardware Info${voffset -4}${stippled_hr 4}
    ${color dark grey}${font Hardkaze:size=10}CPU Make:$alignr ${color light grey}Intel Celeron
    ${color dark grey}CPU Frequency:$alignr ${color light grey}$freq MhZ
    ${color dark grey}CPU Temp:$alignr ${color light grey} ${acpitemp}${color light grey}.C
    ${color dark grey}GPU Temp:$alignr ${color light grey} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}.C
    ${color dark grey}Video RAM:$alignr ${color light grey} ${exec nvidia-settings -q VideoRam | grep Attribute | cut -d ' ' -f 6 | cut -c 1-6} KiB
    
    ${color db7835}${font Capture it:size=17}CPU/RAM Info${voffset -4}${stippled_hr 4}
    ${color dark grey}${font Hardkaze:size=10}CPU: ${color light grey}$alignr ${cpu}%
    ${color light grey}${cpubar 7,300}
    ${color dark grey}RAM: ${color light grey}$alignr $memperc% ${color light grey}
    ${color light grey}${membar 7,300}
    
    ${color db7835}${font Capture it:size=17}Storage Info${voffset -4}${stippled_hr 4}
    ${color dark grey}${font Hardkaze:size=10}Home $alignr ${color light grey}${fs_free /}/${fs_size /} 
    ${color light grey}${fs_bar 7,300 /}
    ${color dark grey}MediaShare $alignr ${color light grey}${fs_free /mnt/MediaShare}/${fs_size /mnt/MediaShare}
    ${color light grey}${fs_bar 7,300 /mnt/MediaShare}
    
    ${color db7835}${font Capture it:size=17}Network Info${voffset -4}${stippled_hr 4}${color dark grey}
    ${color gray}${font Hardkaze:size=10}Local IP:${color light grey}${alignr}${addr eth0}
    ${color dark grey}Internet IP:${color light grey}${alignr}${pre_exec wget -O - http://ip.tupeux.com | tail}
    ${downspeedgraph eth0 38,145 969400 1c5c00} ${alignr}${upspeedgraph eth0 38,145 969400 830000} 
    ${voffset -45}${color dark grey}Down:${color light grey}${downspeedf eth0}Kbps${color dark grey}${alignr}Up:${color light grey}${upspeedf eth0}Kbps${color dark grey}
    ${color dark grey}Down: ${color light grey}${totaldown eth0} ${color dark grey}${alignr}Up: ${color light grey}${totalup eth0}
    
    ${color db7835}${font Capture it:size=17}Online Friends${voffset -4}${stippled_hr 4}
    ${color dark grey}${font Hardkaze:size=10}${execpi 60 conkyPidgin -o --template=/usr/share/conkypidgin/example/conkyPidgin.template}
    
    ${font Terminus:style=Bold:size=11}Deluge${font}
    ${color dark grey}${execpi 60 conkyDeluge --template=/usr/share/conkydeluge/example/conkyDeluge.template}
    My conkyDeluge.template-
    Code:
    ${color1}${font Liberation Sans:size=9:style=Bold}<name>${font}
    ${color1}<state> - ${color3}${font Liberation Sans:size=8:style=Bold}ETA:${font}${color1} <eta>
    <totaldone>/<totalsize> - <progress>
    ${color3}${font Liberation Sans:size=8:style=Bold}DL:${font}${color1} <downloadrate> ${font Liberation Sans:size=8:style=Bold}${color3}UL:${font}${color1} <uploadrate>
    "Your router is like your gatekeeper, and you are a ****** lord if you don't know your castle gates are open." -zarquad

  5. #35
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Deluge Python Script

    Quote Originally Posted by slinkey1981 View Post
    Traceback (most recent call last):
    File "/usr/share/conkydeluge/conkyDeluge.py", line 31, in <module>
    from deluge.ui.client import sclient
    ImportError: No module named ui.client
    [/CODE]
    What version of Deluge are you running?

    Version 1.* is required as stated in the first post, this isn't in the ubuntu repo's...0.5 something is in there (very very old)

    You need to install the deb file from here instead: http://deluge-torrent.org/downloads.php

    The current version is 1.04, which I am using without issue

    Hope that helps

  6. #36
    Join Date
    Jul 2007
    Location
    Segura, Spain
    Beans
    235

    Re: Conky Deluge Python Script

    Here's my configuration:

    conkyrc:
    Code:
    # set to yes if you want Conky to be forked in the background
    background no
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    
    # Use Xft?
    use_xft yes
    
    # Xft font when Xft is enabled
    #xftfont Bitstream Vera Sans Mono:size=8
    #xftfont Terminus:size=8
    xftfont Sans-Serif:size=9:pixelsize=11
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Print everything to console?
    # out_to_console no
    
    # mail spool
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 10.0
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 250 5
    maximum_width 250
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    draw_graph_borders yes
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color ffd700
    default_shade_color black
    default_outline_color white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 200
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    text_buffer_size 2550
    
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer none
    #Note: doesn't work in conky 1.2 =(
    
    
    TEXT
    ${voffset 5}${color blue}${font lprabbits1:size=18}H${voffset -7}${font Anklepants:regular:size=11}${color #5da5d3} deluge$font$alignr${color #888888}What.cd ratio: ${color}${execi 600 sh ~/configuracion/what.cd ratio}
    ${voffset -7}${color #ffd700}${hr 1}$color
    ${voffset 3}${color #888888}${execpi 10 /home/jjgomera/Escritorio/conkydelug/conkyDeluge.py -S -T /home/jjgomera/Escritorio/conkydelug/conkyDelugeSummary.template}
    ${voffset -13}${color #888888}${stippled_hr 2}
    ${color #888888}${execpi 10 /home/jjgomera/Escritorio/conkydelug/conkyDeluge.py -a -t /home/jjgomera/Escritorio/conkydelug/conkyDeluge.template}
    ${voffset -18}${color #ffd700}${hr 1}
    general template:
    Code:
          ${color gold}${font Arrows:size=10}S$font${color white} <totaluploadrate> ${alignr 50}${color gold}${font Arrows:size=10}N$font${color white} <totaldownloadrate>
    torrent template:
    Code:
    ${voffset 7}${color white}${font Liberation Sans:size=9:style=Bold}<name>${font}
    ${color #888888} Progreso:${color}<progress>${alignr}${color #888888}Ratio:${color} <ratio>
    ${color #888888} Subida:${color} <uploadrate> ${alignr}${color #888888}Descarga:${color} <downloadrate>
    ${color #888888} Subiendo a <currentpeers> de <totalpeers> pares
    and here the result, really good, it shows only the active torrents, download or upload, but it doesnt show torrents without activity:

    Last edited by jjgomera; November 7th, 2008 at 11:26 PM.
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

  7. #37
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Deluge Python Script

    there seems to be an issue...
    just thought i would try out your new script, but everytime my conky refreshes, it compounds itself and the display is all jumbled up


    should look more like this


    any idea?

    running conky 1.5.1 and newest version of your deluge script
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  8. #38
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Deluge Python Script

    Quote Originally Posted by cl0ckwork View Post
    there seems to be an issue...
    just thought i would try out your new script, but everytime my conky refreshes, it compounds itself and the display is all jumbled up
    any idea?

    running conky 1.5.1 and newest version of your deluge script
    The script itself will not cause issues like this, it just outputs a string. I am assuming you are using a template and the execp/execpi commands in your conkyrc?

    This issue will have something to do with your conky version/conky configuration and the use of offsets and what happens in a refresh I would imagine.

    To maybe resolve the issue when using the execp/execpi I would either, 1) upgrade to intrepid and use a newer version of conky, 2) compile conky 1.6.1 or upwards and use that instead.

    To confirm whether the execp/execpi commands are causing this, try running the script as before but using exec/execi instead. The formatting options such as ${font} and ${color} wont work but at least you'll know whether the root cause is what I have suggested...

    Sorry I can't help any more, but the script itself wont be at fault.

  9. #39
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Deluge Python Script

    not a problem, i was just trying to avoid compiling more code

    Edit: fresh code, now it works.
    didnt mean to bash on your script, just looking for a solution
    Last edited by cl0ckwork; November 8th, 2008 at 04:41 PM.
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  10. #40
    Join Date
    Jul 2007
    Location
    Segura, Spain
    Beans
    235

    Re: Conky Deluge Python Script

    i had that problem too other times, always my conkyrc TEXT section starts with a if clause, that happens, i think is a bug, adding a space or a first empty line is enought to fix it
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

Page 4 of 27 FirstFirst ... 2345614 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •