From 259dfbdcdcf5ed8ffa3cf1e57712069cea89ef1f Mon Sep 17 00:00:00 2001 From: MoreTore Date: Sat, 15 Jun 2024 20:57:30 -0400 Subject: [PATCH] connect tools --- common/api/__init__.py | 2 +- selfdrive/athena/athenad.py | 2 +- selfdrive/ui/qt/api.h | 2 +- selfdrive/ui/translations/main_ar.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_de.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_fr.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_ja.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_ko.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_pt-BR.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_th.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_tr.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_zh-CHS.ts | 38 ++++++++++++++++++++++++ selfdrive/ui/translations/main_zh-CHT.ts | 38 ++++++++++++++++++++++++ tools/lib/api.py | 2 +- tools/replay/route.cc | 2 +- 15 files changed, 385 insertions(+), 5 deletions(-) diff --git a/common/api/__init__.py b/common/api/__init__.py index 0eb8aa762..6ba9f737e 100644 --- a/common/api/__init__.py +++ b/common/api/__init__.py @@ -5,7 +5,7 @@ from datetime import datetime, timedelta from openpilot.common.basedir import PERSIST from openpilot.system.version import get_version -API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com') +API_HOST = os.getenv('API_HOST', 'https://connect-api.duckdns.org') class Api(): def __init__(self, dongle_id): diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index c93b43467..43f422dac 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -46,7 +46,7 @@ from openpilot.system.hardware.hw import Paths # TODO: use socket constant when mypy recognizes this as a valid attribute TCP_USER_TIMEOUT = 18 -ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai') +ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://connect-ws.duckdns.org') HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4")) LOCAL_PORT_WHITELIST = {8022} diff --git a/selfdrive/ui/qt/api.h b/selfdrive/ui/qt/api.h index ad64d7e72..d0cbea3c3 100644 --- a/selfdrive/ui/qt/api.h +++ b/selfdrive/ui/qt/api.h @@ -9,7 +9,7 @@ namespace CommaApi { -const QString BASE_URL = util::getenv("API_HOST", "https://api.commadotai.com").c_str(); +const QString BASE_URL = util::getenv("API_HOST", "https://connect-api.duckdns.org").c_str(); QByteArray rsa_sign(const QByteArray &data); QString create_jwt(const QJsonObject &payloads = {}, int expiry = 3600); diff --git a/selfdrive/ui/translations/main_ar.ts b/selfdrive/ui/translations/main_ar.ts index 4159f28c3..da7e6304e 100644 --- a/selfdrive/ui/translations/main_ar.ts +++ b/selfdrive/ui/translations/main_ar.ts @@ -90,6 +90,17 @@ LIMIT + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ إلغاء + + CustomSlider + + RESET + إعادة الضبط + + + Are you sure you want to reset + + + + Reset + إعادة الضبط + + DeclinePage @@ -663,6 +689,10 @@ This may take up to a minute. Software البرنامج + + Behavior + + Setup @@ -1123,6 +1153,14 @@ This may take up to a minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. تمكين التحكم الطولي من openpilot (ألفا) للسماح بالوضع التجريبي. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_de.ts b/selfdrive/ui/translations/main_de.ts index e2e577190..7c70be12d 100644 --- a/selfdrive/ui/translations/main_de.ts +++ b/selfdrive/ui/translations/main_de.ts @@ -90,6 +90,17 @@ LIMIT + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ Abbrechen + + CustomSlider + + RESET + RESET + + + Are you sure you want to reset + + + + Reset + Zurücksetzen + + DeclinePage @@ -645,6 +671,10 @@ This may take up to a minute. Software Software + + Behavior + + Setup @@ -1109,6 +1139,14 @@ This may take up to a minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_fr.ts b/selfdrive/ui/translations/main_fr.ts index 456efe636..9a3539abc 100644 --- a/selfdrive/ui/translations/main_fr.ts +++ b/selfdrive/ui/translations/main_fr.ts @@ -90,6 +90,17 @@ LIMITE + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ Annuler + + CustomSlider + + RESET + RÉINITIALISER + + + Are you sure you want to reset + + + + Reset + Réinitialiser + + DeclinePage @@ -647,6 +673,10 @@ Cela peut prendre jusqu'à une minute. Software Logiciel + + Behavior + + Setup @@ -1107,6 +1137,14 @@ Cela peut prendre jusqu'à une minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. Activer le contrôle longitudinal d'openpilot (en alpha) pour autoriser le mode expérimental. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_ja.ts b/selfdrive/ui/translations/main_ja.ts index 63de8f047..bbff5b1ca 100644 --- a/selfdrive/ui/translations/main_ja.ts +++ b/selfdrive/ui/translations/main_ja.ts @@ -90,6 +90,17 @@ 制限速度 + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ キャンセル + + CustomSlider + + RESET + リセット + + + Are you sure you want to reset + + + + Reset + リセット + + DeclinePage @@ -641,6 +667,10 @@ This may take up to a minute. Software ソフトウェア + + Behavior + + Setup @@ -1101,6 +1131,14 @@ This may take up to a minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_ko.ts b/selfdrive/ui/translations/main_ko.ts index bc0c5f2b0..b0d624921 100644 --- a/selfdrive/ui/translations/main_ko.ts +++ b/selfdrive/ui/translations/main_ko.ts @@ -90,6 +90,17 @@ LIMIT + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ 취소 + + CustomSlider + + RESET + 초기화 + + + Are you sure you want to reset + + + + Reset + 초기화 + + DeclinePage @@ -643,6 +669,10 @@ This may take up to a minute. Software 소프트웨어 + + Behavior + + Setup @@ -1103,6 +1133,14 @@ This may take up to a minute. The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. When a navigation destination is set and the driving model is using it as input, the driving path on the map will turn green. 주행 시각화는 저속으로 주행 시 도로를 향한 광각 카메라로 자동 전환되어 일부 곡선 경로를 더 잘 보여줍니다. 실험 모드 로고는 우측 상단에 표시됩니다. 내비게이션 목적지가 설정되고 주행 모델에 입력되면 지도의 주행 경로가 녹색으로 바뀝니다. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_pt-BR.ts b/selfdrive/ui/translations/main_pt-BR.ts index 4cf37cc58..6f89f05ed 100644 --- a/selfdrive/ui/translations/main_pt-BR.ts +++ b/selfdrive/ui/translations/main_pt-BR.ts @@ -90,6 +90,17 @@ VELO + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ Cancelar + + CustomSlider + + RESET + RESET + + + Are you sure you want to reset + + + + Reset + Resetar + + DeclinePage @@ -647,6 +673,10 @@ Isso pode levar até um minuto. Software Software + + Behavior + + Setup @@ -1107,6 +1137,14 @@ Isso pode levar até um minuto. The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. When a navigation destination is set and the driving model is using it as input, the driving path on the map will turn green. A visualização de condução fará a transição para a câmera grande angular voltada para a estrada em baixas velocidades para mostrar melhor algumas curvas. O logotipo do modo Experimental também será mostrado no canto superior direito. Quando um destino de navegação é definido e o modelo de condução o utiliza como entrada o caminho de condução no mapa fica verde. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_th.ts b/selfdrive/ui/translations/main_th.ts index a1748a695..87757b0de 100644 --- a/selfdrive/ui/translations/main_th.ts +++ b/selfdrive/ui/translations/main_th.ts @@ -90,6 +90,17 @@ จำกัด + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ ยกเลิก + + CustomSlider + + RESET + รีเซ็ต + + + Are you sure you want to reset + + + + Reset + รีเซ็ต + + DeclinePage @@ -643,6 +669,10 @@ This may take up to a minute. Software ซอฟต์แวร์ + + Behavior + + Setup @@ -1103,6 +1133,14 @@ This may take up to a minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. เปิดระบบควบคุมการเร่ง/เบรคโดย openpilot (alpha) เพื่อเปิดใช้งานโหมดทดลอง + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_tr.ts b/selfdrive/ui/translations/main_tr.ts index 51fdddd5c..87e824cb8 100644 --- a/selfdrive/ui/translations/main_tr.ts +++ b/selfdrive/ui/translations/main_tr.ts @@ -90,6 +90,17 @@ LİMİT + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ Vazgeç + + CustomSlider + + RESET + SIFIRLA + + + Are you sure you want to reset + + + + Reset + + + DeclinePage @@ -641,6 +667,10 @@ This may take up to a minute. Software Yazılım + + Behavior + + Setup @@ -1101,6 +1131,14 @@ This may take up to a minute. Enable the openpilot longitudinal control (alpha) toggle to allow Experimental mode. + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_zh-CHS.ts b/selfdrive/ui/translations/main_zh-CHS.ts index 7b682535c..d538eee9b 100644 --- a/selfdrive/ui/translations/main_zh-CHS.ts +++ b/selfdrive/ui/translations/main_zh-CHS.ts @@ -90,6 +90,17 @@ LIMIT + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ 取消 + + CustomSlider + + RESET + 重置 + + + Are you sure you want to reset + + + + Reset + 重置 + + DeclinePage @@ -643,6 +669,10 @@ This may take up to a minute. Software 软件 + + Behavior + + Setup @@ -1103,6 +1133,14 @@ This may take up to a minute. The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. When a navigation destination is set and the driving model is using it as input, the driving path on the map will turn green. 行驶画面将在低速时切换到道路朝向的广角摄像头,以更好地显示一些转弯。实验模式标志也将显示在右上角。当设置了导航目的地并且驾驶模型正在使用它作为输入时,地图上的驾驶路径将变为绿色。 + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/selfdrive/ui/translations/main_zh-CHT.ts b/selfdrive/ui/translations/main_zh-CHT.ts index 1794cc78a..80daa865e 100644 --- a/selfdrive/ui/translations/main_zh-CHT.ts +++ b/selfdrive/ui/translations/main_zh-CHT.ts @@ -90,6 +90,17 @@ 速限 + + BehaviorPanel + + Max Cruise De-accel: + + + + Cruise Accel Factor: + + + ConfirmationDialog @@ -101,6 +112,21 @@ 取消 + + CustomSlider + + RESET + 重設 + + + Are you sure you want to reset + + + + Reset + 重設 + + DeclinePage @@ -643,6 +669,10 @@ This may take up to a minute. Software 軟體 + + Behavior + + Setup @@ -1103,6 +1133,14 @@ This may take up to a minute. The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. When a navigation destination is set and the driving model is using it as input, the driving path on the map will turn green. 行駛畫面將在低速時切換至道路朝向的廣角鏡頭,以更好地顯示一些轉彎。實驗模式圖示也將顯示在右上角。當設定了導航目的地並且行駛模型正在將其作為輸入時,地圖上的行駛路徑將變為綠色。 + + Record and Upload Road Cameras + + + + Upload data from the road cameras. + + Updater diff --git a/tools/lib/api.py b/tools/lib/api.py index 6ff9242f2..e9c92aa3e 100644 --- a/tools/lib/api.py +++ b/tools/lib/api.py @@ -1,6 +1,6 @@ import os import requests -API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com') +API_HOST = os.getenv('API_HOST', 'https://connect-api.duckdns.org') class CommaApi(): def __init__(self, token=None): diff --git a/tools/replay/route.cc b/tools/replay/route.cc index 15a57e5e4..e1e594c98 100644 --- a/tools/replay/route.cc +++ b/tools/replay/route.cc @@ -47,7 +47,7 @@ bool Route::loadFromServer() { loop.exit(success ? loadFromJson(json) : 0); }); - http.sendRequest("https://api.commadotai.com/v1/route/" + route_.str + "/files"); + http.sendRequest("https://connect-api.duckdns.org/v1/route/" + route_.str + "/files"); return loop.exec(); }