ruuvitag-collector
Listens for data coming from a RuuviTag sensor and pushes the data to an InfluxDB database.
Additional Libraries
go get github.com/go-ble/ble
go get github.com/mgutz/logxi/v1
go get github.com/influxdata/influxdb-client-go/v2
Disable of Bluetooth Scanning on the Raspberry Pi
sudo hciconfig hci0 down
sudo service bluetooth stop
The above commands are good for testing. If the Raspberry Pi is rebooted the start up script will restart Bluetooth Scanning
Build for the Rasberry Pi
env GOOS=linux GOARCH=arm GOARM=5 go build
Resources
Inspired by
This project was inspired by the work of
Notes
- When I used the library from github.com/paypal/gatt, the code would throw an error about a slice bounds out of range. The error would normally occur within 15 minutes of starting the test.