$ npm install aframe-smart-home
$ cd node_modules/aframe-smart-home/
$ npm install && npm start
$ curl http://localhost:8888/
{ "id": "urn:dev:ops:smarthome-1234", (...)
"properties": {
"level": {
"description": "Solar sensor level",
"links": [ {
"rel": "property",
"href": "/properties/level" (...)
$ curl http://localhost:8888/properties
{"level":42}
$ cd aframe-smart-home/aframe
$ npm install && PORT=42080 npm start
$ x-www-browser http://localhost:42080/aframe/
// Register "solor" components, handler:
// When WoT "level" updates change color (DOM)
<script src="...">
<a-asset-item id="house"
src="../assets/smart-home/smart-home.glb" >
<a-entity solar=""
gltf-part="src: #house; part: solar"
webthing="properties:solar; url:https://localhost:8888;">
Created by Philippe Coval