Page 42 of 58 FirstFirst ... 32404142434452 ... LastLast
Results 411 to 420 of 572

Thread: Conky Rhythmbox Python Script

  1. #411
    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 jmadero View Post
    Thanks for the reply. No luck with that script. I actually got the original script from here:

    http://sen7.deviantart.com/art/Conky...rive-151418309


    Been modifying it quite a bit and this was one of the things I wanted to do. I'm going to keep playing around to get it to work. MPD is nice but it's too much work and I run mysql on the MPD port so I'd prefer just getting a rhythmbox ring going. If you have any other suggestions I'll give it a try. Thanks again
    I run MPD, it would be worth changing it's default port if there's a clash

    If you are slightly interested in MPD have a look at a tool called mpd cron, it can fire any scripting you want off an event such as song change etc...very handy It might just sway it for you?

    Here's scripts I run using it:
    Code:
    #!/usr/bin/env sh
    
    # get lyrics (if found) and copy it to /tmp/lyrics
    lyricsfile="$HOME/.lyrics/$MPD_SONG_TAG_ARTIST-$MPD_SONG_TAG_TITLE.txt"
    outputlyricsfile="/tmp/lyrics"
    if [ -f "$lyricsfile" ]; then
        rm -f "$outputlyricsfile"
        echo "lyrics.sh - Linking '$outputlyricsfile' to cover file '$lyricsfile'"
        ln -s "$lyricsfile" "$outputlyricsfile"
    else
        rm -f "$outputlyricsfile"
    fi
    Code:
    #!/usr/bin/env sh
    
    ##### get coverart linked #####
    # get cover (if found) and copy it to /tmp/cover
    coverfile="$HOME/.covers/$MPD_SONG_TAG_ARTIST-$MPD_SONG_TAG_ALBUM.jpg"
    outputcoverfile="/tmp/cover"
    if [ -f "$coverfile" ]; then
        rm -f "$outputcoverfile"
        echo "coverart.sh - Linking '$outputcoverfile' to cover file '$coverfile'"
        ln -s "$coverfile" "$outputcoverfile"
    else
        echo "coverart.sh - No matching cover art file found here: '$coverfile'"
        rm -f "$outputcoverfile"
    fi

  2. #412
    Join Date
    Aug 2009
    Location
    Pair a dice
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by niiiklas View Post
    Alright, thanks for the info. I filed a bug report here https://bugzilla.gnome.org/show_bug.cgi?id=640915
    I am glad to see the bug reported! I am having some of the same issues, but filing a but report is a bit above my capabilities at present.
    Thanks!
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

  3. #413
    Join Date
    Aug 2009
    Location
    Pair a dice
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Conky Rhythmbox Python Script

    Just wondering, but I guess this would be another Rhythmbox bug or issue When playing a song the
    bar doesn't move in either Rhythmbox or conkyRhythmbox

    As you can see the song is at :48 and the bar hasn't moved.

    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

  4. #414
    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 Cavsfan View Post
    Just wondering, but I guess this would be another Rhythmbox bug or issue When playing a song the
    bar doesn't move in either Rhythmbox or conkyRhythmbox

    As you can see the song is at :48 and the bar hasn't moved.

    I would say 99% it's a RB fault, might be worth running d-feet when this is happening and requesting the Elapsed time with it to see, the time is returned in seconds

  5. #415
    Join Date
    Aug 2009
    Location
    Pair a dice
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    I would say 99% it's a RB fault, might be worth running d-feet when this is happening and requesting the Elapsed time with it to see, the time is returned in seconds
    I got d-feet from Synaptic and found RB on the Session Bus and found a couple of places that mentioned Elapsed time, but
    don't have a clue as to what I am looking for. Could you point me in the right direction?
    Thanks!
    And how's that baby coming? I remember she was ready to have the baby.
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

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

    Re: Conky Rhythmbox Python Script

    This screenshot should show what you need to know, once you have opened the getElapsed execute dialog just click execute to get the elapsed time in seconds (L signifies "long int").

    Mum is fine, 7 1/2 months in, not long now...due March 24th. Baby is a big time mover so she's not getting much rest...
    Attached Images Attached Images

  7. #417
    Join Date
    Aug 2009
    Location
    Pair a dice
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    This screenshot should show what you need to know, once you have opened the getElapsed execute dialog just click execute to get the elapsed time in seconds (L signifies "long int").

    Mum is fine, 7 1/2 months in, not long now...due March 24th. Baby is a big time mover so she's not getting much rest...
    My D-feet looks just like yours and each time I click execute the number gets higher, although the bar in both never move.
    Does that mean it is a RB bug?

    Good to hear the baby is coming along great! March will be here before you know it!
    I have a 2 year old grandson who is going to be a chick magnet.
    He already is. Today he held his Mum's face and gave her a kiss! He is a very smart kid and huge. He looks like a 3 year old!
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

  8. #418
    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 Cavsfan View Post
    My D-feet looks just like yours and each time I click execute the number gets higher, although the bar in both never move.
    Does that mean it is a RB bug?

    Good to hear the baby is coming along great! March will be here before you know it!
    I have a 2 year old grandson who is going to be a chick magnet.
    He already is. Today he held his Mum's face and gave her a kiss! He is a very smart kid and huge. He looks like a 3 year old!
    Mmmmm, if d-feet works then so should the conkyRhythmbox script as it sources the information from d-bus just like d-feet does...

    Can I suggest that you run the conkyRB script in a terminal making a request for the progress with a verbose argument added too, like so:

    Code:
    conkyRhythmbox --datatype=PT --verbose
    For me I get this normally:

    Code:
    ]$ conkyRhythmbox --datatype=PT --verbose
    *** INITIAL OPTIONS:
        datatype: PT
        template: None
        ratingchar: *
        nounknownoutput: False
        secondsoutput: False
        maxlength: 0
        verbose: True
        errorlogfile: None
        infologfile: None
    INFO: Calling dbus interface for music data
    INFO: Setting up dbus interface
    INFO: Calling dbus interface for music data
    INFO: Preparing output for datatype:PT
    0:30
    Post back the output, hopefully that should highlight any anomalies, assuming it has an error in amongst the output


    This is our second child, the first is now 7 yrs and he too is a babe magnet We are constantly joking about how many girl friends he has...on the way to and from school he's always being chatted up by the girls...and some are from a few years up in school

    Kids, gotta love em...they bring light into a dark world

  9. #419
    Join Date
    Aug 2009
    Location
    Pair a dice
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Conky Rhythmbox Python Script

    Here is my output and it looks like yours at least I think. The screen looks like it did at last post with no movement
    of the bar in conky or Rhythmbox.

    Code:
    $ conkyRhythmbox --datatype=PT --verbose
    *** INITIAL OPTIONS:
        datatype: PT
        template: None
        ratingchar: *
        nounknownoutput: False
        secondsoutput: False
        maxlength: 0
        verbose: True
        errorlogfile: None
        infologfile: None
    INFO: Calling dbus interface for music data
    INFO: Setting up dbus interface
    INFO: Calling dbus interface for music data
    INFO: Preparing output for datatype:PT
    0:43
    And here is a copy of my conkyRhythmbox.template:

    Code:
    ${image [--datatype=CA] -n -p 0,0 -s 80x80}
    ${color3}${execibar 1 conkyRhythmbox --datatype=PP}
    ${color3}Status:${color1}[--datatype=ST]
    ${color3}Artist:${color1}[--datatype=AR]
    ${color3}Album:${color1}[--datatype=AL]
    ${color3}Title:${color1}[--datatype=TI]
    ${color3}Position:${color1}[--datatype=PT]/[--datatype=LE] - [--datatype=PP]%
    ${color3}Rating:${color1}[--datatype=RT]
    ${color3}Volume:${color1}[--datatype=VO]
    You are right about kids. They are what makes everything worthwhile!
    I forgot to tell you in addition to putting his hands on her face and kissing her, he also told her she was pretty! And he just turned 2!
    It doesn't get any better! Melts your heart.
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

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

    Re: Conky Rhythmbox Python Script

    If the script doesn't fail and comes back with 0:43 over and over which matches the progress bar then it must RB at fault, some internal code getting in a cufuddle when calculating the progress somehow

Page 42 of 58 FirstFirst ... 32404142434452 ... 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
  •