Page 2 of 24 FirstFirst 123412 ... LastLast
Results 11 to 20 of 232

Thread: Conky Exaile Python Script

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

    Re: Conky Exaile Python Script

    Quote Originally Posted by billgoldberg View Post
    Why not just use this in .conkyrc itself?

    Code:
    ${execi 10 exaile --get-title} - ${execi 10 exaile --get-artist}
    Of the top of my head, my script can do the following that the Exaile command line can't:

    • run without starting exaile
    • provide current position in track from percent and length
    • allow for rating output as "***" or "~~~" etc
    • allow one exec call to display all details you want from a template
    • give the ability to display things as unknown when they are unknown
    • provide a framework to add more functionality to conky to suit conky at a later stage


    I get your point, but this was an easy task and it does have a couple of benefits...

    I have also used the same methodology for Rhythmbox where you could argue the same thing can be done with rhythmbox-client, but again the script can provide percent and template functions for example, as well as (in the case of rhythmbox) breakdown the details of a song into title/album/artist etc etc

  2. #12
    Join Date
    Aug 2007
    Location
    HERE ☮
    Beans
    369
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Conky Exaile Python Script

    Will this work on 7.10 gutsy gibbson?
    Last edited by jryprt; September 26th, 2008 at 06:47 PM.
    Thanks for the Help. Jerry ☮
    Dell Dimension 4700-P4 HT 3.20GHz - 3GB Ram- GeFource 6600- 11.04 + Windows 7 Pro 32 Bit
    Acer Aspire 4530- ADM Athlon 64 X2 1.90GHz- 4GB Ram- GeForce 9100m G- Windows 7 Pro 64 Bit

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

    Re: Conky Exaile Python Script

    Quote Originally Posted by jryprt View Post
    Will this work on 7.10 gutsy gibbson?
    Should do, the only dependency is on python and exaile...I think exaile would have had dbus functions right from the start.

    Give it a try, if it doesn't install then no loss, if it does install and doesn't work then uninstall it.

    I know from when I was running Gutsy before now, I successfully used hardy based 3rd party repo's okay...not sure on my one though as no one has ever tried as far as I am aware...

    Let me know how you get on!

  4. #14
    Join Date
    Aug 2007
    Location
    HERE ☮
    Beans
    369
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Conky Exaile Python Script

    Quote Originally Posted by kaivalagi View Post
    Should do, the only dependency is on python and exaile...I think exaile would have had dbus functions right from the start.

    Give it a try, if it doesn't install then no loss, if it does install and doesn't work then uninstall it.

    I know from when I was running Gutsy before now, I successfully used hardy based 3rd party repo's okay...not sure on my one though as no one has ever tried as far as I am aware...

    Let me know how you get on!
    I get this at the end in the terminal

    Code:
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    
    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
      conkyexaile: Depends: python-central (>= 0.6.7) but 0.5.15ubuntu2 is to be installed
    E: Broken packages
    Thanks for the Help. Jerry ☮
    Dell Dimension 4700-P4 HT 3.20GHz - 3GB Ram- GeFource 6600- 11.04 + Windows 7 Pro 32 Bit
    Acer Aspire 4530- ADM Athlon 64 X2 1.90GHz- 4GB Ram- GeForce 9100m G- Windows 7 Pro 64 Bit

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

    Re: Conky Exaile Python Script

    Quote Originally Posted by jryprt View Post
    I get this at the end in the terminal

    Code:
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    
    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
      conkyexaile: Depends: python-central (>= 0.6.7) but 0.5.15ubuntu2 is to be installed
    E: Broken packages
    That was unexpected

    Python central is used for the install process, in this case you'll have no choice but to install the script manually using the tarball from the first post.

    If you extract the tarball to a location of you choice in your home folder (e.g. /home/user/scripts/), you can then use it in conky with a line like this:

    Code:
    ${exec python /home/user/scripts/conkyExaile.py ...options...}
    Any particular reason that you haven't upgraded to 8.10?

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

    Re: Conky Exaile Python Script

    UPDATE

    The script has been updated and is available in the first post and via apt, the changes are as follows:

    • Updated script to now use "[" and "]" as template brackets rather than "{" and "}" so that the execp/execpi conky command can be used, this enables the use of $font, $color options in the template which conky will then make adjustments for in the output!
    • Updated example files to use new template functionality with execpi in conky
    • Updated README for usage changes


    Note the change to template requirements...

    Have fun

  7. #17
    Join Date
    Apr 2008
    Beans
    1

    Re: Conky Exaile Python Script

    Hey I tried it, but I get this error.

    Code:
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.Error.UnknownMethod: Traceback (most recent call last):
      File "/var/lib/python-support/python2.5/dbus/service.py", line 643, in _message_cb
        (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name)
      File "/var/lib/python-support/python2.5/dbus/service.py", line 244, in _method_lookup
        raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface))
    UnknownMethodException: org.freedesktop.DBus.Error.UnknownMethod: Unknown method: get_volume is not a valid method of interface org.exaile.DBusInterface
    I have this line in my .conkyrc

    Code:
    ${execp conkyExaile --template=/usr/share/conkyexaile/example/conkyExaile.template}
    PS I have the newest version of Ubuntu.
    Last edited by riizu; October 5th, 2008 at 12:41 AM.

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

    Re: Conky Exaile Python Script

    Quote Originally Posted by riizu View Post
    Hey I tried it, but I get this error.

    Code:
    ERROR: Issue calling the dbus service:org.freedesktop.DBus.Error.UnknownMethod: Traceback (most recent call last):
      File "/var/lib/python-support/python2.5/dbus/service.py", line 643, in _message_cb
        (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name)
      File "/var/lib/python-support/python2.5/dbus/service.py", line 244, in _method_lookup
        raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface))
    UnknownMethodException: org.freedesktop.DBus.Error.UnknownMethod: Unknown method: get_volume is not a valid method of interface org.exaile.DBusInterface
    I have this line in my .conkyrc

    Code:
    ${execp conkyExaile --template=/usr/share/conkyexaile/example/conkyExaile.template}
    PS I have the newest version of Ubuntu.
    Do you get any useful output from the script?

    All the errors look alien to me, I haven't seen any of them before....

    As much info as possible please! What version of Exaile etc...
    Last edited by kaivalagi; October 5th, 2008 at 03:09 AM.

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

    Re: Conky Exaile Python Script

    UPDATE

    I've published a new package labelled for Intrepid, starting at version 2.0.

    The first post has been updated, and the package is available via apt.

    To use the new intrepid "labelled" packages via apt, changes to your sources.list are needed. This:

    Code:
    deb http://ppa.launchpad.net/m-buck/ubuntu hardy main
    deb-src http://ppa.launchpad.net/m-buck/ubuntu hardy main
    Needs to become this:

    Code:
    deb http://ppa.launchpad.net/m-buck/ubuntu intrepid main
    deb-src http://ppa.launchpad.net/m-buck/ubuntu intrepid main
    Currently either hardy or intrepid packages will work with either version of ubuntu.

    However going forwards there are no guarantees that packages will continue to work with hardy, development may introduce intrepid specific dependencies. All future revisions will only be available for intrepid.

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

    Re: Conky Exaile Python Script

    UPDATE

    Updated the script as follows:

    • Added --errorlog and --infolog options to log data to a file, removed --enableerrors option as unnecessary
    • Refactored and tidied up
    • Updated README


    The first post is updated and the apt package will be available shortly

Page 2 of 24 FirstFirst 123412 ... 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
  •