X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=base_presence.py;h=5984b416558d8959bb2bc8859bd32de9ad5dc95b;hb=47ece7bceb442d70ddcc3c728533c4d4d2bccde4;hp=8be4d936d7a5e1e9be2027e8b3ad5b7ea47b98de;hpb=c974b8cde11f133df7680967b759772c624007e9;p=python_utils.git diff --git a/base_presence.py b/base_presence.py index 8be4d93..5984b41 100755 --- a/base_presence.py +++ b/base_presence.py @@ -1,9 +1,13 @@ #!/usr/bin/env python3 +# © Copyright 2021-2022, Scott Gasch + """This is a module dealing with trying to guess a person's location based on the location of certain devices (e.g. phones, laptops) belonging to that person. It works with networks I run that log -device MAC addresses active.""" +device MAC addresses active. + +""" import datetime import logging @@ -118,7 +122,7 @@ class PresenceDetection(object): try: raw = cmd( "ssh scott@meerkat.cabin 'cat /home/scott/cron/persisted_mac_addresses.txt'", - timeout_seconds=10.0, + timeout_seconds=20.0, ) self.parse_raw_macs_file(raw, Location.CABIN) except Exception as e: