Avahi Screenlet

Conky

Source i (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
Become a Fan
5.0

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:

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


Ratings & Comments

5 Comments

plun

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...:)

Whise

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

Whise

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

nickca

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.

seraphyn

nc

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Conky from nickca:

Surveillance
nickca
last update date: 17 years ago

Score 5.0

Oblique Strategies
nickca
last update date: 17 years ago

Score 5.7

Other Conky:

System Status
Whise
last update date: 17 years ago

Score 5.0

Genetic code
Whise
last update date: 17 years ago

Score 5.0

BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

Diggler
Whise
last update date: 17 years ago

Score 5.0

Comic
Whise
last update date: 17 years ago

Score 5.0

Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7