Page 3 of 58 FirstFirst 123451353 ... LastLast
Results 21 to 30 of 572

Thread: Conky Rhythmbox Python Script

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by anxiousdog View Post
    I'm using Intrepid now and this script is working, but I keep getting the following in my terminal over and over until I kill Conky. Is there a fix?

    Code:
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.GLib.UnmappedError.RbShellPlayerError.Code4: Playback position not available
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.GLib.UnmappedError.RbShellPlayerError.Code4: Playback position not available
    sh: Su: not found
    sh: Su: not found
    sh: Su: not found
    sh: Su: not found
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.GLib.UnmappedError.RbShellPlayerError.Code4: Playback position not available
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.GLib.UnmappedError.RbShellPlayerError.Code4: Playback position not available
    sh: Su: not found
    The "Playback position not available" is a known issue, it happens when the script is half way through determining all the details for a song, and the song changes. I am not sure why the "SU: not found" error is occuring. I assume you are getting conky output for your songs?

    If conky is started in a session instead, you wont get bombarded with these error messages...as there is no originating terminal window for the script.

    I could remove the error messages altogether, but in doing so will also remove the messages that need to be displayed if there is a real problem.

    At some point in the week I'll have a look and see what I can do...
    Last edited by kaivalagi; November 3rd, 2008 at 09:29 AM.

  2. #22
    Join Date
    Aug 2008
    Beans
    71
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    The "Playback position not available" is a known issue, it happens when the script is half way through determining all the details for a song, and the song changes. I am not sure why the "SU: not found" error is occuring. I assume you are getting conky output for your songs?

    If conky is started in a session instead, you wont get bombarded with these error messages...as there is no originating terminal window for the script.

    I could remove the error messages altogether, but in doing so will also remove the messages that need to be displayed if there is a real problem.

    At some point in the week I'll have a look and see what I can do...
    Eh, leave the error. I'll just reboot and that will fix that part.

    I'm not sure why I have the sh:su error either. This is my conkyrc and the error I'm getting. I've posted that I do have an error with your gcal as well.

    Code:
    anxiousdog@ubuntu1:~$ killall conky
    anxiousdog@ubuntu1:~$ conky &
    [1] 26979
    anxiousdog@ubuntu1:~$ Conky: desktop window (1c000b1) is subwindow of root window (1a6)
    Conky: window type - override
    Conky: drawing to created window (0x2c00001)
    Conky: drawing to double buffer
    ERROR: GoogleCalendarEngine Initialisation:Unexpected error:'root'
    sh: Su: not found
    Code:
    # conky configuration
    # edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>
    
    # 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=9
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Update interval in seconds
    update_interval 1.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 no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 300 0
    maximum_width 300
    
    # 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 white
    default_shade_color black
    default_outline_color white
    
    # own window options
    own_window		yes
    own_window_transparent	yes
    own_window_type		override
    own_window_hints	undecorated,below,sticky,skip_taskbar,skip_pager
    
    # 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 10
    gap_y 45
    
    # 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 yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer right
    
    # colours
    color1 white
    # pink
    color2 ff3399
    # pink again
    color3 ff3399
    # blue
    color4 9dd7ff
    # red
    color5 CC0000
    
    text_buffer_size 2048
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    ${voffset 5}${font Impact:size=55}${time %I:%M}$font
    ${voffset -70}${font Impact:size=14}${color1}$alignr${time %A}
    $alignr${time %B %d}
    $alignr${time %Y}$font
    ${execpi 1800 conkyForecast --location=UKXX0103 --template=/usr/share/conkyforecast/example/conkyForecast.template --imperial}
    ${color0}${hr 1}$color
    ${font Awesome 80s,:size=30}${color1}g${font Disko:size=30}${color2}What's Doin'
    ${color1}${font Print Bold:size=14}${execi 600 conkyGoogleCalendar --username=username --password=password --daysahead=8 --limit=5 --requestCalendarNames="kids"}
    ${color1}${font Mono:size=8}${pre_exec cal -3 | cut -c23-64 | sed 's/^/   /' }
    ${voffset -78}${color1}${font Bitstream Vera Sans Mono:size=8}${execpi 60 DKV=`date +%_d`; cal | sed '1d' | sed '1e' | sed '/./!d' | sed 's/^/   /' | sed 's/$/ /' | fold -w 24 | sed -n '/^.\{21\}/p' | sed /" $DKV "/s/" $DKV "/" "'${color2}'"$DKV"'${color1}'" "/}$font$color
    ${color0}${hr 1}$color
    ${font Rock Star 2.0,:size=30}${color1}o${font Disko:size=30}${color2}Now Playin'
    ${voffset -15}${font Print Bold:size=14}${color2} Artist:  ${color1}${exec conkyRhythmbox --datatype=AR}${font}
    ${font Print Bold:size=14}${color2} Title:  ${color1}${exec conkyRhythmbox --datatype=TI}${font}
    ${font Print Bold:size=14}${color2} Duration:  ${color1}${exec conkyRhythmbox --datatype=PT}/${exec conkyRhythmbox --datatype=LE}${font}
    Attached Images Attached Images
    Last edited by anxiousdog; November 3rd, 2008 at 02:52 PM. Reason: added the errors.

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by anxiousdog View Post
    Eh, leave the error. I'll just reboot and that will fix that part.

    I'm not sure why I have the sh:su error either. This is my conkyrc and the error I'm getting. I've posted that I do have an error with your gcal as well.

    Code:
    ${color1}${font Mono:size=8}${pre_exec cal -3 | cut -c23-64 | sed 's/^/   /' }
    ${voffset -78}${color1}${font Bitstream Vera Sans Mono:size=8}${execpi 60 DKV=`date +%_d`; cal | sed '1d' | sed '1e' | sed '/./!d' | sed 's/^/   /' | sed 's/$/ /' | fold -w 24 | sed -n '/^.\{21\}/p' | sed /" $DKV "/s/" $DKV "/" "'${color2}'"$DKV"'${color1}'" "/}$font$color
    ${color0}${hr 1}$color
    The su error is from your calendar script I think, I recall it being mentioned on the conkyrc thread before now...I don't use it my self so I don't know the solution, but I think there is one

    I've replied to your post on the gcal thread

  4. #24
    Join Date
    Aug 2008
    Beans
    71
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    The "Playback position not available" is a known issue, it happens when the script is half way through determining all the details for a song, and the song changes. I am not sure why the "SU: not found" error is occuring. I assume you are getting conky output for your songs?

    If conky is started in a session instead, you wont get bombarded with these error messages...as there is no originating terminal window for the script.

    I could remove the error messages altogether, but in doing so will also remove the messages that need to be displayed if there is a real problem.

    At some point in the week I'll have a look and see what I can do...
    Nevermind... I took away my code part by part and I see the sh: Su: issue is with my little calendar script, not with Rhythmbox or gcal.

    But for what it's worth, the playback position error is not throwing.

    Also, is there a way to draw a progress bar for playback rather than the numbers?

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by anxiousdog View Post
    Nevermind... I took away my code part by part and I see the sh: Su: issue is with my little calendar script, not with Rhythmbox or gcal.

    But for what it's worth, the playback position error is not throwing.

    Also, is there a way to draw a progress bar for playback rather than the numbers?
    yep, I use the percent position output with the execibar, like so:
    Code:
    ${execibar 1 conkyRhythmbox --datatype=PP}
    execbar doesn't behave properly, so execibar 1 is used instead...

  6. #26
    Join Date
    Aug 2008
    Beans
    71
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    yep, I use the percent position output with the execibar, like so:
    Code:
    ${execibar 1 conkyRhythmbox --datatype=PP}
    execbar doesn't behave properly, so execibar 1 is used instead...
    Thanks, I like that bar.

  7. #27
    Join Date
    Jul 2008
    Location
    Canberra, AUSTRALIA
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Rhythmbox Python Script

    Would it be possible to pipe the album art somehow?

  8. #28
    Join Date
    Jan 2008
    Location
    Auckland, New Zealand
    Beans
    3,129
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Conky Rhythmbox Python Script

    How does this perform when listening to radio? I'm using rhythmbox-client at the moment and when listening to the radio I get a blank artist and the title is the station name, even when Rhythmbox knows the actual song artist and title and artist and is showing them in the title bar.

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by ad_267 View Post
    How does this perform when listening to radio? I'm using rhythmbox-client at the moment and when listening to the radio I get a blank artist and the title is the station name, even when Rhythmbox knows the actual song artist and title and artist and is showing them in the title bar.
    Never tried using radio with this script

    If rhythmbox provides all radio based info in the title then that's where it will come from...

    Does my script not display this info?

  10. #30
    Join Date
    Jan 2008
    Location
    Auckland, New Zealand
    Beans
    3,129
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Conky Rhythmbox Python Script

    I tried using this when listening to the radio and I get this output for anything:
    Code:
    ERROR: Issue calling the dbus service:float division
    Unknown
    That's with errors disabled. With errors enabled:
    Code:
    ERROR: Issue calling the dbus service:float division
    ERROR: Issue calling the dbus service:float division
    rhythmbox-client gives a blank artist and the radio station as the title.

Page 3 of 58 FirstFirst 123451353 ... 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
  •