WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

Support `ImageProperty` and `VideoProperty` properties using `forms` #3091

Open benfrancis opened 1 year ago

benfrancis commented 1 year ago

For W3C compliance Thing Descriptions now use forms instead of links for properties, actions and events.

Historically, instances of ImageProperty and VideoProperty would provide a link with rel: 'alternate' and mediaType: 'image/jpg' which a client would use to fetch binary files to display on the screen.

The front end may need updating to use forms instead of links to fetch these resources. Currently the Virtual Things Adapter is still providing links, but I think displaying them may be broken on master. Other add-ons may do the same.

See also: