Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-03-29 09:00:46 +00:00
committed by GitHub Actions
parent b7a092ba04
commit 03c7f249ba
4 changed files with 586 additions and 50 deletions

View File

@@ -39,6 +39,7 @@ Page cardEntities
vis tEntity1,0
vis bText1,0
vis hSlider1,0
vis nNum1,0
//ui e2
vis btOnOff2,0
vis bUp2,0
@@ -48,6 +49,7 @@ Page cardEntities
vis tEntity2,0
vis bText2,0
vis hSlider2,0
vis nNum2,0
//ui e3
vis btOnOff3,0
vis bUp3,0
@@ -57,6 +59,7 @@ Page cardEntities
vis tEntity3,0
vis bText3,0
vis hSlider3,0
vis nNum3,0
//ui e4
vis btOnOff4,0
vis bUp4,0
@@ -66,6 +69,7 @@ Page cardEntities
vis tEntity4,0
vis bText4,0
vis hSlider4,0
vis nNum4,0
Variable (string) strCommand
Attributes
@@ -130,6 +134,126 @@ Variable (string) entn4
Text :
Max. Text Size: 70
Number nNum1
Attributes
ID : 58
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 378
y coordinate : 76
Width : 46
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Number nNum2
Attributes
ID : 59
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 378
y coordinate : 132
Width : 46
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Number nNum3
Attributes
ID : 60
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 378
y coordinate : 186
Width : 45
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Number nNum4
Attributes
ID : 61
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 378
y coordinate : 242
Width : 44
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHeading
Attributes
ID : 2
@@ -546,8 +670,8 @@ Slider hSlider1
Send Component ID : disabled
Opacity : 127
x coordinate : 275
y coordinate : 77
Width : 150
y coordinate : 76
Width : 100
Height : 50
Effect : load
Effect Priority : 0
@@ -571,8 +695,8 @@ Slider hSlider2
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 133
Width : 150
y coordinate : 132
Width : 100
Height : 50
Effect : load
Effect Priority : 0
@@ -596,8 +720,8 @@ Slider hSlider3
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 187
Width : 150
y coordinate : 186
Width : 100
Height : 50
Effect : load
Effect Priority : 0
@@ -620,9 +744,9 @@ Slider hSlider4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 275
y coordinate : 243
Width : 150
x coordinate : 274
y coordinate : 241
Width : 100
Height : 50
Effect : load
Effect Priority : 0
@@ -1491,7 +1615,7 @@ Dual-state Button btOnOff1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 373
x coordinate : 372
y coordinate : 75
Width : 50
Height : 50
@@ -1883,6 +2007,7 @@ Timer tmSerial
vis tIcon1,0
vis bText1,0
vis hSlider1,0
vis nNum1,0
}else
{
// change icon
@@ -1906,6 +2031,7 @@ Timer tmSerial
vis btOnOff1,0
vis bText1,0
vis hSlider1,0
vis nNum1,0
}
if(type1.txt=="light")
{
@@ -1915,6 +2041,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",8
covx tTmp.txt,sys0,0,0
@@ -1928,6 +2055,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",8
covx tTmp.txt,sys0,0,0
@@ -1942,6 +2070,7 @@ Timer tmSerial
vis bText1,1
tsw bText1,0
vis hSlider1,0
vis nNum1,0
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
@@ -1956,6 +2085,7 @@ Timer tmSerial
vis bText1,1
tsw bText1,1
vis hSlider1,0
vis nNum1,0
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
@@ -1970,12 +2100,14 @@ Timer tmSerial
vis bText1,0
tsw bText1,0
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,",",8
//first value is current value
spstr bText1.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider1.val=sys0
nNum1.val=sys0
//second value is min value
spstr bText1.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
@@ -1999,6 +2131,7 @@ Timer tmSerial
vis tIcon2,0
vis bText2,0
vis hSlider2,0
vis nNum2,0
}else
{
// change icon
@@ -2022,6 +2155,7 @@ Timer tmSerial
vis btOnOff2,0
vis bText2,0
vis hSlider2,0
vis nNum2,0
}
if(type2.txt=="light")
{
@@ -2031,6 +2165,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",14
covx tTmp.txt,sys0,0,0
@@ -2044,6 +2179,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",14
covx tTmp.txt,sys0,0,0
@@ -2058,6 +2194,7 @@ Timer tmSerial
vis bText2,1
tsw bText2,0
vis hSlider2,0
vis nNum2,0
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
@@ -2072,6 +2209,7 @@ Timer tmSerial
vis bText2,1
tsw bText2,1
vis hSlider2,0
vis nNum2,0
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
@@ -2086,12 +2224,14 @@ Timer tmSerial
vis bText2,0
tsw bText2,0
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,",",14
//first value is current value
spstr bText2.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider2.val=sys0
nNum2.val=sys0
//second value is min value
spstr bText2.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
@@ -2115,6 +2255,7 @@ Timer tmSerial
vis tIcon3,0
vis bText3,0
vis hSlider3,0
vis nNum3,0
}else
{
// change icon
@@ -2138,6 +2279,7 @@ Timer tmSerial
vis btOnOff3,0
vis bText3,0
vis hSlider3,0
vis nNum3,0
}
if(type3.txt=="light")
{
@@ -2147,6 +2289,7 @@ Timer tmSerial
vis btOnOff3,1
vis bText3,0
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",20
covx tTmp.txt,sys0,0,0
@@ -2160,6 +2303,7 @@ Timer tmSerial
vis btOnOff3,1
vis bText3,0
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",20
covx tTmp.txt,sys0,0,0
@@ -2174,6 +2318,7 @@ Timer tmSerial
vis bText3,1
tsw bText3,0
vis hSlider3,0
vis nNum3,0
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
@@ -2188,6 +2333,7 @@ Timer tmSerial
vis bText3,1
tsw bText3,1
vis hSlider3,0
vis nNum3,0
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
@@ -2202,12 +2348,14 @@ Timer tmSerial
vis bText3,0
tsw bText3,0
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,",",20
//first value is current value
spstr bText3.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider3.val=sys0
nNum3.val=sys0
//second value is min value
spstr bText3.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0
@@ -2231,6 +2379,7 @@ Timer tmSerial
vis tIcon4,0
vis bText4,0
vis hSlider4,0
vis nNum4,0
}else
{
// change icon
@@ -2254,6 +2403,7 @@ Timer tmSerial
vis btOnOff4,0
vis bText4,0
vis hSlider4,0
vis nNum4,0
}
if(type4.txt=="light")
{
@@ -2263,6 +2413,7 @@ Timer tmSerial
vis btOnOff4,1
vis bText4,0
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",26
covx tTmp.txt,sys0,0,0
@@ -2276,6 +2427,7 @@ Timer tmSerial
vis btOnOff4,1
vis bText4,0
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,",",26
covx tTmp.txt,sys0,0,0
@@ -2290,6 +2442,7 @@ Timer tmSerial
vis bText4,1
tsw bText4,0
vis hSlider4,0
vis nNum4,0
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
@@ -2304,6 +2457,7 @@ Timer tmSerial
vis bText4,1
tsw bText4,1
vis hSlider4,0
vis nNum4,0
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
@@ -2318,12 +2472,14 @@ Timer tmSerial
vis bText4,0
tsw bText4,0
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,",",26
//first value is current value
spstr bText4.txt,tTmp.txt,"|",1
covx tTmp.txt,sys0,0,0
hSlider4.val=sys0
nNum4.val=sys0
//second value is min value
spstr bText4.txt,tTmp.txt,"|",2
covx tTmp.txt,sys0,0,0

View File

@@ -51,12 +51,12 @@ screensaver
183 Line(s) of event code
133 Unique line(s) of event code
cardEntities
58 Component(s)
842 Line(s) of event code
360 Unique line(s) of event code
62 Component(s)
882 Line(s) of event code
380 Unique line(s) of event code
Total
13 Page(s)
349 Component(s)
3275 Line(s) of event code
882 Unique line(s) of event code
353 Component(s)
3315 Line(s) of event code
902 Unique line(s) of event code