From 98fb86087f59fc7e35d8c4a08e65aaf06cac0a9a Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 1 Jun 2021 15:06:21 +0200 Subject: [bas-python] Add path to edid data --- modules.d/bas-python/scripts/collect_hw_info_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/bas-python/scripts/collect_hw_info_json.py b/modules.d/bas-python/scripts/collect_hw_info_json.py index 4d874791..6070fa85 100755 --- a/modules.d/bas-python/scripts/collect_hw_info_json.py +++ b/modules.d/bas-python/scripts/collect_hw_info_json.py @@ -166,7 +166,7 @@ def get_edid(): if dp == '': continue edid_hex = open(dp, 'rb').read().hex() if len(edid_hex) > 0: - edid.append(edid_hex) + edid.append({ 'path': dp, 'edid': edid_hex }) return edid def get_lshw(): @@ -201,7 +201,7 @@ def prepare_contacts(contact_list): return contacts def send_post(url, payload): - headers = { 'Content-type': 'application/json', 'Accept': 'text/plain' } + # headers = { 'Content-type': 'application/json', 'Accept': 'text/plain' } # req = requests.post(url, json=payload, headers=headers) req = requests.post(url, json=payload) print("POST-Request Response: \n") -- cgit v1.2.3-55-g7522