self.config_parser.set('msg','bored',"The Button has been pressed ! Maybe somebody want's company. Go Visit !")
self.config_parser.set('msg','present',"Somebodys presence has been detected${door_action_msg}")
self.config_parser.set('msg','notpresent',"Nobody seems to be here, guess everybody left${door_action_msg}")
- self.config_parser.set('msg','door_action_msg',", door ${door_status} ${by_whom}")
+ self.config_parser.set('msg','door_action_msg',", door last ${door_status} ${by_whom}")
self.config_parser.set('msg','status_error_msg',"ERROR Last Operation took too long !!!")
self.config_parser.add_section('cam')
# self.config_parser.set('cam','freeze_url',"http://www.realraum.at/cgi/freeze_realraum_picture.pl?freeze=98VB9s")
def formatAndDistributePresence(presence, door_tuple=(None,None)):
picurl=""
- if uwscfg.cam_provide_pic:
+ if uwscfg.cam_provide_pic == "True":
picurl="\n"+uwscfg.cam_picture_url
if presence == "yes":
distributeXmppMsg(substituteMessageVariables(uwscfg.msg_present, door_tuple)+picurl)
m = RE_REQUEST.match(line)
if not m is None:
last_request = m.group(1,3,2)
- if uwscfg.cam_provide_pic and (last_request[2] is None or not last_request[1] is None):
+ if uwscfg.cam_provide_pic == "True" and (last_request[2] is None or not last_request[1] is None):
if not touchURL(uwscfg.cam_freeze_url) == "ok":
logging.error("main: error freezing picture")
continue