From 2d7faf469b7aa5b6503da50858df9a3aa27a8f88 Mon Sep 17 00:00:00 2001 From: priyanshu Date: Thu, 28 Nov 2024 17:15:43 +0530 Subject: [PATCH] [change] Added the name of the metric to the label #311 Previously the signal charts didn't have a metric name so the following changes were made. Signal Strength -> Signal Strength (RSSI) Signal Power -> Signal Power (RSRP) Signal Quality -> Signal Quality (RSRQ) Signal to Noise Ratio -> Signal to Noise Ratio (SNR) Fixes #311 --- .../monitoring/configuration.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/openwisp_monitoring/monitoring/configuration.py b/openwisp_monitoring/monitoring/configuration.py index 83b2e5a9..c0a2ee75 100644 --- a/openwisp_monitoring/monitoring/configuration.py +++ b/openwisp_monitoring/monitoring/configuration.py @@ -471,12 +471,14 @@ def _get_access_tech(): 'type': 'scatter', 'fill': 'none', 'yaxis': {'zeroline': False}, - 'title': _('Signal Strength'), + 'title': _('Signal Strength (RSSI)'), 'colors': (DEFAULT_COLORS[3], DEFAULT_COLORS[0]), - 'description': _('Signal Strength and Signal Power, measured in dBm.'), + 'description': _( + 'Signal Strength (RSSI) and Signal Power (RSRP), measured in dBm.' + ), 'summary_labels': [ - _('Average Signal Power'), - _('Average Signal Strength'), + _('Average Signal Power (RSRP)'), + _('Average Signal Strength (RSSI)'), ], 'unit': _(' dBm'), 'order': 205, @@ -495,14 +497,16 @@ def _get_access_tech(): 'type': 'scatter', 'fill': 'none', 'yaxis': {'zeroline': False}, - 'title': _('Signal Quality'), + 'title': _('Signal Quality (RSRQ)'), 'colors': (DEFAULT_COLORS[3], DEFAULT_COLORS[0]), 'description': _( - _('Signal Quality and Signal to Noise Ratio (SNR), measured in dB.') + _( + 'Signal Quality (RSRQ) and Signal to Noise Ratio (SNR), measured in dB.' + ) ), 'summary_labels': [ - _('Average Signal Quality'), - _('Average Signal to Noise Ratio'), + _('Average Signal Quality (RSRQ)'), + _('Average Signal to Noise Ratio (SNR)'), ], 'unit': _(' dB'), 'order': 206,