totev / vodafone-station-cli

Access your Vodafone Station from the comfort of the command line.
MIT License
35 stars 8 forks source link

diagnose: If not all channels are locked, warnings are not shown #142

Open PsikoBlock opened 1 year ago

PsikoBlock commented 1 year ago

When running the diagnose command, I currently have some channels displaying as NotLocked. The power level in the corresponding row is displayed as NaN. Consequently, an error message is shown:

Error: PowerLevel is not within supported range. PowerLevel: NaN

Instead, I would like to see the warning messages (if any) about the remaining channels, e.g.,

Legend: pl = power level | snr = signal to noise ration
Colors:  Fix within one Month | Fix immediately
DOWN: ch193pl, ch29snr, ch193snr
UP:

My setup:

I've attached the full output: vodafone-station-cli-diagnose.txt

totev commented 1 year ago

Thanks for the issue report! Do you happen to know what the original value coming from the modem is in that field? Maybe by executing it with env DEBUG=\* ./bin/dev diagnose? The current expectation is, that the value is formatted like so "PowerLevel":"-2.8\/57.2".

totev commented 1 year ago

@PsikoBlock If you can, could you please check the fix here: #143 ?