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.61k stars 339 forks source link

Custom Thing UI #910

Closed benfrancis closed 6 years ago

benfrancis commented 6 years ago

As a thing developer I want to provide a custom web interface for my webthing so that I can provide a better user experience than the automatically generated default UI

benfrancis commented 6 years ago

UI specification added.

UI mockup below: custom_web_interface

flatsiedatsie commented 5 years ago

I've tried almost all open source controllers, and while the Mozilla Gateway probably ranks highest for usability for beginners (kudos!), the current UX and it's underlying structure may become limiting in the future.

If you want to support many use cases, and want the community to do some of the work. The add-on/plugin architecture should probably allow users to..

mrstegeman commented 5 years ago

@flatsiedatsie

  1. Add-ons can already have continuously running code. For example, the HomeKit adapter is constantly doing Bluetooth scans and communication in the background.
  2. Add-ons can add a custom UI. If they run a web server, they can serve up whatever they want. The UI can be added to the thing by setting its uiHref property.
  3. I assume you mean custom components for the stock UI. This would definitely be useful.
benfrancis commented 5 years ago

Add custom UX (including JS) for creating thing displays. For example, Homegenie allows for gorgeous custom UX elements to be included.

I filed https://github.com/mozilla-iot/gateway/issues/1505 to discuss this.