Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oroce/sensortag-with-godot
sensortag fun with godot and influxdb + grafana
https://github.com/oroce/sensortag-with-godot
Last synced: about 1 month ago
JSON representation
sensortag fun with godot and influxdb + grafana
- Host: GitHub
- URL: https://github.com/oroce/sensortag-with-godot
- Owner: oroce
- Created: 2014-06-04T05:33:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T08:07:07.000Z (over 7 years ago)
- Last Synced: 2024-04-14T14:46:01.327Z (9 months ago)
- Language: JavaScript
- Size: 157 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sensortag fun with influxdb, godot
Reading data from sensortag, sending to godot server and writing to influxdb.
### Running
1. Start influxdb
2. npm run server
3. npm run client
4. hit the button on sensortag
5. start grafana
6. open stats from assets/sensortag.json
7. watch and smile:)### Provision
`ansible-playbook -i hosts provision/site.yml`
### Vagrant
1. Install vagrant-env:
`vagrant plugin install vagrant-env`2. Get Oracle Virtualbox Extension Pack: https://www.virtualbox.org/wiki/Downloads
3. Get the `VendorId` and `ProductId` of desired BLE device
`VBoxManage list usbhost`4. Add `VendorId` and `ProductId` to the `.env` file
~~~
BLE_VENDORID=0x0a12
BLE_PRODUCTID=0x0001
~~~5. `vagrant up`
6. `vagrant suspend`
7. Remove the USB dongle
8. `vagrant up`
9. 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](http://stackoverflow.com/questions/24318375/how-to-eject-a-usb-hid-device-from-mac-osx-to-use-in-ubuntu-vm).