iot.schema.org interactions implemented as Node-RED Nodes.
- Install Node-RED:
sudo npm install -g --unsafe-perm node-red
- Install iot.schema.org Node-RED Nodes:
cd $NODE_RED_HOME
- Install adaptor Node-RED Nodes:
npm install iotschema-node-red/nodes/adaptors/*
- Install Node-RED Nodes to run the Temperature Control example:
npm install iotschema-node-red/nodes/examples/*
npm install node-red-contrib-coap
This flow (Recipe) controls ambient air temperature, by using iot.schema.org TemperatureSensing and Thermostat Capabilities.
- Start Node-RED:
node-red
- Copy the content of TemperatureControl.json from:
cd iotschema-node-red/lib/examples/
to your clipboard
- Open Node-RED in Browser and import the flow:
Open <http://localhost:1880>
Menu > Import > Clipboard
- Deploy the flow, and see the result in system console.
For details about the running example, see the documentation.