Reading data from sensortag, sending to godot server and writing to influxdb.
- Start influxdb
- npm run server
- npm run client
- hit the button on sensortag
- start grafana
- open stats from assets/sensortag.json
- watch and smile:)
ansible-playbook -i hosts provision/site.yml
-
Install vagrant-env:
vagrant plugin install vagrant-env
-
Get Oracle Virtualbox Extension Pack: https://www.virtualbox.org/wiki/Downloads
-
Get the
VendorId
andProductId
of desired BLE deviceVBoxManage list usbhost
-
Add
VendorId
andProductId
to the.env
file
BLE_VENDORID=0x0a12
BLE_PRODUCTID=0x0001
-
vagrant up
-
vagrant suspend
-
Remove the USB dongle
-
vagrant up
-
Magic, BT device is available in the guest OS
Steps 5-9 are stolen from http://stackoverflow.com/questions/24318375/how-to-eject-a-usb-hid-device-from-mac-osx-to-use-in-ubuntu-vm.