Thomas Buck 2288cd95ed implement living room switches. load last tab on page refresh. | пре 2 година | |
---|---|---|
lights | пре 2 година | |
.gitignore | пре 2 година | |
README.md | пре 2 година | |
localtest.py | пре 2 година | |
uploadlocal.sh | пре 2 година |
Simple Bootstrap webinterface to control room lights via MQTT.
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.