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

This commit is contained in:
joBr99
2023-08-20 12:42:36 +00:00
committed by github-actions[bot]
parent a1104b8f81
commit 291102971a
21 changed files with 155 additions and 394 deletions

View File

@@ -14,175 +14,6 @@
│ + //lcd_dev fffb 0002 0000 0020
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
│ page pageStartup
│ --- HMI/n2t-out/cardEntities.txt
├── +++ HMI/US/landscape/n2t-out/cardEntities.txt
│ @@ -961,21 +961,16 @@
│ if(type1.txt=="shutter")
│ {
│ //popupShutter.tHeading.txt=tEntity1.txt
│ page popupShutter
│ }
│ if(type1.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + //popupLight.tEntity.txt=tEntity1.txt
│ + page popupLight
│ }
│ if(type1.txt=="fan")
│ {
│ page popupFan
│ }
│ if(type1.txt=="input_sel")
│ {
│ @@ -1000,21 +995,16 @@
│ if(type2.txt=="shutter")
│ {
│ //popupShutter.tHeading.txt=tEntity2.txt
│ page popupShutter
│ }
│ if(type2.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + //popupLight.tEntity.txt=tEntity2.txt
│ + page popupLight
│ }
│ if(type2.txt=="fan")
│ {
│ page popupFan
│ }
│ if(type2.txt=="input_sel")
│ {
│ @@ -1039,21 +1029,16 @@
│ if(type3.txt=="shutter")
│ {
│ //popupShutter.tHeading.txt=tEntity3.txt
│ page popupShutter
│ }
│ if(type3.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + //popupLight.tEntity.txt=tEntity3.txt
│ + page popupLight
│ }
│ if(type3.txt=="fan")
│ {
│ page popupFan
│ }
│ if(type3.txt=="input_sel")
│ {
│ @@ -1078,21 +1063,16 @@
│ if(type4.txt=="shutter")
│ {
│ //popupShutter.tHeading.txt=tEntity4.txt
│ page popupShutter
│ }
│ if(type4.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + //popupLight.tEntity.txt=tEntity4.txt
│ + page popupLight
│ }
│ if(type4.txt=="fan")
│ {
│ page popupFan
│ }
│ if(type4.txt=="input_sel")
│ {
│ --- HMI/n2t-out/cardGrid.txt
├── +++ HMI/US/landscape/n2t-out/cardGrid.txt
│ @@ -601,21 +601,15 @@
│ Period (ms): 500
│ Enabled : no
│ Events
│ Timer Event
│ if(tTmp.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + page popupLight
│ }
│ if(tTmp.txt=="fan")
│ {
│ page popupFan
│ }
│ Timer tmSerial
│ --- HMI/n2t-out/cardGrid2.txt
├── +++ HMI/US/landscape/n2t-out/cardGrid2.txt
│ @@ -735,21 +735,15 @@
│ Period (ms): 500
│ Enabled : no
│ Events
│ Timer Event
│ if(tTmp.txt=="light")
│ {
│ - if(featNewSliders==1)
│ - {
│ - page popupLightNew
│ - }else
│ - {
│ - page popupLight
│ - }
│ + page popupLight
│ }
│ if(tTmp.txt=="fan")
│ {
│ page popupFan
│ }
│ Timer tmSerial
│ --- HMI/n2t-out/cardPower.txt
├── +++ HMI/US/landscape/n2t-out/cardPower.txt
│ @@ -960,18 +960,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="time")
│ {
│ // get set time to global variable
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
│ }
│ if(tInstruction.txt=="date")
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
│ @@ -164,15 +164,15 @@
@@ -223,25 +54,6 @@
│ spstr strCommand.txt,tTmp.txt,"~",1
│ covx tTmp.txt,sleepTimeout,0,0
│ }
│ --- HMI/n2t-out/popupLight.txt
├── +++ HMI/US/landscape/n2t-out/popupLight.txt
│ @@ -631,15 +631,15 @@
│ }
│ if(tId.txt=="cardGrid")
│ {
│ page cardGrid
│ }
│ if(tId.txt=="cardGrid2")
│ {
│ - page cardGrid2
│ + page cardGrid
│ }
│ if(tId.txt=="popupLight")
│ {
│ pageIcons.tTmp1.txt=tTmp.txt
│ page popupLight
│ }
│ if(tId.txt=="popupShutter")
│ --- HMI/n2t-out/popupNotify.txt
├── +++ HMI/US/landscape/n2t-out/popupNotify.txt
│ @@ -295,19 +295,14 @@
@@ -319,36 +131,6 @@
│ Send Component ID : disabled
│ Associated Keyboard: none
│ Text : |
│ @@ -702,29 +679,14 @@
│ }
│ spstr strCommand.txt,tTmp.txt,"~",4
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,tNotifyText.pco,0,0
│ }
│ }
│ - if(tInstruction.txt=="getBrightness")
│ - {
│ - tSend.txt="event,getBrightnessResponse,"
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs dim,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ if(tInstruction.txt=="pageType")
│ {
│ dim=100
│ //command format pageType,specialPageName
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ //save second arg if there's one
│ --- HMI/n2t-out/screensaver2.txt
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
│ @@ -28,17 +28,14 @@
@@ -420,22 +202,3 @@
│ if(tAMPM.txt=="")
│ {
│ vis tAMPM,0
│ @@ -824,18 +800,14 @@
│ {
│ page cardPower
│ }
│ if(tId.txt=="cardChart")
│ {
│ page cardChart
│ }
│ - if(tId.txt=="cardLChart")
│ - {
│ - page cardLChart
│ - }
│ }
│ if(tInstruction.txt=="timeout")
│ {
│ //set timeout to global var
│ spstr strCommand.txt,tTmp.txt,"~",1
│ covx tTmp.txt,sleepTimeout,0,0
│ }