thing-it-device-occupancy-sensor
v0.0.1
Published
[thing-it-node] Device Plugin to demo occupancy management.
Downloads
369
Maintainers
Readme
thing-it-device-occupancy-sensor
[thing-it-node] Device Plugin for a generic Occupancy Sensor. Manufacturers of these sensors may use this as an example to implement a [thing-it-node] Device Plugin for their sensor products.
Installation
Installation of NodeJS and [thing-it-node]
First, install node.js and [thing-it-node] on your Gateway Computer (e.g. Raspberry Pi or C.H.I.P) following the instructions on the [thing-it-node] Wiki.
Initialization and Start of [thing-it-node]
The [thing-it-device-occupancy-sensor] Plugin is installed with [thing-it-node], hence there is no need to install it separately.
The Plugin is simulation-only so far, hence you only have to create a directory in which you intend to run the configuration, e.g.
mkdir ~/occupancy-sensor-test
cd ~/occupancy-sensor-test
and invoke
tin init
and then start [thing-it-node] via
tin run
If you don't want to use Autodiscovery, you may use configurations like the sample configuration via
tin example --device occupancy-sensor
If you want to pair the [thing-it-node] Gateway and its sample configuration with thing-it.com, invoke
tin pair --mesh Test
and enter your thing-it.com account and password. The pairing will allow you to configure and monitor your local Gateway from thing-it.com and use the Mobile App below to connect to the Gateway from everywhere.
Mobile UI
Install the thing-it Mobile App from the Apple Appstore or Google Play and set it up to connect to [thing-it-node] locally as described here or just connect your browser under http://localhost:3001 to check how the Mobile UI would look like.
The following screenshot shows the Node Page of the sample configuration with the Mobile UI to monitor and control the WTG:
Where to go from here ...
You may also be interested in
- Configuring additional Devices, Groups, Services, Event Processing, [Storyboards](https://www.thing-it.com/thing-it/#/documentationPanel/mobileClient/storyboard Configuration) and Jobs via your [thing-it] Mobile App.
- Use thing-it.com to safely connect your Node Box from everywhere, manage complex configurations, store and analyze historical data and offer your configurations to others on the [thing-it] Mesh Market.
- Explore other Device Plugins like Texas Instruments Sensor Tag, Plugwise Smart Switches and many more. For a full set of Device Plugins search for thing-it-device on npm.
- Or write your own Plugins.