git clone https://github.com/WebThingsIo/webthing-node
cd webthing-node && node install
node example/simplest-thing.js
$ curl -s http://localhost:8888/
{ ...
"@context": "https://iot.mozilla.org/schemas",
"@type": ["OnOffSwitch"] // capability
"properties": {
"on": { ...
"type": "boolean",
$ curl -s http://localhost:8888/properties/on
{"on":true}
$ curl -H "Content-Type: application/json" \
-X PUT --data '{"on":false}' \
http://localhost:8888/properties/on
Created by Philippe Coval