Bash version of blueproximity
Many codes are from Internet. Only thing I did was copy and paste and scrub some things off.
- Copied from Steven on http://gentoo-wiki.com/Talk:TIP_Bluetooth_Proximity_Monitor
- Modified By Jamie Paton
- Modified By Michele Marcucci http://www.michelem.org
- Modified By Mone http://www.simonefabiano.com
- Modified by ikko http://1kko.com https://github.com/1kko/blueproximity
once you have run the script, default configuration is stored in "/.blueproximity/blueproximity.conf"
- hcitool
- rfcomm
- l2ping
turn on your bluetooth device and set to pairing mode.
run blueproximity in prompt ./blueproximity
it scan near bluetooth devices, and display mac address. when script prompts enter your Phone's bluetooth MAC address in the format of 00:12:34:56:78:9A Please Enter your Device's Bluetooth MAC Address: 00:12:34:56:78:9A
it will generate configuration file to /.blueproximity/blueproximity.conf
your config is stored to /.blueproximity/blueproximity.conf
to check out configuration, type:
cat /.blueproximity/blueproximity.conf
now you can either run again to see if it works, or you can edit configuration file and script itself for your taste.
you can make run the script when you login. If you are using Ubuntu: go to System Setting > Start Up Applications > Add
Ubuntu 12.04 I have to run rfcomm in root mode, so I have changed rfcomm's priviledge mode in running.
sudo chmod 6755 /usr/bin/rfcomm