This link has been bookmarked by 8 people . It was first bookmarked on 06 Jun 2008, by Myles A Braithwaite.
-
05 Mar 10
-
24 Feb 10
-
-
The module does not send notifications by itself - it simply helps you format the packets, which are easy to send using trivial socket() calls.
-
so make sure you have "Allow application registration" enabled on Growl's preference pane. And, of course, make sure you set a password.
-
addr = ("192.168.0.42", GROWL_UDP_PORT) s = socket(AF_INET,SOCK_DGRAM) p = GrowlRegistrationPacket(application="Network Demo", password="secret") p.addNotification("Stuff I Want To Know", enabled=True) p.addNotification("Stuff I Might Not Want To Know") # But Can Enable In The GUI s.sendto(p.payload(), addr)
-
p = GrowlNotificationPacket(application="Network Demo", notification="Stuff I Want To Know", title="The Knights Who Say Ni", description="We Want... a Shrubbery!!!", priority=1, sticky=True, password="secret") s.sendto(p.payload(),addr) s.close()
-
Network Protocol Format
The 0.6 protocol format is fairly straightforward, and the registration and notification packets look like this:
You can get this diagram in OpenOffice format hereThe flags field contains a signed 3-bit value (-2 to 2) and a sticky flag in the lowest (rightmost) nibble (check the code below to figure it out).
-
-
20 Mar 09
-
18 Nov 08
Renato Albanonetgrowl.py is my implementation of the Growl 0.6 UDP network protocol, enabling me to send notifications from my Linux boxes to my Mac.
-
30 Oct 07
-
15 Oct 07
-
19 Sep 07
Jamie Kirkpatricknetgrowl.py is my implementation of the Growl 0.6 UDP network protocol, enabling me to send notifications from my Linux boxes to my Mac.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.