Uses bluetooth to scan for Tilt hydrometers (http://tilthydrometer.com) and report data in a dashboard and log data to the cloud and locally.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# iBeacon Scanner | |
# refactored script from Radius Networks referenced in this StackOverflow answer: | |
# http://stackoverflow.com/questions/21733228/can-raspberrypi-with-ble-dongle-detect-ibeacons?lq=1 | |
# Process: | |
# 1. start hcitool lescan | |
# 2. begin reading from hcidump | |
# 3. packets span multiple lines from dump, so assemble packets from multiline stdin | |
# 4. for each packet, process into uuid, major, minor, power, and RSSI |