/bluetooth_hook

Application to monitor bluetooth device proximity and hit RESTful endpoints in response.

Primary LanguageRuby

Build Status Code Climate Test Coverage Dependency Status

##bluetooth_hook

The Bluetooth Hook is a web application which configures devices to fire web requests based on bluetooth visibility. Users can add and remove devices as well as specify endpoints and HTTP Request methods. Then, by running the application, endpoints will respond based on device proximity.

Dependencies

  • a linux box with bluetooth
  • ruby
  • hcitool
  • root privileges (req'd by hcitool unfortunately)

Usage

  • Clone the repository and install dependent gems
  • To run the application:
./bin/bluetooth_hook.rb
  • To run the web interface for adding/removing devices:
./bin/bluetooth_web.rb
  • Configure devices in the web interface running on port 4567

Screenshots

Device List:

device list

Add Device:

add device

** Special thanks to Manheim's Seller Tools team for allowing me and Rex to work on this during the team Hackathon. **