mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-07-26 20:32:04 +08:00
switch to konik.ai
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ Version 0.9.7 (2024-06-13)
|
||||
* Torque Interceptor support with a toggle
|
||||
* Support for cars with No MRCC or Front camera with a toggle
|
||||
* Toggle to connect FrogPilot Server instead of comma server
|
||||
* Go to https://portal.springerelectronics.com to view drives and set navigation
|
||||
* Go to https://stable.konik.ai to view drives and set navigation
|
||||
* Update to the latest FrogPilot version
|
||||
* New driving model
|
||||
* Inputs the past curvature for smoother and more accurate lateral control
|
||||
|
||||
@@ -5,7 +5,7 @@ from datetime import datetime, timedelta
|
||||
from openpilot.system.hardware.hw import Paths
|
||||
from openpilot.system.version import get_version
|
||||
|
||||
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
|
||||
API_HOST = os.getenv('API_HOST', 'https://api.konik.ai')
|
||||
|
||||
class Api:
|
||||
def __init__(self, dongle_id):
|
||||
|
||||
+2
-2
@@ -36,8 +36,8 @@ function set_dongle_id {
|
||||
if [ -f $PARAMS/UseFrogServer ] && [ -f $PARAMS/DongleId ] && [ -f $PARAMS/FrogId ]; then # All params created
|
||||
if [ "$(cat $PARAMS/UseFrogServer)" == "1" ]; then
|
||||
echo -e "\033[0;36mUsing FrogServer\033[0m"
|
||||
export API_HOST=https://api.springerelectronics.com
|
||||
export ATHENA_HOST=wss://athena.springerelectronics.com
|
||||
export API_HOST=https://api.konik.ai
|
||||
export ATHENA_HOST=wss://athena.konik.ai
|
||||
|
||||
if [ "$(cat $PARAMS/DongleId)" != "$(cat $PARAMS/FrogId)" ]; then # And they are not equal (FrogId="") which means the device never registered with FrogServer
|
||||
echo "$(cat $PARAMS/DongleId)" > $PARAMS/DongleIdOld # Backup old dongle
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
export API_HOST=https://api.springerelectronics.com
|
||||
export ATHENA_HOST=wss://athena.springerelectronics.com
|
||||
export API_HOST=https://api.konik.ai
|
||||
export ATHENA_HOST=wss://athena.konik.ai
|
||||
exec ./launch_chffrplus.sh
|
||||
|
||||
@@ -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://api.konik.ai").c_str();
|
||||
QByteArray rsa_sign(const QByteArray &data);
|
||||
QString create_jwt(const QJsonObject &payloads = {}, int expiry = 3600);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ void PairingQRWidget::refresh() {
|
||||
QString pairToken = CommaApi::create_jwt({{"pair", true}});
|
||||
QString qrString = "https://connect.comma.ai/?pair=" + pairToken;
|
||||
if (getenv("API_HOST") != nullptr) {
|
||||
qrString = "https://portal.springerelectronics.com/?pair=" + pairToken;
|
||||
qrString = "https://stable.konik.ai/?pair=" + pairToken;
|
||||
}
|
||||
this->updateQrCode(qrString);
|
||||
update();
|
||||
|
||||
@@ -42,7 +42,7 @@ from openpilot.system.version import get_build_metadata
|
||||
from openpilot.system.hardware.hw import Paths
|
||||
from openpilot.system.athena.streamer import Streamer
|
||||
|
||||
ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai')
|
||||
ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.konik.ai')
|
||||
HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4"))
|
||||
LOCAL_PORT_WHITELIST = {8022}
|
||||
|
||||
|
||||
+1
-1
@@ -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://api.konik.ai')
|
||||
|
||||
class CommaApi:
|
||||
def __init__(self, token=None):
|
||||
|
||||
@@ -64,7 +64,7 @@ def auth_redirect_link(method):
|
||||
}[method]
|
||||
|
||||
params = {
|
||||
'redirect_uri': f"https://api.springerelectronics.com/v2/auth/{provider_id}/redirect/",
|
||||
'redirect_uri': f"https://api.konik.ai/v2/auth/{provider_id}/redirect/",
|
||||
'state': f'service,localhost:{PORT}',
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ segment = int(sys.argv[2])
|
||||
frame = int(sys.argv[3])
|
||||
camera = cameras[sys.argv[4]] if len(sys.argv) > 4 and sys.argv[4] in cameras else "cameras"
|
||||
|
||||
url = f'https://api.commadotai.com/v1/route/{route}/files'
|
||||
url = f'https://api.konik.ai/v1/route/{route}/files'
|
||||
r = requests.get(url, headers={"Authorization": f"JWT {jwt}"}, timeout=10)
|
||||
assert r.status_code == 200
|
||||
print("got api response")
|
||||
|
||||
Reference in New Issue
Block a user