mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
modified notify commands (add nextion2text)
This commit is contained in:
@@ -6,10 +6,6 @@ pageIcons
|
|||||||
6 Component(s)
|
6 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
0 Unique line(s) of event code
|
0 Unique line(s) of event code
|
||||||
popupNotify
|
|
||||||
15 Component(s)
|
|
||||||
143 Line(s) of event code
|
|
||||||
95 Unique line(s) of event code
|
|
||||||
pageSerialTest
|
pageSerialTest
|
||||||
13 Component(s)
|
13 Component(s)
|
||||||
48 Line(s) of event code
|
48 Line(s) of event code
|
||||||
@@ -30,6 +26,10 @@ pageSwipeTest
|
|||||||
18 Component(s)
|
18 Component(s)
|
||||||
62 Line(s) of event code
|
62 Line(s) of event code
|
||||||
44 Unique line(s) of event code
|
44 Unique line(s) of event code
|
||||||
|
popupNotify
|
||||||
|
16 Component(s)
|
||||||
|
152 Line(s) of event code
|
||||||
|
100 Unique line(s) of event code
|
||||||
pageTest
|
pageTest
|
||||||
14 Component(s)
|
14 Component(s)
|
||||||
14 Line(s) of event code
|
14 Line(s) of event code
|
||||||
@@ -61,6 +61,6 @@ cardGrid
|
|||||||
|
|
||||||
Total
|
Total
|
||||||
14 Page(s)
|
14 Page(s)
|
||||||
342 Component(s)
|
343 Component(s)
|
||||||
3105 Line(s) of event code
|
3114 Line(s) of event code
|
||||||
765 Unique line(s) of event code
|
769 Unique line(s) of event code
|
||||||
|
|||||||
@@ -46,7 +46,14 @@ Variable (string) strCommand
|
|||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 600
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
ID : 15
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 30
|
||||||
|
|
||||||
Text tSend
|
Text tSend
|
||||||
Attributes
|
Attributes
|
||||||
@@ -316,7 +323,7 @@ Button b2
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress,D,D,D,1,notifyAction,yes"
|
tSend.txt="event,buttonPress,D,D,"+entn.txt+",1,notifyAction,yes"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -364,7 +371,7 @@ Button b1
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress,D,D,D,1,notifyAction,no"
|
tSend.txt="event,buttonPress,D,D,"+entn.txt+",1,notifyAction,no"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -451,14 +458,24 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tInstruction.txt,",",0
|
spstr strCommand.txt,tInstruction.txt,",",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
if(tInstruction.txt=="entityUpdateDetail")
|
||||||
{
|
{
|
||||||
|
// get entn
|
||||||
|
spstr strCommand.txt,entn.txt,",",1
|
||||||
// get Heading
|
// get Heading
|
||||||
spstr strCommand.txt,tHeading.txt,",",1
|
spstr strCommand.txt,tHeading.txt,",",2
|
||||||
// get b1
|
// get b1
|
||||||
spstr strCommand.txt,b1.txt,",",2
|
spstr strCommand.txt,b1.txt,",",3
|
||||||
|
if(b1.txt!="")
|
||||||
|
{
|
||||||
|
vis b1,1
|
||||||
|
}
|
||||||
// get b2
|
// get b2
|
||||||
spstr strCommand.txt,b2.txt,",",3
|
spstr strCommand.txt,b2.txt,",",4
|
||||||
|
if(b2.txt!="")
|
||||||
|
{
|
||||||
|
vis b2,1
|
||||||
|
}
|
||||||
// get tText
|
// get tText
|
||||||
spstr strCommand.txt,tText.txt,",",4
|
spstr strCommand.txt,tText.txt,",",5
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user