mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-03 11:58:55 +01:00
288 lines
12 KiB
Plaintext
288 lines
12 KiB
Plaintext
--- HMI/n2t-out
|
|
+++ HMI/US/landscape/n2t-out
|
|
│ --- HMI/n2t-out/Program.s.txt
|
|
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
|
│ @@ -11,10 +11,9 @@
|
|
│ // dim value
|
|
│ int dimValue=40
|
|
│ int dimValueNormal=100
|
|
│ //color vars
|
|
│ int defaultFontColor=65535
|
|
│ int defaultBcoColor=6371
|
|
│ // fix touch offset
|
|
│ - lcd_dev fffb 0002 0000 0020
|
|
│ - printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
|
│ + //lcd_dev fffb 0002 0000 0020
|
|
│ page pageStartup
|
|
│ --- HMI/n2t-out/cardQR.txt
|
|
├── +++ HMI/US/landscape/n2t-out/cardQR.txt
|
|
│ @@ -124,15 +124,15 @@
|
|
│ Text :
|
|
│ Max. Text Size: 10
|
|
│
|
|
│ Variable (string) vaQR
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Text :
|
|
│ - Max. Text Size: 70
|
|
│ + Max. Text Size: 80
|
|
│
|
|
│ Text tEntity1
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ @@ -602,19 +602,19 @@
|
|
│ // get Text (optional Value)
|
|
│ spstr strCommand.txt,bText2.txt,"~",26
|
|
│ }
|
|
│ if(type2.txt=="delete"||type2.txt=="")
|
|
│ {
|
|
│ if(type1.txt=="delete"||type1.txt=="")
|
|
│ {
|
|
│ - qrcode m1.x,m1.y,200,65535,defaultBcoColor,-1,vaQR.txt
|
|
│ + qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
|
|
│ }
|
|
│ }else
|
|
│ {
|
|
│ - qrcode m0.x,m0.y,200,65535,defaultBcoColor,-1,vaQR.txt
|
|
│ + qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
|
|
│ }
|
|
│ }
|
|
│ if(tInstruction.txt=="time")
|
|
│ {
|
|
│ // get set time to global variable
|
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
|
│ }
|
|
│ @@ -751,15 +751,15 @@
|
|
│ if(sleepTimeout!=0&&dimValue!=dim)
|
|
│ {
|
|
│ sleepValue+=1
|
|
│ if(sleepTimeout<=sleepValue)
|
|
│ {
|
|
│ sleepValue=0
|
|
│ dim=dimValue
|
|
│ - tSend.txt="event,sleepReached,cardQR"
|
|
│ + tSend.txt="event,sleepReached,cardAlarm"
|
|
│ //send calc crc
|
|
│ btlen tSend.txt,sys0
|
|
│ crcrest 1,0xffff // reset CRC
|
|
│ crcputh 55 bb
|
|
│ crcputs sys0,2
|
|
│ crcputs tSend.txt,0
|
|
│ //send cmd
|
|
│ --- HMI/n2t-out/pageStartup.txt
|
|
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
|
|
│ @@ -179,15 +179,15 @@
|
|
│ Max. Text Size : 10
|
|
│
|
|
│ Events
|
|
│ Touch Press Event
|
|
│ recmod=1
|
|
│ bauds=115200
|
|
│ // startup event
|
|
│ - tSend.txt="event,startup,"+tVersion.txt+",eu"
|
|
│ + tSend.txt="event,startup,"+tVersion.txt+",us-l"
|
|
│ //send calc crc
|
|
│ btlen tSend.txt,sys0
|
|
│ crcrest 1,0xffff // reset CRC
|
|
│ crcputh 55 bb
|
|
│ crcputs sys0,2
|
|
│ crcputs tSend.txt,0
|
|
│ //send cmd
|
|
│ --- HMI/n2t-out/popupNotify.txt
|
|
├── +++ HMI/US/landscape/n2t-out/popupNotify.txt
|
|
│ @@ -15,16 +15,14 @@
|
|
│ popupNotify.bco=defaultBcoColor
|
|
│ dim=dimValueNormal
|
|
│ vis p0,0
|
|
│ vis tSend,0
|
|
│ vis tTmp,0
|
|
│ vis tInstruction,0
|
|
│ vis tId,0
|
|
│ - vis b1,0
|
|
│ - vis b2,0
|
|
│ popupNotify.bco=defaultBcoColor
|
|
│ tHeading.bco=defaultBcoColor
|
|
│ b0.bco=defaultBcoColor
|
|
│ tText.bco=defaultBcoColor
|
|
│ b1.bco=defaultBcoColor
|
|
│ b2.bco=defaultBcoColor
|
|
│ tIcon.bco=defaultBcoColor
|
|
│ --- HMI/n2t-out/screensaver.txt
|
|
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
|
|
│ @@ -29,17 +29,14 @@
|
|
│ }
|
|
│ tDate.txt=pageIcons.vaDate.txt
|
|
│ dim=dimValue
|
|
│ vis tSend,0
|
|
│ //page open event
|
|
│ // clear weather elements, to keep example content in HMI
|
|
│
|
|
│ - Postinitialize Event
|
|
│ - click m0,1
|
|
│ -
|
|
│ Variable (string) strCommand
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Text :
|
|
│ Max. Text Size: 600
|
|
│
|
|
│ Variable (string) strTmp
|
|
│ @@ -103,35 +100,14 @@
|
|
│ Value: 0
|
|
│
|
|
│ Variable (int32) ycR
|
|
│ Attributes
|
|
│ Scope: local
|
|
│ Value: 0
|
|
│
|
|
│ -Text m0
|
|
│ - Attributes
|
|
│ - Scope : local
|
|
│ - Dragging : 0
|
|
│ - Disable release event after dragging: 0
|
|
│ - Send Component ID : disabled
|
|
│ - Associated Keyboard : none
|
|
│ - Text :
|
|
│ - Max. Text Size : 10
|
|
│ -
|
|
│ - Events
|
|
│ - Touch Press Event
|
|
│ - tTmp.txt="change model conf to us-l/p "
|
|
│ - strlen tTmp.txt,sys1
|
|
│ - sya1=sys1*11+m0.h-48/2
|
|
│ - for(sys0=0;sys0<sys1;sys0++)
|
|
│ - {
|
|
│ - substr tTmp.txt,strTmp.txt,sys0,1
|
|
│ - xstr m0.x-5,sys0*-11+m0.y+sya1,23,20,6,WHITE,RED,2,1,3,strTmp.txt
|
|
│ - }
|
|
│ -
|
|
│ Text t10
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ Associated Keyboard : none
|
|
│ @@ -748,18 +724,14 @@
|
|
│ {
|
|
│ page pageStartup
|
|
│ }
|
|
│ if(tId.txt=="screensaver")
|
|
│ {
|
|
│ page screensaver
|
|
│ }
|
|
│ - if(tId.txt=="screensaver2")
|
|
│ - {
|
|
│ - page screensaver2
|
|
│ - }
|
|
│ if(tId.txt=="cardEntities")
|
|
│ {
|
|
│ page cardEntities
|
|
│ }
|
|
│ if(tId.txt=="cardGrid")
|
|
│ {
|
|
│ page cardGrid
|
|
│ --- HMI/n2t-out/screensaver2.txt
|
|
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
|
|
│ @@ -29,17 +29,14 @@
|
|
│ }
|
|
│ tDate.txt=pageIcons.vaDate.txt
|
|
│ dim=dimValue
|
|
│ vis tSend,0
|
|
│ //page open event
|
|
│ // clear weather elements, to keep example content in HMI
|
|
│
|
|
│ - Postinitialize Event
|
|
│ - click m0,1
|
|
│ -
|
|
│ Variable (string) strCommand
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Text :
|
|
│ Max. Text Size: 1979
|
|
│
|
|
│ Variable (string) strTmp
|
|
│ @@ -393,35 +390,14 @@
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ Associated Keyboard : none
|
|
│ Text :
|
|
│ Max. Text Size : 4
|
|
│
|
|
│ -Text m0
|
|
│ - Attributes
|
|
│ - Scope : local
|
|
│ - Dragging : 0
|
|
│ - Disable release event after dragging: 0
|
|
│ - Send Component ID : disabled
|
|
│ - Associated Keyboard : none
|
|
│ - Text :
|
|
│ - Max. Text Size : 10
|
|
│ -
|
|
│ - Events
|
|
│ - Touch Press Event
|
|
│ - tTmp.txt="change model conf to us-l/p "
|
|
│ - strlen tTmp.txt,sys1
|
|
│ - sya1=sys1*11+m0.h-48/2
|
|
│ - for(sys0=0;sys0<sys1;sys0++)
|
|
│ - {
|
|
│ - substr tTmp.txt,strTmp.txt,sys0,1
|
|
│ - xstr m0.x-5,sys0*-11+m0.y+sya1,23,20,6,WHITE,RED,2,1,3,strTmp.txt
|
|
│ - }
|
|
│ -
|
|
│ Text tAMPM
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ Associated Keyboard : none
|
|
│ @@ -442,25 +418,25 @@
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ Associated Keyboard : none
|
|
│ Text :
|
|
│ - Max. Text Size : 16
|
|
│ + Max. Text Size : 10
|
|
│
|
|
│ Text tIcon2
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ Associated Keyboard : none
|
|
│ Text :
|
|
│ - Max. Text Size : 16
|
|
│ + Max. Text Size : 10
|
|
│
|
|
│ Text tMainIcon
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Dragging : 0
|
|
│ Disable release event after dragging: 0
|
|
│ Send Component ID : disabled
|
|
│ @@ -614,15 +590,14 @@
|
|
│ if(tTmp.txt!="")
|
|
│ {
|
|
│ covx tTmp.txt,defaultFontColor,0,0
|
|
│ }
|
|
│ }
|
|
│ if(tInstruction.txt=="time")
|
|
│ {
|
|
│ - click m0,1
|
|
│ //get set time to global variable
|
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
|
│ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
|
│ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
|
│ if(tAMPM.txt=="")
|
|
│ {
|
|
│ vis tAMPM,0
|