MQTT smart home web interface
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Thomas Buck 2288cd95ed implement living room switches. load last tab on page refresh. 2 anos atrás
lights implement living room switches. load last tab on page refresh. 2 anos atrás
.gitignore add sensors, credentials.js file 2 anos atrás
README.md implement living room switches. load last tab on page refresh. 2 anos atrás
localtest.py initial commit 2 anos atrás
uploadlocal.sh tweak layout 2 anos atrás

README.md

Lights Web

Simple Bootstrap webinterface to control room lights via MQTT.

Getting Started

To set up the MQTT broker credentials, run the following commands:

echo "const mqttUsername = 'MQTT_USERNAME'" > lights/credentials.js
echo "const mqttPassword = 'MQTT_PASSWORD'" >> lights/credentials.js
echo "const mqttUrl = 'wss://MQTT_HOST:MQTT_PORT'" >> lights/credentials.js

Then run localtest.py and open http://localhost:8080 to access local test instance.

Sources