Skip to content

Commit 949373d

Browse files
committed
Add usermod help links for AR, 4LD and weather
Other usermods: void appendConfigData() { ... oappend(SET_F("addInfo('<modname>:help',0,'<a href=\"https:// \">Help</a>');")); ... }
1 parent 5ec98c4 commit 949373d

File tree

9 files changed

+343
-345
lines changed

9 files changed

+343
-345
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wled",
3-
"version": "0.14.0.11",
3+
"version": "0.14.0.12",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

usermods/audioreactive/audio_reactive.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ class AudioReactive : public Usermod {
20472047
oappend(SET_F("addOption(dd,'Off',0);"));
20482048
oappend(SET_F("addOption(dd,'Send',1);"));
20492049
oappend(SET_F("addOption(dd,'Receive',2);"));
2050+
oappend(SET_F("addInfo('AudioReactive:help',0,'<a href=\"https://moonmodules.github.io/WLED-Docs/soundreactive/Sound-Settings\">Help</a>');")); // 0 is field type, 1 is actual field
20502051
oappend(SET_F("addInfo('AudioReactive:digitalmic:type',1,'<i>requires reboot!</i>');")); // 0 is field type, 1 is actual field
20512052
#ifdef I2S_SDPIN
20522053
oappend(SET_F("addInfo('AudioReactive:digitalmic:pin[]',0,'<i>sd/data/dout, &#9100; ")); oappendi(I2S_SDPIN); oappend("</i>','I2S SD');");

usermods/customeffects/usermod_v2_customeffects.h

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ class CustomEffectsUserMod : public Usermod {
124124
*/
125125
void addToJsonInfo(JsonObject& root)
126126
{
127-
JsonObject user = root["u"];
128-
if (user.isNull()) user = root.createNestedObject("u");
129-
130-
JsonArray infoArr = user.createNestedArray(FPSTR(_name));
131-
infoArr.add(errorMessage); //value
132-
// infoArr.add(""); //unit
133127
}
134128

135129

@@ -139,13 +133,13 @@ class CustomEffectsUserMod : public Usermod {
139133
*/
140134
void addToJsonState(JsonObject& root)
141135
{
142-
//root["user0"] = userVar0;
143-
if (!initDone) return; // prevent crash on boot applyPreset()
144-
JsonObject usermod = root[FPSTR(_name)];
145-
if (usermod.isNull()) {
146-
usermod = root.createNestedObject(FPSTR(_name));
147-
}
148-
usermod["on"] = enabled;
136+
// //root["user0"] = userVar0;
137+
// if (!initDone) return; // prevent crash on boot applyPreset()
138+
// JsonObject usermod = root[FPSTR(_name)];
139+
// if (usermod.isNull()) {
140+
// usermod = root.createNestedObject(FPSTR(_name));
141+
// }
142+
// usermod["on"] = enabled;
149143
}
150144

151145

usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ class FourLineDisplayUsermod : public Usermod {
10361036
//}
10371037

10381038
void appendConfigData() {
1039+
oappend(SET_F("addInfo('4LineDisplay:help',0,'<a href=\"https://moonmodules.github.io/WLED-Docs/usermods/four-line-display\">Help</a>');")); // 0 is field type, 1 is actual field
10391040
oappend(SET_F("dd=addDropdown('4LineDisplay','type');"));
10401041
oappend(SET_F("addOption(dd,'None',0);"));
10411042
oappend(SET_F("addOption(dd,'SSD1306',1);"));

usermods/usermod_v2_weather/usermod_v2_weather.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ class WeatherUsermod : public Usermod {
317317

318318
void appendConfigData()
319319
{
320+
oappend(SET_F("addInfo('WeatherUserMod:help',0,'<a href=\"https://moonmodules.github.io/WLED-Docs/moonmodules/weather-usermod\">Help</a>');")); // 0 is field type, 1 is actual field
320321
oappend(SET_F("dd=addDropdown('WeatherUserMod','units');"));
321322
oappend(SET_F("addOption(dd,'Kelvin',0);"));
322323
oappend(SET_F("addOption(dd,'Celcius',1);"));

wled00/data/settings_um.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
const userMod = urlParams.get('um')
216216
for (const [k,o] of Object.entries(umCfg)) {
217217
if (userMod == k) {
218-
urows += `<hr><h3>${k}</h3>`;
218+
urows += `<hr><h3>${k}</h3><div name="${k}:help"></div>`;
219219
addField(k,'unknown',o);
220220
}
221221
}

wled00/html_other.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const char PAGE_dmxmap[] PROGMEM = R"=====()=====";
4444
const uint16_t PAGE_update_length = 602;
4545
const uint8_t PAGE_update[] PROGMEM = {
4646
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x75, 0x53, 0xd1, 0x6e, 0xd3, 0x30,
47-
0x14, 0x7d, 0xcf, 0x57, 0x78, 0x7e, 0x6a, 0x25, 0x66, 0x33, 0xc4, 0x0b, 0x23, 0xc9, 0x50, 0xd9,
47+
0x14, 0x7d, 0xcf, 0x57, 0x78, 0x7e, 0x6a, 0x25, 0x66, 0xc3, 0xc4, 0x0b, 0x23, 0xc9, 0x50, 0xd9,
4848
0x84, 0x90, 0x98, 0x36, 0x69, 0x1b, 0x88, 0x27, 0xe4, 0xc4, 0x37, 0x8d, 0xa9, 0x63, 0x67, 0xf6,
4949
0x4d, 0xab, 0x0a, 0xed, 0xdf, 0xb9, 0x76, 0xda, 0x81, 0x34, 0x78, 0x89, 0xea, 0xf8, 0xdc, 0x93,
5050
0x73, 0xcf, 0x39, 0x2d, 0x4f, 0x2e, 0x6f, 0x3e, 0xde, 0x7f, 0xbf, 0xbd, 0x62, 0x3d, 0x0e, 0xb6,
@@ -60,13 +60,13 @@ const uint8_t PAGE_update[] PROGMEM = {
6060
0xda, 0x8a, 0xcb, 0x08, 0x88, 0xc6, 0xad, 0xa3, 0x8c, 0xe2, 0x67, 0xbc, 0x18, 0xab, 0x77, 0x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0x94, 0x49, 0xef, 0x69, 0xf6, 0xf6, 0xe6, 0xee, 0x9e, 0x33, 0x95, 0x6d, 0x22, 0x91,
66+
0x53, 0xc6, 0x71, 0x66, 0xe8, 0x8a, 0x7c, 0x61, 0x05, 0x90, 0x83, 0xfb, 0x91, 0xc2, 0x19, 0x26,
67+
0x8b, 0x66, 0x54, 0x01, 0x65, 0x9a, 0x3f, 0x25, 0x98, 0xe2, 0xa4, 0x20, 0x4e, 0xcd, 0x60, 0x28,
68+
0xd5, 0x87, 0x2c, 0x20, 0x8e, 0xca, 0xb1, 0xd6, 0xaa, 0x18, 0x2b, 0x1e, 0xcd, 0xc8, 0xeb, 0xd7,
69+
0xe2, 0xcd, 0x5b, 0x41, 0x8f, 0x33, 0x5a, 0x80, 0xee, 0x28, 0xd8, 0x26, 0xd4, 0x97, 0x7e, 0x97,
7070
0x95, 0x33, 0xec, 0x81, 0x59, 0xfa, 0x5e, 0x44, 0x16, 0xc0, 0x82, 0x8a, 0x70, 0xce, 0x4a, 0xc5,
7171
0x8a, 0x3e, 0x40, 0x57, 0xf1, 0x1e, 0x71, 0x8c, 0xe7, 0x52, 0xae, 0x0d, 0xf6, 0x53, 0x23, 0x5a,
7272
0x3f, 0xc8, 0xc3, 0x72, 0x93, 0x85, 0x28, 0xd3, 0x82, 0xf2, 0x30, 0x16, 0x39, 0x43, 0x15, 0x28,
@@ -80,7 +80,7 @@ const uint8_t PAGE_update[] PROGMEM = {
8080
0x5d, 0xea, 0x27, 0xd1, 0xd4, 0x99, 0x9d, 0x4a, 0x27, 0x84, 0x20, 0x70, 0x26, 0xbf, 0xcd, 0xdb,
8181
0x32, 0xed, 0x99, 0xf3, 0x48, 0x59, 0x79, 0x3a, 0xf8, 0x40, 0x5a, 0xbb, 0x00, 0xb1, 0xcf, 0x91,
8282
0x8c, 0x6a, 0x0d, 0xec, 0x7c, 0x59, 0x4a, 0xe2, 0x4b, 0xeb, 0xa6, 0xb2, 0xa5, 0xe6, 0xa5, 0xbf,
83-
0xf4, 0x6f, 0x9c, 0xb1, 0xcb, 0xd7, 0xe8, 0x03, 0x00, 0x00
83+
0xf4, 0x6f, 0xa1, 0xaf, 0xa7, 0xdc, 0xe8, 0x03, 0x00, 0x00
8484
};
8585

8686

0 commit comments

Comments
 (0)