Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from relu91/unibo
Add webthings generated tds
- Loading branch information
Showing
3 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
events/2021.06.Online/TD/TDs/Webthingsio/colorlight.td.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
73
events/2021.06.Online/TD/TDs/Webthingsio/pressure.td.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters