diff --git a/common/prefix.py b/common/prefix.py index 8f39141..52d9095 100644 --- a/common/prefix.py +++ b/common/prefix.py @@ -2,8 +2,7 @@ import os import shutil import uuid -from typing import Optional - +from typing import Optiona from openpilot.common.params import Params from openpilot.system.hardware.hw import Paths diff --git a/system/timezoned.py b/system/timezoned.py index 2cfc007..b46c6e0 100755 --- a/system/timezoned.py +++ b/system/timezoned.py @@ -12,6 +12,8 @@ from openpilot.system.hardware import AGNOS from openpilot.common.swaglog import cloudlog from openpilot.system.version import get_version +from openpilot.common.watcher import Watcher + REQUEST_HEADERS = {'User-Agent': "openpilot-" + get_version()} @@ -50,6 +52,9 @@ def main() -> NoReturn: location = params.get("LastGPSPosition", encoding='utf8') + # test + Watcher.log_watch("location", location) + # Find timezone by reverse geocoding the last known gps location if location is not None: cloudlog.debug("Setting timezone based on GPS location")