to github
[svn42.git] / switch-power.py
index 4db6ad7..94b0dee 100755 (executable)
@@ -47,7 +47,7 @@ class UWSConfig:
     self.config_parser.add_section('debug')
     self.config_parser.set('debug','enabled',"False")
     self.config_parser.add_section('broker')
-    self.config_parser.set('broker','uri',"tcp://wuzzler.realraum.at:4244")
+    self.config_parser.set('broker','uri',"tcp://torwaechter.realraum.at:4244")
     self.config_mtime=0
     if not self.configfile is None:
       try:
@@ -343,7 +343,7 @@ while True:
       elif structname == "BoreDoomButtonPressEvent":
         eventPanic()
         continue
-      elif structname == "MovementSensorUpdate":
+      elif structname == "MovementSensorUpdate" or structname == "DoorAjarUpdate":
         eventMovement()
         continue
       elif structname == "IlluminationSensorUpdate" and "Value" in dictdata: