Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 145

Thread: Conky Banshee Python Script

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

    Conky Banshee Python Script

    ArchLinux : Package support is present in the AUR. All my packages can be seen here: http://aur.archlinux.org/packages.php?SeB=m&K=kaivalagi

    Ubuntu/Debian : All the script packages have now been copied into the Conky Companions PPA. Any package updates will be provided by the team through this new ppa. The ppa can be found here: https://launchpad.net/~conky-companions/+archive/ppa. To use this ppa first delete the old ppa files using this:
    Code:
    sudo rm /etc/apt/sources.list.d/m-buck* && sudo rm /etc/apt/sources.list.d/conkyhardcore*
    Then follow the modified first post instructions for the scripts


    Intro

    This is a simple script to display what is current playing in Banshee. The script talks to Banshee using dbus, and allows the outputting of track info and the use of templates...

    There is a README with the install, I suggest you give it atleast a quick once over! It can be found in the installation folder, normally following the path of /usr/share/conky<scriptname>/

    Basic Install

    Method 1: Using apt

    1) Add the repository to your OS install:
    Code:
    sudo add-apt-repository ppa:conky-companions/ppa
    * Note if you are running 9.10 or below then refer to the PPA link at the end of this post for help on installing from the ppa, good guidance can be found on the launchpad site

    2) Now that is done simply run the following to update your repo cache and install the script:

    Code:
    sudo apt-get update && sudo apt-get install conkybanshee
    Method 2: Using deb file

    Run the .deb file available at the Conky Companions PPA site here: https://launchpad.net/~conky-compani.../ppa/+packages

    Warning, this will not ensure you are kept up-to-date. Only method 1 will do that

    Method 3: Using tar.gz file

    Extract all the contents of the tar.gz file to an appropriate folder, and edit the conkyBanshee script to point to the correct location where conkyBanshee.py is. The tar.gz file is available at the Conky Companions PPA site here: https://launchpad.net/~conky-compani.../ppa/+packages

    Unless you are using a non-Debian based OS I don't suggest this. Users of Debian/Ubuntu flavour OS's should ideally use method 1.

    Again will will not receive updates using this method. ONLY method 1 can do this for you

    All further details on setup are orientated around the deb package based install, so may differ from what you choose your setup to be, if done using the tarball.


    Usage Help

    You can get the current help options at any time by running (change the path as necessary):

    Code:
    conkyBanshee -h
    or

    Code:
    conkyBanshee --help
    Code:
    Usage: conkyBanshee [options]
    Options:
      -h, --help            show this help message and exit
      -t FILE, --template=FILE
                            define a template file to generate output in one call.
                            A displayable item in the file is in the form
                            [--datatype=TI]. The following are possible options
                            within each item: --datatype,--ratingchar. Note that
                            the short forms of the options are not currently
                            supported! None of these options are applicable at
                            command line when using templates.
      -d DATATYPE, --datatype=DATATYPE
                            [default: TI] The data type options are: ST (status),
                            CA (coverart), TI (title), AL (album), AR (artist), GE
                            (genre), YR (year), TN (track number), FN (file name),
                            BR (bitrate k/s), LE (length), PP (current position in
                            percent), PT (current position in time), VO (volume),
                            RT (rating). Not applicable at command line when using
                            templates.
      -r CHAR, --ratingchar=CHAR
                            [default: *] The output character for the ratings
                            scale. Command line option overridden if used in
                            templates.
      -s TEXT, --statustext=TEXT
                            [default: Playing,Paused,Stopped] The text must be
                            comma delimited in the form 'A,B,C'. Command line
                            option overridden if used in templates.
      -n, --nounknownoutput
                            Turn off unknown output such as "Unknown" for title
                            and "0:00" for length. Command line option overridden
                            if used in templates.
      -S, --secondsoutput   Force all position and length output to be in seconds
                            only.
      -m LENGTH, --maxlength=LENGTH
                            [default: 0] Define the maximum length of any
                            datatypes output, if truncated the output ends in
                            "..."
      -v, --verbose         Request verbose output, not a good idea when running
                            through conky!
      -V, --version         Displays the version of the script.
      --errorlogfile=FILE   If a filepath is set, the script appends errors to the
                            filepath.
      --infologfile=FILE    If a filepath is set, the script appends info to the
                            filepath.
    Development History

    Development history going forwards can be seen here https://code.launchpad.net/~conky-companions/+junk/conkybanshee
    All packages available from me can be found here: https://launchpad.net/~conky-companions/+archive/ppa
    Last edited by kaivalagi; December 14th, 2010 at 10:58 PM.

  2. #2
    Join Date
    May 2007
    Beans
    22
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Conky Banshee Python Script

    I'm having a little trouble getting the cover art to display. I don't usually use $image, so I'm sure it's a simple syntax issue.

    Code:
    ${alignc}${image ${exec conkyBanshee --datatype=CA}}
    This gives me the following error:

    Conky: not implemented obj type 44

    Any ideas what I'm doing wrong? Great script btw.

  3. #3
    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 cwk View Post
    I'm having a little trouble getting the cover art to display. I don't usually use $image, so I'm sure it's a simple syntax issue.

    Code:
    ${alignc}${image ${exec conkyBanshee --datatype=CA}}
    This gives me the following error:

    Conky: not implemented obj type 44

    Any ideas what I'm doing wrong? Great script btw.
    In all honesty I dont use the image tag in conky, and as this thread is fairly new I would suggest posting into the conkyrc thread where people have used it and succeeded. By all means post the solution here so others using this script though.

  4. #4
    Join Date
    Aug 2008
    Beans
    13

    Re: Conky Banshee Python Script

    Thanks so much for the script. It works great and was easy to use because I already knew your conkyForecast script.

    If anyone figures out how to show the album art, I (and most likely other members using this script) would love to know.

  5. #5
    Join Date
    May 2007
    Beans
    22
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Conky Banshee Python Script

    Got it. See this page of the conkyrc thread: http://ubuntuforums.org/showthread.p...81865&page=850

  6. #6
    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 opothehippo View Post
    Thanks so much for the script. It works great and was easy to use because I already knew your conkyForecast script.

    If anyone figures out how to show the album art, I (and most likely other members using this script) would love to know.
    There is a post on this same thing with conkyRhythmbox, the howto posted will work for this script too if you swap out conkyRhythmbox for conkyBanshee in your conkyrc:

    http://ubuntuforums.org/showpost.php...&postcount=151

    Hope that helps

  7. #7

    Re: Conky Banshee Python Script

    that doesnt seem to work for banshee, though it does work for both Exaile and Rhythmbox, not sure why it wont work on Banshee.

  8. #8
    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 Morton's Red Stapler View Post
    that doesnt seem to work for banshee, though it does work for both Exaile and Rhythmbox, not sure why it wont work on Banshee.
    Is Banshee showing album art in the player for the songs? Are you playing mp3s?

  9. #9
    Join Date
    Feb 2008
    Location
    Arkansas, USA
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Conky Banshee Python Script

    Quote Originally Posted by kaivalagi View Post
    Is Banshee showing album art in the player for the songs? Are you playing mp3s?
    I'm having the same problem as it doesn't show the picture. The only error I get is:
    Code:
    Conky: Unable to load image '/home/<name>/.album'
    I am using
    Code:
    ${alignc}${exec cp "`conkyBanshee --datatype=CA | sed -e 's/\\\//g'`" /home/<name>/.album}${image /home/<name>/.album -p 0,2 -s 64x64}
    I also have the line that this post suggested I add to my conkyrc
    Code:
    imlib_cache_size 0
    And I still get the error. The image is in ~/.album but conky is unable to load it for some reason. Any guesses?

    edit I am playing MP3s, and the album art is showing in Banshee
    Last edited by zyxyellowxyz; August 18th, 2009 at 01:05 AM.

  10. #10
    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 zyxyellowxyz View Post
    I'm having the same problem as it doesn't show the picture. The only error I get is:
    Code:
    Conky: Unable to load image '/home/<name>/.album'
    I am using
    Code:
    ${alignc}${exec cp "`conkyBanshee --datatype=CA | sed -e 's/\\\//g'`" /home/<name>/.album}${image /home/<name>/.album -p 0,2 -s 64x64}
    I also have the line that this post suggested I add to my conkyrc
    Code:
    imlib_cache_size 0
    And I still get the error. The image is in ~/.album but conky is unable to load it for some reason. Any guesses?

    edit I am playing MP3s, and the album art is showing in Banshee
    <name> needs replacing with YOUR username

    if it is then you need to make sure you are running conky v1.7.1+, as previous versions do not support the image tag in your conkyrc

    If "conkyBanshee --datatype=CA" run in the terminal return the album art then the problem is not with my script but with the scripting surrounding it...

Page 1 of 15 12311 ... 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
  •