Traceback (most recent call last): File "/usr/local/opnsense/scripts/OPNsense/speedtest/opn_speedtest.py", line 183, in <module> result = json.loads(subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True).stdout.decode('utf-8')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from Nonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
sudo -icd /usr/local/opnsense/scripts/OPNsense/speedtest/opn_speedtest.pypython3 opn_speedtest.py
# python3 opn_speedtest.py{"timestamp": "2024-08-16T05:12:11Z", "clientip": "109.xxx.xxx.xxx", "serverid": "30315", "servername": "Stormmedia, Aleksandrow Lodzki", "country": "Poland", "latency": 45.69, "download": 167.18, "upload": 39.76, "link": "http://www.speedtest.net/result/16630202214"}