diff --git a/wled00/data/settings_sync.htm b/wled00/data/settings_sync.htm index f1246747..0ff2fe9c 100644 --- a/wled00/data/settings_sync.htm +++ b/wled00/data/settings_sync.htm @@ -11,6 +11,16 @@ { return d.getElementById(s); } + + function hideALEXA(){gId("aleOnOff").style.display="none";} + function hideNoALEXA(){gId("aleOnOff2").style.display="none";} + function hideBLYNK(){gId("blyOnOff").style.display="none";} + function hideNoBLYNK(){gId("blyOnOff2").style.display="none";} + function hideMQTT(){gId("mqtOnOff").style.display="none";} + function hideNoMQTT(){gId("mqtOnOff2").style.display="none";} + function hideHUE(){gId("hueOnOff").style.display="none";} + function hideNoHUE(){gId("hueOnOff2").style.display="none";} + function H(){window.open("https://kno.wled.ge/interfaces/udp-notifier/");} function B(){window.open("/settings","_self");} function adj(){if (d.Sf.DI.value == 6454) {if (d.Sf.EU.value == 1) d.Sf.EU.value = 0;} @@ -164,19 +174,33 @@ Force max brightness:
Disable realtime gamma correction:
Realtime LED offset:

Alexa Voice Assistant

+
+ This firmware build does not include Alexa support.
+
+
Emulate Alexa device:
Alexa invocation name:
Also emulate devices to call the first presets +

Blynk

+
+ This firmware build does not include Blynk support.
+
Blynk, MQTT and Hue sync all connect to external hosts!
This may impact the responsiveness of the ESP8266.

For best results, only use one of these services at a time.
(alternatively, connect a second ESP to them and use the UDP sync)

+
Host: Port:
Device Auth token:
Clear the token field to disable. Setup info +

MQTT

+
+ This firmware build does not include MQTT support.
+
+
Enable MQTT:
Broker: Port:
@@ -189,7 +213,12 @@ Device Topic:
Group Topic:
Publish on button press:
Reboot required to apply changes. MQTT info +

Philips Hue

+
+ This firmware build does not include Philips Hue support.
+
+
You can find the bridge IP and the light number in the 'About' section of the hue app.
Poll Hue light every ms:
Then, receive On/Off, Brightness, and Color
@@ -200,6 +229,7 @@ Hue Bridge IP:

Press the pushlink button on the bridge, after that save this page!
(when first connecting)
+
Hue status: Disabled in this build

Serial

Baud rate: diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 8a85a754..1616dc8f 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -510,10 +510,18 @@ void getSettingsJS(byte subPage, char* dest) sappends('s',SET_F("AI"),alexaInvocationName); sappend('c',SET_F("SA"),notifyAlexa); sappend('v',SET_F("AP"),alexaNumPresets); + #ifndef WLED_DISABLE_ALEXA + oappend(SET_F("hideNoALEXA();")); // hide "not compiled in" message + #else + oappend(SET_F("hideALEXA();")); // hide Alexa settings if not compiled in + #endif sappends('s',SET_F("BK"),(char*)((blynkEnabled)?SET_F("Hidden"):"")); #ifndef WLED_DISABLE_BLYNK sappends('s',SET_F("BH"),blynkHost); sappend('v',SET_F("BP"),blynkPort); + oappend(SET_F("hideNoBLYNK();")); // hide "not compiled in" message + #else + oappend(SET_F("hideBLYNK();")); // hide BLYNK settings if not compiled in #endif #ifdef WLED_ENABLE_MQTT @@ -530,6 +538,9 @@ void getSettingsJS(byte subPage, char* dest) sappends('s',"MD",mqttDeviceTopic); sappends('s',SET_F("MG"),mqttGroupTopic); sappend('c',SET_F("BM"),buttonPublishMqtt); + oappend(SET_F("hideNoMQTT();")); // hide "not compiled in" message + #else + oappend(SET_F("hideMQTT();")); // hide MQTT settings if not compiled in #endif #ifndef WLED_DISABLE_HUESYNC @@ -557,6 +568,9 @@ void getSettingsJS(byte subPage, char* dest) } sappends('m',SET_F("(\"sip\")[0]"),hueErrorString); + oappend(SET_F("hideNoHUE();")); // hide "not compiled in" message + #else + oappend(SET_F("hideHUE();")); // hide Hue Sync settings if not compiled in #endif sappend('v',SET_F("BD"),serialBaud); }