wip
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user