added watchdog, release first firmware

This commit is contained in:
dekunukem
2023-04-16 17:04:08 +01:00
parent 283acbe422
commit ef891c082e
13 changed files with 2244 additions and 2201 deletions

View File

@@ -106,7 +106,7 @@ def get_firmware_list(pcard_id):
try:
file_list = json.loads(urllib.request.urlopen(firmware_url).read())
fw_list = [x['name'] for x in file_list if 'name' in x and 'type' in x and x['type'] == 'file']
fw_list = [d for d in fw_list if d.startswith('PBFW') and d.lower() and f"PBID{pcard_id}" in d]
fw_list = [d for d in fw_list if d.startswith('PBFW') and f"PBID{pcard_id}" in d]
fw_list.sort(key=lambda s: list(map(int, s.lower().split('_v')[1].split('.')[0].replace('_', '.').split('.'))), reverse=True)
except Exception as e:
print('get_firmware_list:', e)