Skip to content

Commit

Permalink
Use comma-api-server
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcwatters committed Apr 24, 2024
1 parent 7333b37 commit 26d34da
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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://www.andrewmcwatters.org/comma-api')

class Api():
def __init__(self, dongle_id):
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/athena/athenad.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from openpilot.system.hardware.hw import Paths


ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai')
ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://www.andrewmcwatters.org/athena')
HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4"))
LOCAL_PORT_WHITELIST = {8022}

Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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://www.andrewmcwatters.org/comma-api").c_str();
QByteArray rsa_sign(const QByteArray &data);
QString create_jwt(const QJsonObject &payloads = {}, int expiry = 3600);

Expand Down
2 changes: 1 addition & 1 deletion tools/lib/api.py
Original file line number Diff line number Diff line change
@@ -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://www.andrewmcwatters.org/comma-api')

class CommaApi():
def __init__(self, token=None):
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/fetch_image_from_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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://www.andrewmcwatters.org/comma-api/v1/route/{route}/files'
r = requests.get(url, headers={"Authorization": f"JWT {jwt}"}, timeout=10)
assert r.status_code == 200
print("got api response")
Expand Down

0 comments on commit 26d34da

Please sign in to comment.