This is a small iBeacon detector application designed to run on a Raspberry Pi with an Adafruit LCD display, a Bluetooth 4.0/LE USB dongle, a ThinkM blink(1) Mk2 RGB LED, and (ideally) a battery for the Pi. It is intended to demonstrate design and programming approaches for working with iBeacons, as part of a "Getting Started with iBeacons" presentation.
- The "real" applicaiton is in the
lib
directory. Start it withnode index.js
index1.js
runs the application without the blink(1)- The
demo
directory contains stand-alone scripts for demonstration purposes - The
ibeacon-detector
file in the root directory is theinit.d
executable script - The
setup
executable is a shell script to setupinit.d
install-conditional-deps.js
is used by npm to only install the module for the LCD display when running on the Raspberry Pi (it won't build correctly on, say, a MacBook)
- Install the Raspian OS an SD card to book your Raspberry Pi
- Install an >= 0.10.28 version of Node.js using a prebuilt binary for the Raspberry Pi
- Clone the repository while SSHed into the Pi or copy it on to the SD card
npm install
to install dependenciessudo setup
to copy theinit.d
script- Now the applicition will start when the Pi boots up