Highly configurable MQTT map interface
Find a file
2017-09-17 21:29:10 +02:00
icons No longer do requests to google for privacy reasons 2017-09-17 14:33:26 +02:00
src Add door status 2017-09-17 21:10:03 +02:00
types Add colors that show the current state 2017-09-17 18:46:07 +02:00
.babelrc Introduce DropDowns... 2017-09-17 04:13:31 +02:00
.flowconfig Something with missing files and missing labels 2017-09-17 05:49:06 +02:00
index.html No longer do requests to google for privacy reasons 2017-09-17 14:33:26 +02:00
package.json First commit 2017-09-12 19:17:33 +02:00
README.md Format fix 2017-09-17 21:29:10 +02:00
rzl.svg First commit 2017-09-12 19:17:33 +02:00
webpack.config.js First commit 2017-09-12 19:17:33 +02:00
yarn.lock First commit 2017-09-12 19:17:33 +02:00

RZL Map

How to set up

  1. run yarn to install all dependencies.
  2. run yarn build to compile everything
  3. open the index.html
  4. ???
  5. 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