From ab0a10cd9c1bef44f7ea48cd971d8b204b8da186 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Wed, 29 May 2024 08:42:42 +0200 Subject: [PATCH] Update Sunnylink base URL and upload attribute name Updated the base URL for SUNNYLINK to point to a new staging test environment. Changed the UPLOAD_ATTR_NAME in the sunnylink uploader from 'user.sunny.upload' to 'user.sunnydv.upload'. This provides distinction and prevents potential conflicts. --- selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.h | 2 +- system/loggerd/sunnylink_uploader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.h b/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.h index fdca62d1c5..575af819b5 100644 --- a/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.h +++ b/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.h @@ -10,7 +10,7 @@ #include "selfdrive/ui/qt/widgets/controls.h" #include "selfdrive/ui/qt/widgets/scrollview.h" -const QString SUNNYLINK_BASE_URL = util::getenv("SUNNYLINK_API_HOST", "https://stg.api.sunnypilot.ai").c_str(); +const QString SUNNYLINK_BASE_URL = util::getenv("SUNNYLINK_API_HOST", "https://tst-mr-46.dev.api.sunnypilot.ai").c_str(); // sponsor QR code class SunnylinkSponsorQRWidget : public QWidget { Q_OBJECT diff --git a/system/loggerd/sunnylink_uploader.py b/system/loggerd/sunnylink_uploader.py index 45fb323f84..f90a74ce18 100755 --- a/system/loggerd/sunnylink_uploader.py +++ b/system/loggerd/sunnylink_uploader.py @@ -22,7 +22,7 @@ from openpilot.system.loggerd.xattr_cache import getxattr, setxattr from openpilot.common.swaglog import cloudlog NetworkType = log.DeviceState.NetworkType -UPLOAD_ATTR_NAME = 'user.sunny.upload' +UPLOAD_ATTR_NAME = 'user.sunnydv.upload' UPLOAD_ATTR_VALUE = b'1'