Add mm.kno.wled.ge
Change https://kno.wled.ge to https://mm.kno.wled.ge Change help to ? button in usermods Change WeatherUserMod to Weather
This commit is contained in:
@@ -317,14 +317,14 @@ class WeatherUsermod : public Usermod {
|
||||
|
||||
void appendConfigData()
|
||||
{
|
||||
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
|
||||
oappend(SET_F("dd=addDropdown('WeatherUserMod','units');"));
|
||||
oappend(SET_F("addInfo('Weather:help',0,'<button onclick=\"location.href="https://mm.kno.wled.ge/moonmodules/weather-usermod"\" type=\"button\">?</button>');")); // 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);"));
|
||||
oappend(SET_F("addOption(dd,'Fahrenheit',2);"));
|
||||
oappend(SET_F("addInfo('WeatherUserMod:units',1,'<i>Set time and location in time settings</i>');"));
|
||||
oappend(SET_F("addInfo('WeatherUserMod:apiKey',1,'<i>Create acount on openweathermap.org and copy the key</i>');"));
|
||||
oappend(SET_F("addInfo('WeatherUserMod:minTemp',1,'<i>Changing values: Reboot to (re)load forecast</i>');"));
|
||||
oappend(SET_F("addInfo('Weather:units',1,'<i>Set time and location in time settings</i>');"));
|
||||
oappend(SET_F("addInfo('Weather:apiKey',1,'<i>Create acount on openweathermap.org and copy the key</i>');"));
|
||||
oappend(SET_F("addInfo('Weather:minTemp',1,'<i>Changing values: Reboot to (re)load forecast</i>');"));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -349,7 +349,7 @@ class WeatherUsermod : public Usermod {
|
||||
};
|
||||
|
||||
// strings to reduce flash memory usage (used more than twice)
|
||||
const char WeatherUsermod::_name[] PROGMEM = "WeatherUserMod";
|
||||
const char WeatherUsermod::_name[] PROGMEM = "Weather";
|
||||
|
||||
// example openweathermap data
|
||||
// {"cod":"200","message":0,"cnt":40,"list":[
|
||||
|
||||
Reference in New Issue
Block a user