mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
add device name var dvnm
This commit is contained in:
parent
b7eab415ff
commit
e9998f0ce0
@ -1913,6 +1913,10 @@ chknext:
|
|||||||
fvar = RtcTime.day_of_month;
|
fvar = RtcTime.day_of_month;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
if (!strncmp(vname, "dvnm", 4)) {
|
||||||
|
if (sp) strlcpy(sp, SettingsText(SET_DEVICENAME), glob_script_mem.max_ssize);
|
||||||
|
goto strexit;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
if (!strncmp(vname, "epoch", 5)) {
|
if (!strncmp(vname, "epoch", 5)) {
|
||||||
@ -2367,6 +2371,7 @@ chknext:
|
|||||||
goto strexit;
|
goto strexit;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'g':
|
case 'g':
|
||||||
if (!strncmp(vname, "gtmp", 4)) {
|
if (!strncmp(vname, "gtmp", 4)) {
|
||||||
fvar = TasmotaGlobal.temperature_celsius;
|
fvar = TasmotaGlobal.temperature_celsius;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user