+ p = pack("!BBHBB",
+ 1, # version
+ 0, # registration
+ 7, # length of application name == len("growlee")
+ 1, # one notification
+ 1, # one of them default
+ )
+ p += "growlee" # application name
+ p += pack("!H",
+ 32, # length of first notification type name
+ )
+ p += "Notifications from your Dreambox" # first notification type name
+ p += "\x00" # index of default notifications
+
+ password = config.plugins.growlee.password.value
+ checksum = md5()
+ checksum.update(p)
+ if password:
+ checksum.update(password)
+ p += checksum.digest()