legacy-mode #3

Merged
pedro merged 11 commits from legacy-mode into main 2024-10-15 12:17:26 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit f86852e89e - Show all commits

View File

@ -320,11 +320,11 @@ def send_snapshot_to_devicehub(snapshot, token, url):
try:
response = json.loads(response_text)
if response.get('public_url'):
if response.get('url'):
# apt install qrencode
qr = "echo {} | qrencode -t ANSI".format(response['public_url'])
qr = "echo {} | qrencode -t ANSI".format(response['url'])
print(exec_cmd(qr))
print("public_url: {}".format(response['public_url']))
print("url: {}".format(response['url']))
if response.get("dhid"):
print("dhid: {}".format(response['dhid']))
except Exception: