Executing:
tmo-monitor.py --ping-count 3 -4 B2 -5 n41 -5 n71 --model ARCKVD21
When the Ark device isn't connected to a 5g band, the JSON no longer contains a 5g section in the output, resulting in the following error:
2022/08/05 10:04:00 [DEBUG] Starting new HTTP connection (1): 192.168.12.1:80
2022/08/05 10:04:00 [DEBUG] http://192.168.12.1:80 "GET /TMI/v1/gateway?get=all HTTP/1.1" 200 906
Traceback (most recent call last):
File "/home/treddy/.local/bin/tmo-monitor.py", line 83, in
signal_info = gw_control.get_signal_info()
File "/home/treddy/.local/lib/python3.9/site-packages/tmo_monitor/gateway/arcadyan.py", line 69, in get_signal_info
nr_info = info['signal']['5g']['bands']
KeyError: '5g'
Output from gateway endpoint:
{
"device": {
"friendlyName": "5G Gateway",
"hardwareVersion": "R01",
"isEnabled": true,
"isMeshSupported": true,
"macId": "",
"manufacturer": "Arcadyan",
"manufacturerOUI": "001A2A",
"model": "KVD21",
"name": "5G Gateway",
"role": "gateway",
"serial": "",
"softwareVersion": "1.00.16",
"type": "HSID",
"updateState": "latest"
},
"signal": {
"4g": {
"bands": [
"b12"
],
"bars": 5.0,
"cid": 22,
"eNBID": ,
"rsrp": -73,
"rsrq": -6,
"rssi": -67,
"sinr": 17
},
"generic": {
"apn": "FBB.HOME",
"hasIPv6": true,
"registration": "registered",
"roaming": false
}
},
"time": {
"daylightSavings": {
"isUsed": false
},
"localTime": 1659687085,
"localTimeZone": "<-06>6",
"upTime": 306
}
}