GISTS/mikrotik/Sonore.rsc

14 lignes
503 o
Text
Brut Lien permanent Vue normale Historique

2024-09-03 00:10:43 +02:00
# Sonore
# A script used for antennas alignment: the higher-pitched the sound, the better the alignment
:local minStr -70
:local maxStr -50
:local minFreq 300
:local maxFreq 5000
:local a (($maxFreq - $minFreq) / ($maxStr - $minStr))
:local b ((($maxStr * $minFreq) - ($minStr * $maxFreq)) / ($maxStr - $minStr))
/interface wireless monitor [/interface find name=wlan1] duration=10s interval=0.02s do={
:if ($"status" = "connected-to-ess") do={
:beep frequency=(($"signal-strength" * $a) + $b)
}
}