Compare commits

..

11 commits

Author SHA1 Message Date
pedro ba83ccba88 we know lshw might fail, do not load as json 2024-10-15 14:13:37 +02:00
pedro 92658ebc86 improve error msg 2024-10-15 14:13:37 +02:00
pedro cc02b65263 workbench: use url instead of public_url 2024-10-15 14:13:37 +02:00
pedro ddcd956220 inform of executed command
and discovered a command without the sudo
2024-10-15 14:13:37 +02:00
pedro 1f88aae0ac remove requests dependency, use vanilla urllib 2024-10-15 14:13:37 +02:00
pedro 2291d0994b add lspci command
which was required by legacy server
2024-10-15 14:13:37 +02:00
pedro 47a8e24850 allow more response codes 2024-10-15 14:13:37 +02:00
Cayo Puigdefabregas 46447cebaa qr for workbench 2024-10-15 14:13:37 +02:00
Cayo Puigdefabregas e4203df44c fix parsing to old devicehub 2024-10-15 14:13:33 +02:00
pedro fb69206f53 workbench-script: verify if snapshot was received 2024-10-15 14:13:11 +02:00
Cayo Puigdefabregas 6bf1746829 add legacy mode
make workbench-script compatible with the old devicehub
2024-10-15 14:13:04 +02:00

View file

@ -14,8 +14,8 @@ from datetime import datetime
## Legacy Functions ##
def convert_to_legacy_snapshot(snapshot):
snapshot["sid"] = str(uuid.uuid4()).split("-")[0]
snapshot["software"] = "Workbench"
snapshot["version"] = "2023.4.0-alpha"
snapshot["software"] = "workbench-script"
snapshot["version"] = "dev"
snapshot["schema_api"] = "1.0.0"
snapshot["settings_version"] = "No Settings Version (NaN)"
snapshot["timestamp"] = snapshot["timestamp"].replace(" ", "T")