Page 1 of 21 12311 ... LastLast
Results 1 to 10 of 203

Thread: Conky Guayadeque Python Script

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

    Conky Guayadeque 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 Guayadeque. The script talks to Guayadeque 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 conkyguayadeque
    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 conkyGuayadeque script to point to the correct location where conkyGuayadeque.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:
    conkyGuayadeque -h
    or

    Code:
    conkyGuayadeque --help
    Code:
    Usage: conkyGuayadeque [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/conkyguayadeque
    All packages available from me can be found here: https://launchpad.net/~conky-companions/+archive/ppa
    Last edited by kaivalagi; December 14th, 2010 at 11:22 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Conky Guayadeque Python Script

    Mr K,

    Would you please fix the readme file so that it says

    Make sure Guayadeque is running first...

    instead of

    Make sure Banshee is running first...

    Cosmetic, but it will avoid confusion!

    Thanks

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

    Re: Conky Guayadeque Python Script

    Missed one on the search and replace It's updated locally along with with URL being referred to near the end of the file.

    I have also added track length (LE) and position percentage (PP) datatypes to the script, only status, coverart and bitrate to sort out.

    Let me know when there is a new version of Guayadeque with the additional d-bus methods/properties covering the missing datatypes. I am installing Guayadeque from SVN so should see any checked-in changes if I get the latest revision, what I have installed is currently built from revision 1184 from here https://guayadeque.svn.sourceforge.n...yadeque/Trunk/

    Once we have it all working and tested I'll release the next version of the script package...for now you just get a replacement .py file attached, save it over the top of /usr/share/conkyguayadeque/conkyGuayadeque.py

    Cheers
    Attached Files Attached Files
    Last edited by kaivalagi; August 4th, 2010 at 09:59 PM.

  4. #4
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Conky Guayadeque Python Script

    Quote Originally Posted by kaivalagi View Post
    Missed one on the search and replace It's updated locally along with with URL being referred to near the end of the file.

    Let me know when there is a new version of Guayadeque with the additional d-bus methods. I am installing from SVN so should see any checked-in changes if I get the latest revision

    Once we have it all working and tested I'll release the next version of the script

    Cheers
    Cheers... Anonbeat will return on the 15th of this month, at which point he has a major release ready to let out of the gate. I will discuss these changes with him as soon as he returns and we should see them no later than EOD UK time on the 17th.

    Thanks for the Banshee fixes! This script is running great and I am sure I can answer most of the questions from within here, the G-que thread or at Conky. The nuts and bolts of the py script are all yours!

  5. #5
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Conky Guayadeque Python Script

    And yes, 1184 is the latest SVN, which is the way that we all keep our daily updates of G-Que.

    We have seen as many as 12 revisions in one day to let you know how active Anonbeat is and why he needed this holiday....

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

    Re: Conky Guayadeque Python Script

    Edited previous post (you were too quick to reply )

    See the 2 new datatypes...just coverart and bitrate to sort out

  7. #7
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Conky Guayadeque Python Script

    Quote Originally Posted by kaivalagi View Post
    Edited previous post (you were too quick to reply )

    See the 2 new datatypes...just coverart and bitrate to sort out
    Very nice! Confirmed loaded and working...

  8. #8
    Join Date
    Jun 2008
    Beans
    92

    Re: Conky Guayadeque Python Script

    Can't wait for the cover art to be implemented! This is a great piece of conky work Mr Kaivalagi (had to copy and paste that, far too complicated for me to remember!). Keep up the good work!
    "If you don't like it, change it"

  9. #9
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Conky Guayadeque Python Script

    Quote Originally Posted by theLegend View Post
    Can't wait for the cover art to be implemented! This is a great piece of conky work Mr Kaivalagi (had to copy and paste that, far too complicated for me to remember!). Keep up the good work!
    Cover should be implemented when Anonbeat returns from Holiday

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

    Re: Conky Guayadeque Python Script

    The coverart might be tricky depending on how it is implemented in the Guayadeque code and whether it can be exposed via d-bus easily - worst case it takes longer to sort out. Bitrate should be straight forward though, probably available in the underlying music library Anonbeat is using in the app.

    Hopefully it wont be too much of a messy job to get the rest sorted out

Page 1 of 21 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
  •