mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-26 06:02:14 +01:00
update cardThermo gen script (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
fb27e62033
commit
d906cb03ac
@@ -1345,6 +1345,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -2249,6 +2249,28 @@ Timer tmSerial
|
||||
vis bText1,0
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp1.bco2=27501
|
||||
tsw bUp1,0
|
||||
}else
|
||||
{
|
||||
bUp1.bco2=14823
|
||||
tsw bUp1,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown1.bco2=27501
|
||||
tsw bDown1,0
|
||||
}else
|
||||
{
|
||||
bDown1.bco2=14823
|
||||
tsw bDown1,1
|
||||
}
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
@@ -2371,6 +2393,28 @@ Timer tmSerial
|
||||
vis bText2,0
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp2.bco2=27501
|
||||
tsw bUp2,0
|
||||
}else
|
||||
{
|
||||
bUp2.bco2=14823
|
||||
tsw bUp2,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown2.bco2=27501
|
||||
tsw bDown2,0
|
||||
}else
|
||||
{
|
||||
bDown2.bco2=14823
|
||||
tsw bDown2,1
|
||||
}
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
@@ -2493,6 +2537,28 @@ Timer tmSerial
|
||||
vis bText3,0
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp3.bco2=27501
|
||||
tsw bUp3,0
|
||||
}else
|
||||
{
|
||||
bUp3.bco2=14823
|
||||
tsw bUp3,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown3.bco2=27501
|
||||
tsw bDown3,0
|
||||
}else
|
||||
{
|
||||
bDown3.bco2=14823
|
||||
tsw bDown3,1
|
||||
}
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
@@ -2615,6 +2681,28 @@ Timer tmSerial
|
||||
vis bText4,0
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp4.bco2=27501
|
||||
tsw bUp4,0
|
||||
}else
|
||||
{
|
||||
bUp4.bco2=14823
|
||||
tsw bUp4,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown4.bco2=27501
|
||||
tsw bDown4,0
|
||||
}else
|
||||
{
|
||||
bDown4.bco2=14823
|
||||
tsw bDown4,1
|
||||
}
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
@@ -2755,6 +2843,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1333,6 +1333,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1189,6 +1189,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -829,6 +829,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -1973,6 +1973,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -10,53 +10,53 @@ pageTest
|
||||
14 Component(s)
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
popupNotify
|
||||
17 Component(s)
|
||||
196 Line(s) of event code
|
||||
123 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
150 Line(s) of event code
|
||||
113 Unique line(s) of event code
|
||||
cardQR
|
||||
28 Component(s)
|
||||
247 Line(s) of event code
|
||||
137 Unique line(s) of event code
|
||||
cardMedia
|
||||
33 Component(s)
|
||||
346 Line(s) of event code
|
||||
177 Unique line(s) of event code
|
||||
screensaver
|
||||
35 Component(s)
|
||||
292 Line(s) of event code
|
||||
235 Unique line(s) of event code
|
||||
popupShutter
|
||||
20 Component(s)
|
||||
193 Line(s) of event code
|
||||
109 Unique line(s) of event code
|
||||
197 Line(s) of event code
|
||||
111 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
154 Line(s) of event code
|
||||
115 Unique line(s) of event code
|
||||
cardMedia
|
||||
33 Component(s)
|
||||
350 Line(s) of event code
|
||||
179 Unique line(s) of event code
|
||||
popupNotify
|
||||
17 Component(s)
|
||||
200 Line(s) of event code
|
||||
125 Unique line(s) of event code
|
||||
screensaver
|
||||
35 Component(s)
|
||||
296 Line(s) of event code
|
||||
237 Unique line(s) of event code
|
||||
popupLight
|
||||
27 Component(s)
|
||||
341 Line(s) of event code
|
||||
185 Unique line(s) of event code
|
||||
cardThermo
|
||||
56 Component(s)
|
||||
542 Line(s) of event code
|
||||
288 Unique line(s) of event code
|
||||
345 Line(s) of event code
|
||||
187 Unique line(s) of event code
|
||||
cardQR
|
||||
28 Component(s)
|
||||
251 Line(s) of event code
|
||||
139 Unique line(s) of event code
|
||||
cardGrid
|
||||
42 Component(s)
|
||||
435 Line(s) of event code
|
||||
252 Unique line(s) of event code
|
||||
439 Line(s) of event code
|
||||
254 Unique line(s) of event code
|
||||
cardAlarm
|
||||
38 Component(s)
|
||||
360 Line(s) of event code
|
||||
222 Unique line(s) of event code
|
||||
364 Line(s) of event code
|
||||
224 Unique line(s) of event code
|
||||
cardEntities
|
||||
65 Component(s)
|
||||
981 Line(s) of event code
|
||||
418 Unique line(s) of event code
|
||||
1069 Line(s) of event code
|
||||
462 Unique line(s) of event code
|
||||
cardThermo
|
||||
56 Component(s)
|
||||
546 Line(s) of event code
|
||||
290 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
400 Component(s)
|
||||
4108 Line(s) of event code
|
||||
1063 Unique line(s) of event code
|
||||
4236 Line(s) of event code
|
||||
1105 Unique line(s) of event code
|
||||
|
||||
@@ -402,7 +402,7 @@ Text tVersion
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 34
|
||||
Text : 35
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -625,6 +625,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -964,6 +964,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -590,6 +590,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -707,6 +707,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -1131,6 +1131,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
Reference in New Issue
Block a user