Page 11 of 15 FirstFirst ... 910111213 ... LastLast
Results 101 to 110 of 145

Thread: Conky Banshee Python Script

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

    Re: Conky Banshee Python Script

    UPDATE

    Updates as follows:
    • Updated main script to only actually copy over found cover art when --datatype=CA is requested


    Package changes can be seen here: https://launchpad.net/~conkyhardcore...source.changes

    The apt packages should be available soon

  2. #102
    Join Date
    May 2007
    Beans
    6

    Re: Conky Banshee Python Script

    After updating cover art not shown.
    I use code in template:
    ${image [--datatype=CA] -p 8,38 -s 100x100 -f 3}

    If write only [--datatype=CA] shown /tmp/cover, and image is there, but cover art not shown.

    Please tell what need change in my code?
    Last edited by Fedik; December 12th, 2010 at 01:27 PM.

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

    Re: Conky Banshee Python Script

    Sorry, I can't understand what your problem is? /tmp/cover is an image, yes? The script outputs /tmp/cover for the CA datatype?

    Could the image variable being cached? Try adding a -n to the image variable maybe i.e.
    Code:
    ${image [--datatype=CA] -p 8,38 -s 100x100 -f 3 -n}
    I have tested the script and it creates a new /tmp/cover for each song when datatype=CA is requested and I see it on the desktop using a template...

    Might help if you post your conkyrc and template

    Cheers

  4. #104
    Join Date
    May 2007
    Beans
    6

    Re: Conky Banshee Python Script

    Thank you for your reply, and sorry, for bad english.
    Cover art not shown, after update Script to last version.Before that everything worked.
    Code:
    ${image [--datatype=CA] -p 8,38 -s 100x100 -f 3 -n}
    did not help
    Quote Originally Posted by kaivalagi View Post
    /tmp/cover is an image, yes? The script outputs /tmp/cover for the CA datatype?
    yes and yes, but cover art not shown in conky...

    Found another way.
    I change
    Code:
    ${image [--datatype=CA] -p 8,38 -s 100x100 -f 6}
    to
    Code:
    ${image /tmp/cover -p 8,38 -s 100x100 -f 6 }
    and now cover is shown

    My conky config
    Code:
    # Default Fonts
    use_xft yes
    xftfont Ubuntu:size=10
    override_utf8_locale yes
    
    # Performance Settings
    update_interval 1
    total_run_times 0
    double_buffer yes
    no_buffers yes
    net_avg_samples 2
    text_buffer_size 1024
    
    # Window Settings
    own_window yes
    own_window_transparent yes
    own_window_type override
    #own_window_type panel
    #own_window_type normal
    #own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #background no
    #own_window_colour red
    
    
    # Window border
    draw_borders no
    draw_shades no
    
    # border width
    border_width 1
    
    
    
    # Stippled borders?
    stippled_borders 0
    
    # Default Color
    #default_color 6b1908
    default_color white
    default_outline_color white
    default_shade_color 7F7F7F
    
    # Color Title.
    #color0 DD3A21
    #color0 00FF00
    color0 1e90ff
    #color0 1e272c
    
    # Size and position
    minimum_size 228 1030
    maximum_width 228
    gap_x 0
    gap_y 20
    alignment top_right
    
    TEXT
    ${if_running banshee-1}
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Banshee${font}${color}
    ${execpi 8 conkyBanshee --template=/home/fedik/.ConkyWizardTheme/conkyBanshee.template}${endif}
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Система${font}${color}
    ${GOTO 12}CPU:${GOTO 100}${cpugraph cpu0 10,75} ${cpu cpu0} %
    ${GOTO 12}RAM:${GOTO 100}${membar 10,75} ${memperc} %
    ${GOTO 12}Процесів:${GOTO 100}$processes ($running_processes)
    ${GOTO 12}Працює:${GOTO 100}${uptime}
    
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Диски${font}${color}
    ${GOTO 12}Система (/):${GOTO 110}${fs_used /} / ${fs_free /}
    ${GOTO 12}${fs_bar 4,210 /}
    ${GOTO 12}DATA :${GOTO 110}${fs_used /media/DATA} / ${fs_free /media/DATA}
    ${GOTO 12}${fs_bar 4,210 /media/DATA}
    ${GOTO 12}DATA II :${GOTO 110}${fs_used /media/DATA_II} / ${fs_free /media/DATA_II}
    ${GOTO 12}${fs_bar 4,210 /media/DATA_II}
    ${GOTO 12}ProgramFails :${GOTO 110}${fs_used /media/ProgramFails} / ${fs_free /media/ProgramFails}
    ${GOTO 12}${fs_bar 4,210 /media/ProgramFails}
    
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Мережа${font}${color}${if_gw eth0}
    ${GOTO 12}Віддача:${GOTO 100}${totalup eth0} / ${upspeed eth0}/s
    ${GOTO 12}Отримання:${GOTO 100}${totaldown eth0} / ${downspeed eth0}/s
    ${GOTO 12}З’єднань:${GOTO 100}${tcp_portmon 1 65535 count}
    ${GOTO 12}${color0}IP адреса:${color}${GOTO 100}${addr eth0}${else}
    ${GOTO 12}Мережа відсутня ${endif}
    
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Топ процесів${font}${color}
    ${GOTO 12}Процес        ${GOTO 160}ID     ${GOTO 193} % ${font Ubuntu:size=8}
    ${GOTO 12}1. ${top name 1}        ${GOTO 150}${top pid 1} ${GOTO 190}${top cpu 1}
    ${GOTO 12}2. ${top name 2}        ${GOTO 150}${top pid 2} ${GOTO 190}${top cpu 2}
    ${GOTO 12}3. ${top name 3}        ${GOTO 150}${top pid 3} ${GOTO 190}${top cpu 3}
    ${GOTO 12}4. ${top name 4}        ${GOTO 150}${top pid 4} ${GOTO 190}${top cpu 4}
    ${GOTO 12}5. ${top name 5}        ${GOTO 150}${top pid 5} ${GOTO 190}${top cpu 5}${font}
    ${GOTO 12}Процес        ${GOTO 160}ID     ${GOTO 193} MiB ${font Ubuntu:size=8}
    ${GOTO 12}1. ${top_mem name 1}        ${GOTO 150}${top_mem pid 1} ${GOTO 190}${top_mem mem_res 1}
    ${GOTO 12}2. ${top_mem name 2}        ${GOTO 150}${top_mem pid 2} ${GOTO 190}${top_mem mem_res 2}
    ${GOTO 12}3. ${top_mem name 3}        ${GOTO 150}${top_mem pid 3} ${GOTO 190}${top_mem mem_res 3}${font}
    
    ${GOTO 12}${font Ubuntu:bold:size=12}${color0}Погода${font}${color}${if_gw eth0}
    ${GOTO 12}Місто: ${GOTO 120}${execi 3600 conkyForecast  --datatype=CN},	${execi 3600 conkyForecast  --datatype=CO}
    ${GOTO 12}Температура: ${GOTO 120}${execi 3600 conkyForecast  --datatype=HT}
    ${GOTO 12}Схід/Захід: ${GOTO 120}${execi 43200 conkyForecast  --datatype=SR}/${execi 43200 conkyForecast  --datatype=SS}
    ${voffset 8}${font ConkyWeather:bold:size=36}${execi 3600 conkyForecast --centeredwidth=6 --datatype=WF}${font}${voffset -36}${font Moon Phases:size=36}${execi 43200 conkyForecast  --datatype=MF}${font}
    ${GOTO 12}${font Ubuntu:bold:size=8}${execi 3600 conkyForecast --centeredwidth=26 --datatype=CC}${execi 3600 conkyForecast --centeredwidth=23 --datatype=MP}${font}
    ${GOTO 12}${color0}Пргноз${color}
    ${GOTO 12}${font ConkyWeather:size=32}${execi 3600 conkyForecast --startday=1 --endday=4  --datatype=WF}${font}
    ${GOTO 26}${execi 3600 conkyForecast  --startday=1 --endday=4 --spaces=10 --datatype=HT}
    ${GOTO 12}${font Ubuntu:size=8}${execi 3600 conkyForecast  --startday=1 --endday=4 --spaces=6 --datatype=DW}${font}
    ${else}
    ${GOTO 12}Інтернет недоступний${endif}
    Banshe template (last)
    Code:
    ${GOTO 120}${font Ubuntu:bold:size=8}[--datatype=TI]${font}
    ${GOTO 120}${font Ubuntu:bold:size=8}[--datatype=AR]${font}
    ${GOTO 120}${font Ubuntu:bold:size=8}[--datatype=AL]${font}
    ${GOTO 120}${font Ubuntu:bold:size=8}[--datatype=YR]${font}
    ${GOTO 120}${font Ubuntu:size=8}[--datatype=ST] - [--datatype=PP]%${font} ${image /tmp/cover -p 8,38 -s 100x100 -f 6 }
    Last edited by Fedik; December 12th, 2010 at 09:50 PM.

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

    Re: Conky Banshee Python Script

    Mmmmm, working for me using this in the template:
    Code:
    ${image [--datatype=CA] -p 36,400 -s 90x82 -n}
    I think if you use /tmp/cover your image will not get refreshed by the script? --datatype=CA needs to be called to refresh it with this change...

    I notice you are using -f 6 which I think should be refreshing the image after 6 redraws which I assume is 6 seconds (refresh at once per second), so if the above works for me yours should work too...could you try -n rather than -f 6 just so we can see whether it is that or not? I have never used the -f option for the image variable so can't say it works
    Last edited by kaivalagi; December 13th, 2010 at 12:27 AM.

  6. #106
    Join Date
    May 2007
    Beans
    6

    Re: Conky Banshee Python Script

    Quote Originally Posted by kaivalagi View Post
    I think if you use /tmp/cover your image will not get refreshed by the script? --datatype=CA needs to be called to refresh it with this change...
    Do not know why but image refreshed without --datatype=CA


    I tried:
    Code:
    ${image [--datatype=CA] -p 36,400 -s 90x82 -n}
    and
    Code:
    ${image [--datatype=CA]}
    and without banchee template
    Code:
    ${image ${execpi 3 conkyBanshee --datatype=CA}}
    but nothing.
    Last edited by Fedik; December 13th, 2010 at 01:34 PM.

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

    Re: Conky Banshee Python Script

    Quote Originally Posted by Fedik View Post
    Do not know why but image refreshed without --datatype=CA

    I tried:... but nothing.
    Are you sure you are running with the latest version, sounds well out of sync to me?

    cover art in the older version would have been refreshed regardless of the datatypes requested but not now, --datatype=CA must be present to copy the song cover art file to /tmp/cover

    "conkyBanshee --version" gives me "v.2.10"

    Here's some proof from my console

    1) No cover art file yet as no CA datatype requested:
    Code:
     [USER@PC ~]$ conkyBanshee --datatype=TI
    This Is What It Means
     [USER@PC ~]$ ls /tmp/cover
    ls: cannot access /tmp/cover: No such file or directory
    2) The file is now present, only after requesting CA datatype:
    Code:
     [USER@PC ~]$ conkyBanshee --datatype=CA
    /tmp/cover
     [USER@PC ~]$ ls /tmp/cover
    -rw-r--r-- 1 USER USER 14281 Dec 13 13:03 /tmp/cover
    3) Now we change the album playing in the player...The cover art file remains unchanged, same datetime, we need a CA request for that:
    Code:
     [USER@PC ~]$ conkyBanshee --datatype=TI
    Secret Circles
     [USER@PC ~]$ ls /tmp/cover
    -rw-r--r-- 1 USER USER 14281 Dec 13 13:03 /tmp/cover
    4) The file now changed due to CA request:
    Code:
     [USER@PC ~]$ conkyBanshee --datatype=CA
    /tmp/cover
     [USER@PC ~]$ ls /tmp/cover
    -rw-r--r-- 1 USER USER 15584 Dec 13 13:04 /tmp/cover

  8. #108
    Join Date
    May 2007
    Beans
    6

    Re: Conky Banshee Python Script

    hm..
    Ubuntu 10.10
    Banshee version - 1.9.0
    Code:
    X~$ conkyBanshee --version
    conkyBanshee v.2.10
    X~$ conkyBanshee --datatype=TI
    Baby
    X~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 30493 2010-12-13 17:20 /tmp/cover
    after waiting some time
    Code:
    X~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 30493 2010-12-13 17:22 /tmp/cover
    after track change
    Code:
    X~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 66080 2010-12-13 17:25 /tmp/cover
    I try to reinstall the Script but nothing changed.

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

    Re: Conky Banshee Python Script

    Are you running conky at the same time you are testing the script?

    No way can called the script once have the cover art repeatedly updated over a few minutes, something else needs to call it over and over, such as conky.

    It will be something to do with your setup I am sure! Try "killall conky" then "rm /tmp/cover" then play songs through banshee and see if the cover file turns up?

    Other than that I am stumped, what you are suggesting doesn't fit with the way the script works standalone...
    Last edited by kaivalagi; December 13th, 2010 at 08:59 PM.

  10. #110
    Join Date
    May 2007
    Beans
    6

    Re: Conky Banshee Python Script

    Sorry, I forget disable conky.
    Again:
    Code:
    :~$ conkyBanshee --datatype=TI
    4000 Rainy Nights
    :~$ ls -l /tmp/cover
    ls: не вдається отримати доступ до /tmp/cover: No such file or directory
    :~$ conkyBanshee --datatype=CA
    /tmp/cover
    :~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 8865 2010-12-13 22:08 /tmp/cover
    after waiting ~3 min.
    Code:
    :~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 8865 2010-12-13 22:08 /tmp/cover
    change track and again:
    Code:
    :~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 8865 2010-12-13 22:08 /tmp/cover
    :~$ conkyBanshee --datatype=CA
    /tmp/cover
    :~$ ls -l /tmp/cover
    -rw-r--r-- 1 usr usr 162164 2010-12-13 22:13 /tmp/cover
    all is well.
    If write [--datatype=CA] in Banchee template I see /tmp/cover, but if ${image [--datatype=CA]} - nothing.

    Ok, thank you for help.
    I will use ${image /tmp/cover}

Page 11 of 15 FirstFirst ... 910111213 ... 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
  •