mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 05:58:39 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
d8400115b2
commit
cfd4c4e141
@@ -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 : 46
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
ID : 47
|
||||
ID : 44
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tTmp
|
||||
Attributes
|
||||
ID : 48
|
||||
ID : 45
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
ID : 49
|
||||
ID : 46
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
@@ -301,99 +298,9 @@ XFloat xTempDest2
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
XFloat xTempMin2
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 231
|
||||
y coordinate : 69
|
||||
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 : 44
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 231
|
||||
y coordinate : 91
|
||||
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 : 45
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 232
|
||||
y coordinate : 179
|
||||
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 : 52
|
||||
ID : 49
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -603,7 +510,7 @@ Text tCF2
|
||||
|
||||
Text tALbl
|
||||
Attributes
|
||||
ID : 50
|
||||
ID : 47
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -633,7 +540,7 @@ Text tALbl
|
||||
|
||||
Text tCF
|
||||
Attributes
|
||||
ID : 54
|
||||
ID : 51
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -663,7 +570,7 @@ Text tCF
|
||||
|
||||
Text tCurTemp
|
||||
Attributes
|
||||
ID : 55
|
||||
ID : 52
|
||||
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
|
||||
@@ -1339,7 +1252,7 @@ Dual-state Button bUp2
|
||||
Back. Picture ID (Pressed) : 65535
|
||||
Back. Color (Pressed) : 6371
|
||||
Font Color (Unpressed) : 50712
|
||||
Font Color (Pressed) : 64512
|
||||
Font Color (Pressed) : 50712
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
State : unpressed
|
||||
@@ -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 : 51
|
||||
ID : 48
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1493,7 +1412,7 @@ Dual-state Button btUp
|
||||
|
||||
Dual-state Button btDown
|
||||
Attributes
|
||||
ID : 53
|
||||
ID : 50
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
|
||||
@@ -47,9 +47,9 @@ cardAlarm
|
||||
392 Line(s) of event code
|
||||
239 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
|
||||
65 Component(s)
|
||||
1133 Line(s) of event code
|
||||
@@ -57,6 +57,6 @@ cardEntities
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
409 Component(s)
|
||||
4548 Line(s) of event code
|
||||
1211 Unique line(s) of event code
|
||||
406 Component(s)
|
||||
4557 Line(s) of event code
|
||||
1207 Unique line(s) of event code
|
||||
|
||||
Reference in New Issue
Block a user