Skip to content

Commit

Permalink
display light detail in correct mode (add nextion2text)
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 authored and actions-user committed Mar 16, 2022
1 parent 4d27f2f commit a65b8cb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
42 changes: 21 additions & 21 deletions HMI/n2t-out/cardEntities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,56 +92,56 @@ Variable (string) strCommand

Variable (string) type1
Attributes
ID : 47
ID : 46
Scope : local
Text :
Max. Text Size: 10

Variable (string) type2
Attributes
ID : 48
ID : 47
Scope : local
Text :
Max. Text Size: 10

Variable (string) type3
Attributes
ID : 49
ID : 48
Scope : local
Text :
Max. Text Size: 10

Variable (string) type4
Attributes
ID : 50
ID : 49
Scope : local
Text :
Max. Text Size: 10

Variable (string) entn1
Attributes
ID : 51
ID : 50
Scope : local
Text :
Max. Text Size: 50

Variable (string) entn2
Attributes
ID : 52
ID : 51
Scope : local
Text :
Max. Text Size: 50

Variable (string) entn3
Attributes
ID : 53
ID : 52
Scope : local
Text :
Max. Text Size: 50

Variable (string) entn4
Attributes
ID : 54
ID : 53
Scope : local
Text :
Max. Text Size: 50
Expand Down Expand Up @@ -1341,7 +1341,7 @@ Button bNext

Button bText1
Attributes
ID : 39
ID : 38
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand Down Expand Up @@ -1395,7 +1395,7 @@ Button bText1

Button bText2
Attributes
ID : 40
ID : 39
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand Down Expand Up @@ -1449,7 +1449,7 @@ Button bText2

Button bText3
Attributes
ID : 41
ID : 40
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand Down Expand Up @@ -1503,7 +1503,7 @@ Button bText3

Button bText4
Attributes
ID : 42
ID : 41
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand Down Expand Up @@ -1791,7 +1791,7 @@ Hotspot mSpecial

Hotspot m2
Attributes
ID : 43
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand All @@ -1806,7 +1806,7 @@ Hotspot m2
Effect Time : 300

Events
Touch Release Event
Touch Press Event
pageIcons.tTmp1.txt=tEntity3.txt
pageIcons.tTmp2.txt=entn3.txt
if(type3.txt=="shutter")
Expand All @@ -1822,7 +1822,7 @@ Hotspot m2

Hotspot m1
Attributes
ID : 44
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand All @@ -1837,7 +1837,7 @@ Hotspot m1
Effect Time : 300

Events
Touch Release Event
Touch Press Event
pageIcons.tTmp1.txt=tEntity2.txt
pageIcons.tTmp2.txt=entn2.txt
if(type2.txt=="shutter")
Expand All @@ -1853,7 +1853,7 @@ Hotspot m1

Hotspot m0
Attributes
ID : 45
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand All @@ -1868,7 +1868,7 @@ Hotspot m0
Effect Time : 300

Events
Touch Release Event
Touch Press Event
pageIcons.tTmp1.txt=tEntity1.txt
pageIcons.tTmp2.txt=entn1.txt
if(type1.txt=="shutter")
Expand All @@ -1884,7 +1884,7 @@ Hotspot m0

Hotspot m3
Attributes
ID : 46
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Expand All @@ -1899,7 +1899,7 @@ Hotspot m3
Effect Time : 300

Events
Touch Release Event
Touch Press Event
pageIcons.tTmp1.txt=tEntity4.txt
pageIcons.tTmp2.txt=entn4.txt
if(type4.txt=="shutter")
Expand Down Expand Up @@ -2424,7 +2424,7 @@ Timer tmSleep

TouchCap tc0
Attributes
ID : 38
ID : 54
Scope: local
Value: 0

Expand Down
12 changes: 6 additions & 6 deletions HMI/n2t-out/nspanel_Stats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ popupNotify
15 Component(s)
143 Line(s) of event code
95 Unique line(s) of event code
popupLight
27 Component(s)
284 Line(s) of event code
145 Unique line(s) of event code
cardMedia
22 Component(s)
219 Line(s) of event code
Expand All @@ -42,6 +38,10 @@ popupShutter
19 Component(s)
148 Line(s) of event code
84 Unique line(s) of event code
popupLight
27 Component(s)
290 Line(s) of event code
149 Unique line(s) of event code
cardThermo
42 Component(s)
450 Line(s) of event code
Expand All @@ -54,5 +54,5 @@ cardEntities
Total
12 Page(s)
273 Component(s)
2493 Line(s) of event code
666 Unique line(s) of event code
2499 Line(s) of event code
670 Unique line(s) of event code
8 changes: 7 additions & 1 deletion HMI/n2t-out/popupLight.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Page popupLight
vis hTempSlider,0
//disable color wheel components by default
vis bColor,0
vis t0,0
vis pColorWheel,0
//vis t0,0

Expand Down Expand Up @@ -873,7 +874,11 @@ Timer tmSerial
{
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,",",3
if(tTmp.txt=="disable")
if(tTmp.txt=="unknown")
{
click bColor,1
mode_temp.val=1
}else if(tTmp.txt=="disable")
{
vis t4,0
vis t3,0
Expand All @@ -894,6 +899,7 @@ Timer tmSerial
if(tTmp.txt!="disable")
{
vis bColor,1
vis t0,1
}
}
if(tInstruction.txt=="time")
Expand Down

0 comments on commit a65b8cb

Please sign in to comment.