From fb5c057f942ecdbc5a495d421d7ed13d3d3a2dc7 Mon Sep 17 00:00:00 2001 From: Ewoud Date: Wed, 21 Dec 2022 13:16:55 +0100 Subject: [PATCH] More usermod help --- usermods/Animated_Staircase/Animated_Staircase.h | 2 ++ usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h | 2 ++ usermods/audioreactive/audio_reactive.h | 1 + usermods/boblight/boblight.h | 2 ++ .../usermod_v2_four_line_display_ALT.h | 2 +- usermods/usermod_v2_weather/usermod_v2_weather.h | 3 ++- 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/usermods/Animated_Staircase/Animated_Staircase.h b/usermods/Animated_Staircase/Animated_Staircase.h index 1ef2c959..f3d6de83 100644 --- a/usermods/Animated_Staircase/Animated_Staircase.h +++ b/usermods/Animated_Staircase/Animated_Staircase.h @@ -414,6 +414,8 @@ class Animated_Staircase : public Usermod { } void appendConfigData() { + oappend(SET_F("addInfo('staircase:help',0,'');")); // 0 is field type, 1 is actual field + //oappend(SET_F("dd=addDropdown('staircase','selectfield');")); //oappend(SET_F("addOption(dd,'1st value',0);")); //oappend(SET_F("addOption(dd,'2nd value',1);")); diff --git a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h index f716e48e..cfb59d85 100644 --- a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h +++ b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h @@ -414,6 +414,8 @@ public: void appendConfigData() { + oappend(SET_F("addInfo('PIRsensorSwitch:help',0,'');")); // 0 is field type, 1 is actual field + oappend(SET_F("addInfo('PIRsensorSwitch:HA-discovery',1,'HA=Home Assistant');")); // 0 is field type, 1 is actual field oappend(SET_F("addInfo('PIRsensorSwitch:notifications',1,'Periodic WS updates');")); // 0 is field type, 1 is actual field } diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index ab36f26c..cf63e355 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1924,6 +1924,7 @@ class AudioReactive : public Usermod { void appendConfigData() { oappend(SET_F("addInfo('AudioReactive:help',0,'');")); // 0 is field type, 1 is actual field + //WLEDMM: add defaults #ifdef AUDIOPIN oappend(SET_F("addInfo('AudioReactive:analogmic:pin',1,'⎌ ")); oappendi(AUDIOPIN); oappend("');"); // 0 is field type, 1 is actual field diff --git a/usermods/boblight/boblight.h b/usermods/boblight/boblight.h index 263d8743..0065bf48 100644 --- a/usermods/boblight/boblight.h +++ b/usermods/boblight/boblight.h @@ -303,6 +303,8 @@ class BobLightUsermod : public Usermod { } void appendConfigData() { + oappend(SET_F("addInfo('BobLight:help',0,'');")); // 0 is field type, 1 is actual field + //oappend(SET_F("dd=addDropdown('usermod','selectfield');")); //oappend(SET_F("addOption(dd,'1st value',0);")); //oappend(SET_F("addOption(dd,'2nd value',1);")); diff --git a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h index 5656da23..abaecc62 100644 --- a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h +++ b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h @@ -1036,7 +1036,7 @@ class FourLineDisplayUsermod : public Usermod { //} void appendConfigData() { - oappend(SET_F("addInfo('4LineDisplay:help',0,'');")); // 0 is field type, 1 is actual field + oappend(SET_F("addInfo('4LineDisplay:help',0,'');")); // 0 is field type, 1 is actual field oappend(SET_F("dd=addDropdown('4LineDisplay','type');")); oappend(SET_F("addOption(dd,'None',0);")); oappend(SET_F("addOption(dd,'SSD1306',1);")); diff --git a/usermods/usermod_v2_weather/usermod_v2_weather.h b/usermods/usermod_v2_weather/usermod_v2_weather.h index b7abe4ef..e5097f6d 100644 --- a/usermods/usermod_v2_weather/usermod_v2_weather.h +++ b/usermods/usermod_v2_weather/usermod_v2_weather.h @@ -317,7 +317,8 @@ class WeatherUsermod : public Usermod { void appendConfigData() { - oappend(SET_F("addInfo('Weather:help',0,'');")); // 0 is field type, 1 is actual field + oappend(SET_F("addInfo('Weather:help',0,'');")); // 0 is field type, 1 is actual field + oappend(SET_F("dd=addDropdown('Weather','units');")); oappend(SET_F("addOption(dd,'Kelvin',0);")); oappend(SET_F("addOption(dd,'Celcius',1);"));