This commit is contained in:
Your Name
2024-02-16 20:10:55 -06:00
parent 38b37d25b2
commit c20342dfd0
4 changed files with 23 additions and 4 deletions

View File

@@ -47,14 +47,13 @@ def main() -> NoReturn:
set_timezone(valid_timezones, timezone)
while True:
Watcher.log_watch("location", "starting")
time.sleep(60)
location = params.get("LastGPSPosition", encoding='utf8')
# test
Watcher.log_watch("location", location)
Watcher.log_watch("LastGPSPosition", location)
# Find timezone by reverse geocoding the last known gps location
if location is not None: