Highly configurable MQTT map interface
| icons | ||
| src | ||
| types | ||
| .babelrc | ||
| .flowconfig | ||
| index.html | ||
| package.json | ||
| README.md | ||
| rzl.svg | ||
| webpack.config.js | ||
| yarn.lock | ||
RZL Map
How to set up
- run
yarnto install all dependencies. - run
yarn buildto compile everything - open the
index.html - ???
- profit
Config
See src/config.js.
The Config format consists out of two sections. Topics and Controls.
Topics
The topics section defines the mqtt interfaces.
Controls
The Controls define the UI Controls.
| Name | Type | Optional? | Default |
|---|---|---|---|
| type | "toggle" | "dropDown" | "slider" | No | |
| text | string | No | |
| topic | string | No | |
| enableCondition | string => boolean | Yes | () => true |
| Toggle Options | |||
| on | string | Yes | "on" |
| off | string | Yes | "off" |
| toggled | string => boolean | Yes | x => x == "off" |
| DropDown Options | |||
| options | Map<string,*> | Yes | {} |
| Slider Options | |||
| min | number | Yes | 0 |
| max | number | Yes | 1 |
| step | number | Yes | 1 |