Getting signal strenght

ebolisa

New Member
Joined
Aug 11, 2020
Messages
5
Reaction score
1
Credits
42
Hi,
this code returns several lines but, how to get it to return just the signal strenght signed number? So I can plug it into my py code.
TIA

iwconfig | awk -F'[ =]+' '/Signal level/ {print $7}'
 


Code:
iwconfig wlp3s0 | grep -i --color quality

Where it says wlp3s0 for WiFi interface you have to use your own - this output is from my machine running the above command

Link Quality=61/70 Signal level=-49 dBm

Hopefully that is what you are looking for
 

Members online


Top