To be able to see the signal strength without needing to log inn to web gui / winbox etc, I have made a script.
It test signal strengt on first wifi client and blinks the led to show signal strengt.
Less blink are better than many so
-30 dBm = 3 blink
-63 dBm = 6 blink
Last blink is longer to show that its at the end.
Scripts should run for ever or until you change global value runLoop to false.
But there are some bugs with it.
When I start it with a client connected it runs fine.
Stop the client and no more blink.
But turn on the client again and i do not get any blink.
IF I do run this command it will work again
Any suggestion are welcome/interface wireless registration-table print stats
Code: Select all
:global runLoop true
: do {
: do {
: local a [/interface wireless registration-table get value-name=signal-strength 0]
: local loop ([:pick ([:pick $a 0 [:find $a "dBm"]]/10) 1]-0)
: if ([:len $a] = 0) do={
} else={
: for e from 1 to $loop do={
/system leds set [find where leds="wlan-led" ] type=off
:delay 500ms
/system leds set [find where leds="wlan-led" ] type=on
:delay 500ms
}
}
:delay 1s
/system leds set [find where leds="wlan-led" ] type=off
:delay 2s
} on-error={}
} while=($runLoop)