https://github.com/goliatone/sensor-sink
Sample app to collect sensor data
https://github.com/goliatone/sensor-sink
Last synced: 2 months ago
JSON representation
Sample app to collect sensor data
- Host: GitHub
- URL: https://github.com/goliatone/sensor-sink
- Owner: goliatone
- License: mit
- Created: 2015-02-12T00:51:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T20:32:24.000Z (about 9 years ago)
- Last Synced: 2025-02-13T19:18:19.861Z (4 months ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
### Sensor Sink
#### Development
You need to pull dependencies using `npm i` form your source directory.
Ensure you have [envset][envset] and [slv][slv] installed, you can follow instructions on their respective repositories.
**Generate envset file from template**
Locally save the file `.envset.tpl` as `.envset` and provide valid values for the environment variables:* NODE_UBIDOTS_TOKEN
* NODE_UBIDOTS_URL* NODE_BEEBOTTEB_ACCESS_KEY
* NODE_BEEBOTTEB_SECRET_KEYOnce you have a valid `envset` file, to run the server:
```
$ envset development -- ./bin/www
```If you have `supervisor` installed:
```terminal
$ envset development -- supervisor ./bin/www
```If not you can install it by issuing the following command:
```terminal
$ npm i -g supervisor
```#### Tests
To run mocha tests:
```terminal
$ ./node_modules/mocha/bin/mocha tests/* -G -w
```TODO:
- Check `swig` template engine.Estimote UUID:
uuid: B9407F30-F5F8-466E-AFF9-25556B57FE6D
major: Location
minor: Sublocation
region: <= we have a location, devices places in one location can be members of multiple regions.Flow:
- Device needs to be registered. APIKEY+TOKEN, will get an UUID if not present. Will get a configuration object, with initial device setup.
- Device sends live updates.
- Device gets live updates.* Auth
* Set value of deviceData Models:
Location:
- Region
- Building
- Floor
- Unit (Office, House, Apartment)
- RoomEntities:
- Device (RPi, Arduino)
- Sensor
- Actuator (light, led, speaker)
- Commander (button)Actions:
- Scene
- Command
- Action
- EventSupport:
- ConfigurationHumans:
- User
- Employee
- Guest
- Visitor[pir-sensors]:https://github.com/goliatone/rpi-pir-sensor
[envset]:https://github.com/goliatone/envset
[slv]:https://github.com/goliatone/slv