Skip to content

Commit

Permalink
Merge pull request #143 from relu91/unibo
Browse files Browse the repository at this point in the history
Add webthings generated tds
  • Loading branch information
mmccool committed Jun 11, 2021
2 parents 607320b + eddd794 commit 41d11d4
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 1 deletion.
85 changes: 85 additions & 0 deletions events/2021.06.Online/TD/TDs/Webthingsio/colorlight.td.jsonld
@@ -0,0 +1,85 @@
{
"title": "Virtual On/Off Color Light",
"@context": [
"http://www.w3.org/ns/td"
],
"@type": [
"OnOffSwitch",
"Light",
"ColorControl"
],
"description": "",
"href": "/things/virtual-things-0",
"properties": {
"on": {
"name": "on",
"value": false,
"title": "On/Off",
"type": "boolean",
"@type": "OnOffProperty",
"forms": [
{
"href": "/things/virtual-things-0/properties/on"
}
]
},
"color": {
"name": "color",
"value": "#ffffff",
"title": "Color",
"type": "string",
"@type": "ColorProperty",
"readOnly": false,
"forms": [
{
"href": "/things/virtual-things-0/properties/color"
}
]
}
},
"actions": {},
"events": {},
"links": [
{
"rel": "properties",
"href": "/things/virtual-things-0/properties"
},
{
"rel": "actions",
"href": "/things/virtual-things-0/actions"
},
{
"rel": "events",
"href": "/things/virtual-things-0/events"
},
{
"rel": "alternate",
"mediaType": "text/html",
"href": "/things/virtual-things-0"
},
{
"rel": "alternate",
"href": "ws://localhost:8080/things/virtual-things-0"
}
],
"layoutIndex": 0,
"selectedCapability": "Light",
"iconHref": null,
"id": "http://localhost:8080/things/virtual-things-0",
"base": "http://localhost:8080/",
"securityDefinitions": {
"oauth2_sc": {
"scheme": "oauth2",
"flow": "code",
"authorization": "http://localhost:8080/oauth/authorize",
"token": "http://localhost:8080/oauth/token",
"scopes": [
"/things/virtual-things-0:readwrite",
"/things/virtual-things-0",
"/things:readwrite",
"/things"
]
}
},
"security": "oauth2_sc"
}
73 changes: 73 additions & 0 deletions events/2021.06.Online/TD/TDs/Webthingsio/pressure.td.jsonld
@@ -0,0 +1,73 @@
{
"title": "Virtual Barometric Pressure Sensor",
"@context": [
"http://www.w3.org/ns/td"
],
"@type": [
"BarometricPressureSensor"
],
"description": "",
"href": "/things/virtual-things-29",
"properties": {
"pressure": {
"name": "pressure",
"value": 20,
"title": "Pressure",
"type": "number",
"@type": "BarometricPressureProperty",
"unit": "hectopascal",
"minimum": 0,
"readOnly": true,
"forms": [
{
"href": "/things/virtual-things-29/properties/pressure"
}
]
}
},
"actions": {},
"events": {},
"links": [
{
"rel": "properties",
"href": "/things/virtual-things-29/properties"
},
{
"rel": "actions",
"href": "/things/virtual-things-29/actions"
},
{
"rel": "events",
"href": "/things/virtual-things-29/events"
},
{
"rel": "alternate",
"mediaType": "text/html",
"href": "/things/virtual-things-29"
},
{
"rel": "alternate",
"href": "ws://localhost:8080/things/virtual-things-29"
}
],
"layoutIndex": 1,
"selectedCapability": "BarometricPressureSensor",
"iconHref": null,
"id": "http://localhost:8080/things/virtual-things-29",
"base": "http://localhost:8080/",
"securityDefinitions": {
"oauth2_sc": {
"scheme": "oauth2",
"flow": "code",
"authorization": "http://localhost:8080/oauth/authorize",
"token": "http://localhost:8080/oauth/token",
"scopes": [
"/things/virtual-things-29:readwrite",
"/things/virtual-things-29",
"/things:readwrite",
"/things"
]
}
},
"security": "oauth2_sc"
}
4 changes: 3 additions & 1 deletion events/2021.06.Online/TD/TDs/active.csv
Expand Up @@ -20,4 +20,6 @@
"UNIBO", "gateway", "no", "An example of a gateway annotated with sosa" "node-wot"
"UNIBO", "gateway_control", "no", "The gateway control interface" "node-wot"
"UNIBO", "imu_sensor", "no", "An example of an imu sensor annotated with sosa" "node-wot"
"UNIBO", "imu_control", "no", "The imu sensor control interface" "node-wot"
"UNIBO", "imu_control", "no", "The imu sensor control interface" "node-wot"
"Webthingsio", "pressure", "no", "Virtual Barometric Pressure Sensor" "webthings-gateway"
"Webthingsio", "colorlight", "no", "Virtual On/Off Color Light" "webthings-gateway"

0 comments on commit 41d11d4

Please sign in to comment.