--- /dev/null
+#! /usr/bin/python
+# UCC Door Server - client which outputs JSON
+# Released under an MIT-style license; see COPYING for details.
+
+import dbus
+
+if __name__ == '__main__':
+
+ # get on the bus
+ system_bus = dbus.SystemBus()
+
+ doors = {'uccdoor': None, 'unisfadoor': None, 'chdoor': None, 'mrdoor': None, 'uccpir': None}
+
+ for door in doors.keys():
+ doors[door] = system_bus.get_object('au.asn.ucc.DoorServer', '/au/asn/ucc/doors/%s' % door)
+
+ print "Content-Type: text/json"
+ print
+ print "{"
+
+ for door, remote_object in doors.items():
+ status = remote_object.get_status(dbus_interface='au.asn.ucc.DoorInterface')
+ print '"%s": %d,' % (door, status)
+
+ print "}"