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

This commit is contained in:
joBr99
2022-06-06 12:47:25 +00:00
committed by github-actions[bot]
parent d8400115b2
commit cfd4c4e141
12 changed files with 215 additions and 512 deletions

View File

@@ -29,9 +29,6 @@ Page cardThermo
vis xTempMin1,0
vis xTempMax1,0
vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt
// disable all buttons
vis bt0,0
@@ -125,28 +122,28 @@ Variable (string) va7
Variable (string) tInstruction
Attributes
ID : 43
ID : 40
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
ID : 44
ID : 41
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
ID : 45
ID : 42
Scope : local
Text :
Max. Text Size: 10
Variable (string) tSend
Attributes
ID : 46
ID : 43
Scope : local
Text :
Max. Text Size: 100
@@ -301,99 +298,9 @@ XFloat xTempDest2
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMin2
Attributes
ID : 40
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 110
y coordinate : 178
Width : 50
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax2
Attributes
ID : 41
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 110
y coordinate : 200
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep2
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 111
y coordinate : 288
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest
Attributes
ID : 49
ID : 46
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -603,7 +510,7 @@ Text tCF2
Text tALbl
Attributes
ID : 47
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -633,7 +540,7 @@ Text tALbl
Text tCF
Attributes
ID : 51
ID : 48
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -663,7 +570,7 @@ Text tCF
Text tCurTemp
Attributes
ID : 52
ID : 49
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1243,10 +1150,13 @@ Dual-state Button btUp1
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh,"
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1301,10 +1211,13 @@ Dual-state Button btDown1
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh,"
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1351,16 +1264,19 @@ Dual-state Button bUp2
Events
Touch Press Event
if(xTempDest2.val<xTempMax2.val)
if(xTempDest2.val<xTempMax1.val)
{
xTempDest2.val=xTempDest2.val+xTempStep2.val
xTempDest2.val=xTempDest2.val+xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow,"
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
@@ -1409,16 +1325,19 @@ Dual-state Button bDown2
Events
Touch Press Event
if(xTempDest2.val>xTempMin2.val)
if(xTempDest2.val>xTempMin1.val)
{
xTempDest2.val=xTempDest2.val-xTempStep2.val
xTempDest2.val=xTempDest2.val-xTempStep1.val
}
// event,buttonPress2,entn,tempUpd,X
//craft command
tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow,"
tSend.txt+="tempUpdHighLow,"
//convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
@@ -1435,7 +1354,7 @@ Dual-state Button bDown2
Dual-state Button btUp
Attributes
ID : 48
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1493,7 +1412,7 @@ Dual-state Button btUp
Dual-state Button btDown
Attributes
ID : 50
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1551,7 +1470,7 @@ Dual-state Button btDown
Hotspot mSwipeNext
Attributes
ID : 53
ID : 50
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1571,7 +1490,7 @@ Hotspot mSwipeNext
Hotspot mSwipeUp
Attributes
ID : 54
ID : 51
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1591,7 +1510,7 @@ Hotspot mSwipeUp
Hotspot mSwipePrev
Attributes
ID : 55
ID : 52
Scope : local
Dragging : 0
Disable release event after dragging: 0

View File

@@ -27,9 +27,9 @@ popupNotify
204 Line(s) of event code
128 Unique line(s) of event code
cardThermo
56 Component(s)
546 Line(s) of event code
295 Unique line(s) of event code
53 Component(s)
555 Line(s) of event code
292 Unique line(s) of event code
cardEntities
77 Component(s)
1363 Line(s) of event code
@@ -57,6 +57,6 @@ screensaver
Total
13 Page(s)
420 Component(s)
4740 Line(s) of event code
1251 Unique line(s) of event code
417 Component(s)
4749 Line(s) of event code
1247 Unique line(s) of event code