From 9ba038a36e6f47b676076053356324a6e6055963 Mon Sep 17 00:00:00 2001 From: highvolt-dev Date: Sun, 8 May 2022 15:57:31 -0400 Subject: [PATCH] calculate arcaydyan eNB ID using decimal base fixes #68 caused by firmware update --- tmo_monitor/gateway/arcadyan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmo_monitor/gateway/arcadyan.py b/tmo_monitor/gateway/arcadyan.py index 022c620..19237a4 100644 --- a/tmo_monitor/gateway/arcadyan.py +++ b/tmo_monitor/gateway/arcadyan.py @@ -34,7 +34,7 @@ def get_site_info(self): meta = stat_request.json()['cell']['4g'] return { - 'eNBID': math.floor(int(meta['ecgi'][6:], 16)/256), + 'eNBID': math.floor(int(meta['ecgi'][6:])/256), 'PLMN': meta['mcc'] + '-' + meta['mnc'] } def reboot(self):