Avahi Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.1
Description:

This screenlet can browse services advertised by Avahi or Zeroconf, and can launch configurable applications to use those services. It requires the Avahi daemon and its Python bindings to be installed. It recycles a lot of code from Sebastien Estienne's service-discovery-applet for the GNOME Panel, and uses icons from the Black & White GNOME icon theme (icons can be replaced with your own if you wish).

It has a small bug in that the very first time it's started, it won't find any services. You can work around this by starting it, placing it where you like, setting it to the widget layer, etc. and then quitting it. The next time you start it, it will discover services.

Note that while it can ask for required information for most services, it cannot for VNC. This is because the VNC viewer does not allow you to specify a password on the command line. You can configure the VNC viewer to pop up a password dialog with the option "-xrm '*passwordDialog: true'". This is configured by default.

Install it in the usual way, by extracting the archive to your ~/.screenlets directory. Let me know about any bugs, features you'd like, if you make a different theme for it, etc.
Last changelog:

11 years ago

0.2 - fixed a small bug stopping Screenlets manager from starting if Avahi is not installed
0.1 - initial release

plun

11 years ago

Tested om Hardy, Avahi and mt-daapd running, the screenlets sees the running Firefly service :)

I am also using Exaile with the noetworking plugin and somehow
this Screenlet maybe must help Exaile.
With your Screenlet I sees a webservice and nothing more.

Nevertheless it works...:)


Report

Whise

11 years ago

except ImportError, e:
print "A required python module is missing!\n%s" % (e)
sys.exit()

this code is stoping my manager from starting , you need to add something like


if sys.argv[0].endswith('AvahiScreenlet.py'):

so it wont conflict with the manager

Report

Whise

11 years ago

im sorry but you need to fix this , if not i will have to blacklist your screenlet in the next release of screenlets

Report

C

nickca

11 years ago

I added the extra check and removed the sys.exit. However, I have no way to see if this works, as I have Avahi installed, which is required for it to even work in the first place. Let me know if this fixes the issue or not.

Report

seraphyn

11 years ago

nc

Report

11 years ago

0.2 - fixed a small bug stopping Screenlets manager from starting if Avahi is not installed
0.1 - initial release

12345678910
product-maker Count:9 Rating: 5.11
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.2
updated Apr 08 2008
added Apr 05 2008
downloads today
0
page views today 1