mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
fixed pageType command for popupLight page (add nextion2text)
This commit is contained in:
@@ -2326,6 +2326,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tId.txt,",",1
|
spstr strCommand.txt,tId.txt,",",1
|
||||||
//save second arg if there's one
|
//save second arg if there's one
|
||||||
spstr strCommand.txt,tTmp.txt,",",2
|
spstr strCommand.txt,tTmp.txt,",",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,",",3
|
||||||
if(tId.txt=="cardEntities")
|
if(tId.txt=="cardEntities")
|
||||||
{
|
{
|
||||||
//yay, we are already on the correct page
|
//yay, we are already on the correct page
|
||||||
|
|||||||
@@ -764,6 +764,10 @@ Timer tmSerial
|
|||||||
//command format pageType,specialPageName
|
//command format pageType,specialPageName
|
||||||
//write name of speical page to tId
|
//write name of speical page to tId
|
||||||
spstr strCommand.txt,tId.txt,",",1
|
spstr strCommand.txt,tId.txt,",",1
|
||||||
|
//save second arg if there's one
|
||||||
|
spstr strCommand.txt,tTmp.txt,",",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,",",3
|
||||||
if(tId.txt=="cardMedia")
|
if(tId.txt=="cardMedia")
|
||||||
{
|
{
|
||||||
//yay, we are already on the correct page
|
//yay, we are already on the correct page
|
||||||
@@ -773,6 +777,11 @@ Timer tmSerial
|
|||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="popupLight")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
if(tId.txt=="cardEntities")
|
if(tId.txt=="cardEntities")
|
||||||
{
|
{
|
||||||
page cardEntities
|
page cardEntities
|
||||||
|
|||||||
@@ -889,6 +889,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tId.txt,",",1
|
spstr strCommand.txt,tId.txt,",",1
|
||||||
//save second arg if there's one
|
//save second arg if there's one
|
||||||
spstr strCommand.txt,tTmp.txt,",",2
|
spstr strCommand.txt,tTmp.txt,",",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,",",3
|
||||||
if(tId.txt=="cardThermo")
|
if(tId.txt=="cardThermo")
|
||||||
{
|
{
|
||||||
//yay, we are already on the correct page
|
//yay, we are already on the correct page
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ pageTest
|
|||||||
12 Component(s)
|
12 Component(s)
|
||||||
12 Line(s) of event code
|
12 Line(s) of event code
|
||||||
12 Unique line(s) of event code
|
12 Unique line(s) of event code
|
||||||
|
screensaver
|
||||||
|
25 Component(s)
|
||||||
|
146 Line(s) of event code
|
||||||
|
116 Unique line(s) of event code
|
||||||
pageSwipeTest
|
pageSwipeTest
|
||||||
18 Component(s)
|
18 Component(s)
|
||||||
62 Line(s) of event code
|
62 Line(s) of event code
|
||||||
@@ -22,18 +26,14 @@ popupNotify
|
|||||||
15 Component(s)
|
15 Component(s)
|
||||||
143 Line(s) of event code
|
143 Line(s) of event code
|
||||||
95 Unique line(s) of event code
|
95 Unique line(s) of event code
|
||||||
screensaver
|
cardMedia
|
||||||
25 Component(s)
|
22 Component(s)
|
||||||
145 Line(s) of event code
|
219 Line(s) of event code
|
||||||
115 Unique line(s) of event code
|
114 Unique line(s) of event code
|
||||||
cardThermo
|
|
||||||
27 Component(s)
|
|
||||||
200 Line(s) of event code
|
|
||||||
119 Unique line(s) of event code
|
|
||||||
pageStartup
|
pageStartup
|
||||||
19 Component(s)
|
19 Component(s)
|
||||||
134 Line(s) of event code
|
135 Line(s) of event code
|
||||||
104 Unique line(s) of event code
|
105 Unique line(s) of event code
|
||||||
popupLight
|
popupLight
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
296 Line(s) of event code
|
296 Line(s) of event code
|
||||||
@@ -42,17 +42,17 @@ popupShutter
|
|||||||
19 Component(s)
|
19 Component(s)
|
||||||
148 Line(s) of event code
|
148 Line(s) of event code
|
||||||
84 Unique line(s) of event code
|
84 Unique line(s) of event code
|
||||||
cardMedia
|
cardThermo
|
||||||
22 Component(s)
|
27 Component(s)
|
||||||
212 Line(s) of event code
|
201 Line(s) of event code
|
||||||
109 Unique line(s) of event code
|
120 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
55 Component(s)
|
55 Component(s)
|
||||||
823 Line(s) of event code
|
824 Line(s) of event code
|
||||||
312 Unique line(s) of event code
|
313 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
12 Page(s)
|
12 Page(s)
|
||||||
258 Component(s)
|
258 Component(s)
|
||||||
2240 Line(s) of event code
|
2251 Line(s) of event code
|
||||||
577 Unique line(s) of event code
|
578 Unique line(s) of event code
|
||||||
|
|||||||
@@ -581,6 +581,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tId.txt,",",1
|
spstr strCommand.txt,tId.txt,",",1
|
||||||
//save second arg if there's one
|
//save second arg if there's one
|
||||||
spstr strCommand.txt,tTmp.txt,",",2
|
spstr strCommand.txt,tTmp.txt,",",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,",",3
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
|
|||||||
@@ -732,6 +732,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tId.txt,",",1
|
spstr strCommand.txt,tId.txt,",",1
|
||||||
//save second arg if there's one
|
//save second arg if there's one
|
||||||
spstr strCommand.txt,tTmp.txt,",",2
|
spstr strCommand.txt,tTmp.txt,",",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,",",3
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
|
|||||||
Reference in New Issue
Block a user