This commit is contained in:
Your Name
2024-02-16 19:13:47 -06:00
parent 045fc2d62b
commit 915d8a058a
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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")