def eventMovement():
global unixts_last_movement, unixts_last_presence
unixts_last_movement=time.time()
if (time.time() - unixts_last_presence) <= float(uwscfg.powerswitching_secs_presence_before_movement_to_launch_event):
eventPresentAndMoved()
unixts_last_presence=0 # so that eventPresentAndMoved will only launch once per presence event (i.e. supress multiple movement events)
def eventMovement():
global unixts_last_movement, unixts_last_presence
unixts_last_movement=time.time()
if (time.time() - unixts_last_presence) <= float(uwscfg.powerswitching_secs_presence_before_movement_to_launch_event):
eventPresentAndMoved()
unixts_last_presence=0 # so that eventPresentAndMoved will only launch once per presence event (i.e. supress multiple movement events)