dreemgl
Version:
DreemGL is an open-source multi-screen prototyping framework for mediated environments, with a visual editor and shader styling for webGL and DALi runtimes written in JavaScript. As a toolkit for gpu-accelerated multiscreen development, DreemGL includes
54 lines (32 loc) • 2.23 kB
Markdown
# IOT
## Setup
### Install Node Modules
Be sure to run `npm install` in the IOT component directory:
cd ./classes/iot
npm install
./node_modules/homestar/bin/homestar setup
**Windows Notes**:
- You will need to specify homestar commands like this: `node ./node_modules/homestar/bin/homestar setup`
- The symbolic link at the top of the dreemgl tree (called .iotdb) must be manually created. From the top of the repository, running as an Administrator:
- `erase .iotdb`
- `mklink /d .iotdb .\classes\iot\.iotdb`
### Pair to IOT devices
Dreemgl makes it easy to pair to many different kinds of IOT devices. We've tested pairing to Philips Hue and Samsung Smart Things hubs, but many more should work including https://github.com/dpjanes/homestar-samsung-smart-tv, https://github.com/dpjanes/homestar-wemo and more. See https://homestar.io/about/things for more details on pairing a specific device.
#### Philips Hue
./node_modules/homestar/bin/homestar install homestar-hue
./node_modules/homestar/bin/homestar configure homestar-hue
Follow the prompts. Note that you may need to unplug and plug in the ethernet port on your hue, then refresh your browser to see the 'Pair' button. When finished, hit control-c a few times to get back to the shell.
**Windows Notes**:
- Some dependencies can fail because of issues with `node-gyp`.
- You will need to have .NET Framework 4.5.1 installed (Windows 7)
- If you have multiple versions of Python installed, you can specify the version to use by:
`npm config set python python2.7`
- The Visual Studio C++ compiler is needed. If you have multiple versions installed you can specify the version by:
`npm config set msvs_version 2015 --global`
#### Smart Things
./node_modules/homestar/bin/homestar install homestar-smartthings
./node_modules/homestar/bin/homestar configure homestar-smartthings
Follow the prompts, it's a lengthy process. When finished, hit control-c a few times to get back to the shell.
## Running
You should be ready to roll. Start up your dreemgl server and try out some examples!
http://localhost:2000/examples/components/iot/ should show a listing of all connected IOT devices.