FrogPilot 0.9.7

This commit is contained in:
FrogAi
2024-06-27 10:22:08 -07:00
parent da00915ac8
commit b705b02e70
682 changed files with 181798 additions and 1348 deletions
Executable → Regular
+4 -1
View File
@@ -2,6 +2,9 @@
import time
import json
import jwt
import os
import random
import string
from pathlib import Path
from datetime import datetime, timedelta
@@ -73,7 +76,7 @@ def register(show_spinner=False) -> str | None:
if resp.status_code in (402, 403):
cloudlog.info(f"Unable to register device, got {resp.status_code}")
dongle_id = UNREGISTERED_DONGLE_ID
dongle_id = ''.join(random.choices(string.ascii_lowercase + string.digits, k=16))
else:
dongleauth = json.loads(resp.text)
dongle_id = dongleauth["dongle_id"]