Skip to content

Commit

Permalink
Mozilla Thing Descriptions for 2nd WoT Workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed May 29, 2019
1 parent 6a6ccca commit ec2981b
Show file tree
Hide file tree
Showing 25 changed files with 1,813 additions and 0 deletions.
78 changes: 78 additions & 0 deletions workshop/ws2/demos-2019-Munich/TDs/Mozilla/Aeotec-SmartPlug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"name":"Aeotec Switch 6",
"@context":"https://iot.mozilla.org/schemas",
"@type":[
"OnOffSwitch",
"MultiLevelSwitch",
"SmartPlug",
"EnergyMonitor"
],
"description":"",
"href":"/things/zwave-fe6d9b0b-8",
"properties":{
"on":{
"title":"On/Off",
"type":"boolean",
"@type":"OnOffProperty",
"links":[
{
"rel":"property",
"href":"/things/zwave-fe6d9b0b-8/properties/on"
}
]
},
"instantaneousPower":{
"title":"Power",
"type":"number",
"@type":"InstantaneousPowerProperty",
"unit":"watt",
"links":[
{
"rel":"property",
"href":"/things/zwave-fe6d9b0b-8/properties/instantaneousPower"
}
]
},
"voltage":{
"title":"Voltage",
"type":"number",
"@type":"VoltageProperty",
"unit":"volt",
"links":[
{
"rel":"property",
"href":"/things/zwave-fe6d9b0b-8/properties/voltage"
}
]
}
},
"actions":{

},
"events":{

},
"links":[
{
"rel":"properties",
"href":"/things/zwave-fe6d9b0b-8/properties"
},
{
"rel":"actions",
"href":"/things/zwave-fe6d9b0b-8/actions"
},
{
"rel":"events",
"href":"/things/zwave-fe6d9b0b-8/events"
},
{
"rel":"alternate",
"mediaType":"text/html",
"href":"/things/zwave-fe6d9b0b-8"
},
{
"rel":"alternate",
"href":"wss://tola.mozilla-iot.org/things/zwave-fe6d9b0b-8"
}
]
}
75 changes: 75 additions & 0 deletions workshop/ws2/demos-2019-Munich/TDs/Mozilla/Foscam-VideoCamera.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"name":"Foscam R2",
"@context":"https://iot.mozilla.org/schemas",
"@type":[
"VideoCamera",
"Camera"
],
"description":"FOSCAM R2 V5",
"href":"/things/onvif-00626E925C7F",
"properties":{
"stream":{
"title":"Stream",
"type":"null",
"@type":"VideoProperty",
"readOnly":true,
"links":[
{
"rel":"alternate",
"href":"/media/onvif/onvif-00626E925C7F/index.mpd",
"mediaType":"application/dash+xml"
},
{
"rel":"property",
"href":"/things/onvif-00626E925C7F/properties/stream"
}
]
},
"snapshot":{
"title":"Snapshot",
"type":"null",
"@type":"ImageProperty",
"readOnly":true,
"links":[
{
"rel":"alternate",
"href":"/media/onvif/onvif-00626E925C7F/snapshot.jpg",
"mediaType":"image/jpeg"
},
{
"rel":"property",
"href":"/things/onvif-00626E925C7F/properties/snapshot"
}
]
}
},
"actions":{

},
"events":{

},
"links":[
{
"rel":"properties",
"href":"/things/onvif-00626E925C7F/properties"
},
{
"rel":"actions",
"href":"/things/onvif-00626E925C7F/actions"
},
{
"rel":"events",
"href":"/things/onvif-00626E925C7F/events"
},
{
"rel":"alternate",
"mediaType":"text/html",
"href":"/things/onvif-00626E925C7F"
},
{
"rel":"alternate",
"href":"wss://w3c-interop.mozilla-iot.org/things/onvif-00626E925C7F"
}
]
}
64 changes: 64 additions & 0 deletions workshop/ws2/demos-2019-Munich/TDs/Mozilla/IKEA-Light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name":"IKEA TRÅDFRI LED Bulb",
"@context":"https://iot.mozilla.org/schemas",
"@type":[
"Light",
"ColorControl",
"OnOffSwitch"
],
"description":"",
"href":"/things/zb-d0cf5efffe1cb0bb",
"properties":{
"color":{
"title":"Color",
"type":"string",
"@type":"ColorProperty",
"links":[
{
"rel":"property",
"href":"/things/zb-d0cf5efffe1cb0bb/properties/color"
}
]
},
"on":{
"title":"On/Off",
"type":"boolean",
"@type":"OnOffProperty",
"links":[
{
"rel":"property",
"href":"/things/zb-d0cf5efffe1cb0bb/properties/on"
}
]
}
},
"actions":{

},
"events":{

},
"links":[
{
"rel":"properties",
"href":"/things/zb-d0cf5efffe1cb0bb/properties"
},
{
"rel":"actions",
"href":"/things/zb-d0cf5efffe1cb0bb/actions"
},
{
"rel":"events",
"href":"/things/zb-d0cf5efffe1cb0bb/events"
},
{
"rel":"alternate",
"mediaType":"text/html",
"href":"/things/zb-d0cf5efffe1cb0bb"
},
{
"rel":"alternate",
"href":"wss://w3c-workshop.mozilla-iot.org/things/zb-d0cf5efffe1cb0bb"
}
]
}
64 changes: 64 additions & 0 deletions workshop/ws2/demos-2019-Munich/TDs/Mozilla/PhilipsHue-Light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name":"Philips Hue Bulb",
"@context":"https://iot.mozilla.org/schemas",
"@type":[
"OnOffSwitch",
"Light",
"ColorControl"
],
"description":"",
"href":"/things/philips-hue-001788fffe4f2113-2",
"properties":{
"on":{
"title":"On/Off",
"type":"boolean",
"@type":"OnOffProperty",
"links":[
{
"rel":"property",
"href":"/things/philips-hue-001788fffe4f2113-2/properties/on"
}
]
},
"color":{
"title":"Color",
"type":"string",
"@type":"ColorProperty",
"links":[
{
"rel":"property",
"href":"/things/philips-hue-001788fffe4f2113-2/properties/color"
}
]
}
},
"actions":{

},
"events":{

},
"links":[
{
"rel":"properties",
"href":"/things/philips-hue-001788fffe4f2113-2/properties"
},
{
"rel":"actions",
"href":"/things/philips-hue-001788fffe4f2113-2/actions"
},
{
"rel":"events",
"href":"/things/philips-hue-001788fffe4f2113-2/events"
},
{
"rel":"alternate",
"mediaType":"text/html",
"href":"/things/philips-hue-001788fffe4f2113-2"
},
{
"rel":"alternate",
"href":"wss://w3c-workshop.mozilla-iot.org/things/philips-hue-001788fffe4f2113-2"
}
]
}
21 changes: 21 additions & 0 deletions workshop/ws2/demos-2019-Munich/TDs/Mozilla/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Mozilla WebThings Demo

A mixture of virtual and physical devices will be demonstrated, implementing Mozilla's unofficial [Web Thing API](https://iot.mozilla.org/wot/) specification and the following schemas from Mozilla's [WoT Capability Schemas](https://iot.mozilla.org/schemas/) repository:

* OnOffSwitch
* MultiLevelSwitch
* BinarySensor
* MultiLevelSensor
* SmartPlug
* Light
* MotionSensor
* TemperatureSensor
* LeakSensor
* PushButton
* Camera
* VideoCamera
* Alarm
* ColorControl
* EnergyMonitor

**Note:** Mozilla's Web Thing API specification has some remaining differences with the latest W3C draft of the WoT Thing Description specification. These Thing Descriptions will therefore not currently validate using the ThingWeb Thing Description Playground.
Loading

0 comments on commit ec2981b

Please sign in to comment.