Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Add 4G/5G signal stats (RSRP, SNR, etc) to collection #85

Open
eponerine opened this issue Aug 22, 2023 · 0 comments
Open

Comments

@eponerine
Copy link

In an effort to track band, latency, and other status, it would be super-helpful to also scrape the 4G/5G connection stats and output them. Things like RSRP, SNR, etc:

image

I believe all of this is found on the fastmile_radio_status_web_app.cgi endpoint:

image

It looks like the hard work is already done here, you're just limiting the data returned to the Band:

def get_signal_info(self):
try:
signal_request = requests.get('http://192.168.12.1/fastmile_radio_status_web_app.cgi')
except:
logging.critical("Could not query signal status, exiting.")
sys.exit(ExitStatus.API_ERROR.value)
signal_request.raise_for_status()
info = signal_request.json()
return {
'4G': info['cell_LTE_stats_cfg'][0]['stat']['Band'],
'5G': info['cell_5G_stats_cfg'][0]['stat']['Band']
}

I only have a Nokia trashcan, so I cannot confirm what this looks like on other gateways.

Apologies if this has been asked or requested, but a quick search for "RSRP" yielded nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant