X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=switch-power.py;h=94b0deeae9bd1460bb30684770a59f75094679d5;hp=4db6ad762893025c054926d8ebae117b6f33e58e;hb=a34e51d757fe52cb19de2937ae1b211894167524;hpb=564023a044eb709e3d0ea23bfcd8f74455de4bc0 diff --git a/switch-power.py b/switch-power.py index 4db6ad7..94b0dee 100755 --- a/switch-power.py +++ b/switch-power.py @@ -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: