[KLUG Members] Minimum req. signal strength.

John Bridleman members@kalamazoolinux.org
Sat, 26 Apr 2003 16:06:03 -0400


* Adam Tauno Williams (awilliam@whitemice.org) wrote:
> I started the signal strength meter on my GNOME panel and was checking
> the singal strength around my house...

I ran across this a little while ago. I don't have a wireless card to check and see if it works but it's supposed to make your computer beep like a geiger counter when you get near a WAP. Plug in some headphones, stuffed it all in your backpack, and walk around. Let me know how it works.

#!/bin/sh
#
# Beep when the wireless link is stronger.
#
 
while true
do
        wvlevel=`grep "^  eth1"  /proc/net/wireless |awk '{print $3}' |cut -d. -f 1`
 
        usleep 1000
        if [ $RANDOM -lt $(($wvlevel * 129)) ]
        then
                echo -n ^G
        fi
        echo $wvlevel...
done
--
John Bridleman / www.bridleman.org