FrogPilot 0.9.7

This commit is contained in:
James
2025-11-01 12:00:00 -07:00
parent bb7cad0a8b
commit fb26eb3d1b
2728 changed files with 844251 additions and 29127 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
import sys
from openpilot.frogpilot.common.frogpilot_utilities import use_konik_server
if len(sys.argv) < 4:
print(f"{sys.argv[0]} <route> <segment> <frame number> [front|wide|driver]")
print('example: ./fetch_image_from_route.py "02c45f73a2e5c6e9|2020-06-01--18-03-08" 3 500 driver')
@@ -24,7 +26,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" if use_konik_server() else "commadotai.com"}/v1/route/{route}/files'
r = requests.get(url, headers={"Authorization": f"JWT {jwt}"}, timeout=10)
assert r.status_code == 200
print("got api response")