Be Warned When Kid Is Back From School (with a Beacon, Without Programming)

by thethingbox in Circuits > Raspberry Pi

1928 Views, 9 Favorites, 0 Comments

Be Warned When Kid Is Back From School (with a Beacon, Without Programming)

beacon.jpg

iBeacons are blutooth devices that broadcast their information (position...) so that bluetooth aware devices (like smartphones, Raspberry Pi...) are able to detect them and get their information.

Put on in your kid's bag and let's trigger an action (an email) when the beacon is detected near.

This tutorial uses a TimeSquAir (http://TimeSquAir.io) a all in one Raspberry Pi bundled with a LED Matrix and a NFC tag, easily customizable with a visual editor powered by IBM's Node-RED (http://Nore-RED.org). Altenatively, you can use a Thingbox (http://theThingbox.io).

You'll also need a bluetooth dongle.

Open the Visual Editor

Workspace.png

Open the visual editor with your internet browser.

Install Beacon Software

import.png

Then, Use the menu import / node and enter "ttb-ibeacon", then validate and wait for the install.

Scan Beacons Around

ibeaconFlow1.png

After rebooting, the "ibeacon scan" node is available in the palette.

When you click "Go", the Pi scans around for beacons and on node per beacon will be added to the workspace.

Edit the Beacon Node

ibeaconNodes2.png

Double click it to change its name to something better (use the name of your kid), then add a Go and debug node:

Use a Beacon Node

Arthur.png

After activating the flow, the display tab gets filled with the distance between the beacon and the Pi:

result2.png

you can use that distance in meter to trigger an action, for instance sending an email with the email node:

sendEmail.png

A More Complex Example

ibeaconFlow5.png

In this flow, a Philips Hue bulb is set differently weather the beacon (in my pocket) is near or not of my TimeSquAir.

Learn More

091015_39-600x270.jpg