diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 0bc135c9..986fe838 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -12,7 +12,7 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── bSendStartup.txt +├── pageStartup.txt │ @@ -173,15 +173,15 @@ │ Max. Text Size : 10 │ @@ -30,3 +30,52 @@ │ crcputs sys0,2 │ crcputs tSend.txt,0 │ //send cmd +├── screensaver.txt +│┄ ordering differences only +│ @@ -64,40 +64,40 @@ +│ +│ Variable (string) tSend +│ Attributes +│ Scope : local +│ Text : +│ Max. Text Size: 50 +│ +│ -Variable (int32) xc1 +│ +Variable (int32) xcR +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) yc1 +│ +Variable (int32) ycR +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) xc2 +│ +Variable (int32) yc2 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) yc2 +│ +Variable (int32) xc2 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) ycR +│ +Variable (int32) yc1 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ -Variable (int32) xcR +│ +Variable (int32) xc1 +│ Attributes +│ Scope: local +│ Value: 0 +│ +│ Text tTime +│ Attributes +│ Scope : local diff --git a/HMI/US/landscape/n2t-out-visual/arm1.txt b/HMI/US/landscape/n2t-out-visual/cardAlarm.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/arm1.txt rename to HMI/US/landscape/n2t-out-visual/cardAlarm.txt index 442e80a1..ae5aede3 100644 --- a/HMI/US/landscape/n2t-out-visual/arm1.txt +++ b/HMI/US/landscape/n2t-out-visual/cardAlarm.txt @@ -65,13 +65,6 @@ Page cardAlarm tCode.pco=40179 } -Variable (string) entn - Attributes - ID : 9 - Scope : local - Text : - Max. Text Size: 80 - Variable (string) strCommand Attributes ID : 6 @@ -79,6 +72,13 @@ Variable (string) strCommand Text : Max. Text Size: 200 +Variable (string) entn + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 80 + Variable (string) tSend Attributes ID : 25 @@ -121,6 +121,96 @@ Variable (string) vaAddBtn Text : Max. Text Size: 80 +Text tTmp + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 421 + y coordinate : 277 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 114 + y coordinate : 290 + Width : 39 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Text tCode Attributes ID : 23 @@ -181,96 +271,6 @@ Text tIcon Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 114 - y coordinate : 290 - Width : 39 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 7 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 290 - Width : 100 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 421 - y coordinate : 277 - Width : 34 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Picture p0 Attributes ID : 1 @@ -288,47 +288,41 @@ Picture p0 Effect Time : 300 Picture ID : 0 -Button arm1 +Button bNext Attributes - ID : 24 + ID : 3 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 315 - y coordinate : 91 - Width : 141 + x coordinate : 406 + y coordinate : 16 + Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 + Style : flat + Font ID : 3 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 + Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled + Text :  + Max. Text Size : 10 + Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt + tSend.txt="event,buttonPress2,cardAlarm,bNext" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -340,49 +334,49 @@ Button arm1 prints sys0,2 prints tSend.txt,0 prints crcval,2 - tCode.txt="" -Button arm2 +Button bPrev Attributes - ID : 28 + ID : 4 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 315 - y coordinate : 152 - Width : 141 + x coordinate : 24 + y coordinate : 16 + Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 + Style : flat + Font ID : 3 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 + Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled + Text :  + Max. Text Size : 10 + Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -394,115 +388,6 @@ Button arm2 prints sys0,2 prints tSend.txt,0 prints crcval,2 - tCode.txt="" - -Button arm3 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 315 - y coordinate : 210 - Width : 140 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - tCode.txt="" - -Button arm4 - Attributes - ID : 29 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 315 - y coordinate : 266 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - tCode.txt="" Button b0 Attributes @@ -580,82 +465,6 @@ Button b1 Touch Press Event tCode.txt=tCode.txt+"2" -Button b10 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 133 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : 0 - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt=tCode.txt+"0" - -Button b11 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 224 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : CLR - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tCode.txt="" - Button b2 Attributes ID : 14 @@ -980,33 +789,35 @@ Button b9 prints crcval,2 tCode.txt="" -Button bNext +Button b10 Attributes - ID : 3 + ID : 22 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 406 - y coordinate : 16 - Width : 50 + x coordinate : 133 + y coordinate : 266 + Width : 75 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : flat - Font ID : 3 + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 2 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 + Font Color (Unpressed) : 1374 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text : 0 Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1014,61 +825,49 @@ Button bNext Events Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm,bNext" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 + tCode.txt=tCode.txt+"0" -Button bPrev +Button arm1 Attributes - ID : 4 + ID : 24 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 24 - y coordinate : 16 - Width : 50 + x coordinate : 315 + y coordinate : 91 + Width : 141 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : flat - Font ID : 3 + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 + Font Color (Unpressed) : 1374 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled + Text : + Max. Text Size : 40 + Word wrap : enabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -1080,6 +879,207 @@ Button bPrev prints sys0,2 prints tSend.txt,0 prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 315 + y coordinate : 210 + Width : 140 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm2 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 315 + y coordinate : 152 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + ID : 29 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 315 + y coordinate : 266 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button b11 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 224 + y coordinate : 266 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : CLR + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt="" Hotspot mSwipeNext Attributes @@ -1101,26 +1101,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 37 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 36 @@ -1141,24 +1121,25 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 -Timer tmFlash +Hotspot mSwipePrev Attributes - ID : 34 - Scope : local - Period (ms): 600 - Enabled : no + ID : 37 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } + Touch Press Event + click bPrev,1 Timer tmSerial Attributes @@ -1487,6 +1468,25 @@ Timer tmSleep } } +Timer tmFlash + Attributes + ID : 34 + Scope : local + Period (ms): 600 + Enabled : no + + Events + Timer Event + if(tIcon.isbr==1) + { + tIcon.isbr=0 + vis tIcon,0 + }else + { + tIcon.isbr=1 + vis tIcon,1 + } + TouchCap tc0 Attributes ID : 11 diff --git a/HMI/US/landscape/n2t-out-visual/bDown1.txt b/HMI/US/landscape/n2t-out-visual/cardEntities.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/bDown1.txt rename to HMI/US/landscape/n2t-out-visual/cardEntities.txt index b5ac11a2..8d7cac4d 100644 --- a/HMI/US/landscape/n2t-out-visual/bDown1.txt +++ b/HMI/US/landscape/n2t-out-visual/cardEntities.txt @@ -94,34 +94,6 @@ Page cardEntities } } -Variable (string) entn1 - Attributes - ID : 44 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn2 - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn3 - Attributes - ID : 46 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn4 - Attributes - ID : 47 - Scope : local - Text : - Max. Text Size: 80 - Variable (string) strCommand Attributes ID : 27 @@ -129,13 +101,6 @@ Variable (string) strCommand Text : Max. Text Size: 500 -Variable (string) tSend - Attributes - ID : 64 - Scope : local - Text : - Max. Text Size: 200 - Variable (string) type1 Attributes ID : 40 @@ -164,6 +129,41 @@ Variable (string) type4 Text : Max. Text Size: 10 +Variable (string) entn1 + Attributes + ID : 44 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn2 + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn3 + Attributes + ID : 46 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn4 + Attributes + ID : 47 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tSend + Attributes + ID : 64 + Scope : local + Text : + Max. Text Size: 200 + Number nNum1 Attributes ID : 53 @@ -284,6 +284,36 @@ Number nNum4 Horizontal Spacing : 0 Vertical Spacing : 0 +Text tHeading + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 126 + y coordinate : 26 + Width : 227 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Text tEntity1 Attributes ID : 3 @@ -404,36 +434,6 @@ Text tEntity4 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tHeading - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 126 - y coordinate : 26 - Width : 227 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tIcon1 Attributes ID : 7 @@ -554,17 +554,17 @@ Text tIcon4 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tTmp Attributes - ID : 31 + ID : 28 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 114 - y coordinate : 290 - Width : 39 + x coordinate : 409 + y coordinate : 289 + Width : 34 Height : 30 Effect : load Effect Priority : 0 @@ -579,7 +579,7 @@ Text tId Vertical Alignment : center Input Type : character Text : - Max. Text Size : 50 + Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -614,17 +614,17 @@ Text tInstruction Horizontal Spacing : 0 Vertical Spacing : 0 -Text tTmp +Text tId Attributes - ID : 28 + ID : 31 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 409 - y coordinate : 289 - Width : 34 + x coordinate : 114 + y coordinate : 290 + Width : 39 Height : 30 Effect : load Effect Priority : 0 @@ -639,7 +639,7 @@ Text tTmp Vertical Alignment : center Input Type : character Text : - Max. Text Size : 10 + Max. Text Size : 50 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -880,16 +880,16 @@ Button bDown1 prints tSend.txt,0 prints crcval,2 -Button bDown2 +Button bUp1 Attributes - ID : 15 + ID : 12 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 392 - y coordinate : 131 + x coordinate : 290 + y coordinate : 75 Width : 50 Height : 50 Effect : load @@ -906,7 +906,7 @@ Button bDown2 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -914,202 +914,7 @@ Button bDown2 Events Touch Press Event - tSend.txt="event,buttonPress2,"+entn2.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bDown3 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 393 - y coordinate : 185 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn3.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bDown4 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 392 - y coordinate : 241 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn4.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bNext - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 406 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardEntities,bNext" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bPrev - Attributes - ID : 32 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardEntities," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } + tSend.txt="event,buttonPress2,"+entn1.txt+",up" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -1216,6 +1021,100 @@ Button bStop2 prints tSend.txt,0 prints crcval,2 +Button bDown2 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 392 + y coordinate : 131 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn2.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp2 + Attributes + ID : 16 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 132 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn2.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button bStop3 Attributes ID : 17 @@ -1263,6 +1162,100 @@ Button bStop3 prints tSend.txt,0 prints crcval,2 +Button bDown3 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 393 + y coordinate : 185 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn3.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp3 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 186 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn3.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button bStop4 Attributes ID : 20 @@ -1310,6 +1303,201 @@ Button bStop4 prints tSend.txt,0 prints crcval,2 +Button bDown4 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 392 + y coordinate : 241 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn4.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp4 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 242 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn4.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + ID : 32 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardEntities," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bNext + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 406 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardEntities,bNext" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button bText1 Attributes ID : 60 @@ -1498,194 +1686,6 @@ Button bText4 prints tSend.txt,0 prints crcval,2 -Button bUp1 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 75 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn1.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp2 - Attributes - ID : 16 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 132 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn2.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp3 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 186 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn3.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp4 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 242 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn4.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Dual-state Button btOnOff1 Attributes ID : 23 @@ -1866,42 +1866,68 @@ Dual-state Button btOnOff4 prints tSend.txt,0 prints crcval,2 -Hotspot m0 +Hotspot mSpecial Attributes - ID : 38 + ID : 34 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 37 - y coordinate : 70 - Width : 237 - Height : 56 + x coordinate : 323 + y coordinate : 0 + Width : 83 + Height : 67 Effect : load Effect Priority : 0 Effect Time : 300 Events Touch Press Event - pageIcons.tTmp1.txt=tEntity1.txt - pageIcons.tTmp2.txt=entn1.txt - pageIcons.tTmp3.txt=tIcon1.txt - if(type1.txt=="shutter") + sys2=sys2+1 + sys2%=10 + //n0.val=sys2 + if(sys2==9) { - //popupShutter.tHeading.txt=tEntity1.txt + page pageTest + } + +Hotspot m2 + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 40 + y coordinate : 184 + Width : 235 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tEntity3.txt + pageIcons.tTmp2.txt=entn3.txt + pageIcons.tTmp3.txt=tIcon3.txt + if(type3.txt=="shutter") + { + //popupShutter.tHeading.txt=tEntity3.txt page popupShutter } - if(type1.txt=="light") + if(type3.txt=="light") { - //popupLight.tEntity.txt=tEntity1.txt + //popupLight.tEntity.txt=tEntity3.txt page popupLight } - if(type1.txt=="fan") + if(type3.txt=="fan") { page popupFan } - if(type1.txt=="input_sel") + if(type3.txt=="input_sel") { page popupInSel } @@ -1946,42 +1972,42 @@ Hotspot m1 page popupInSel } -Hotspot m2 +Hotspot m0 Attributes - ID : 36 + ID : 38 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 40 - y coordinate : 184 - Width : 235 - Height : 60 + x coordinate : 37 + y coordinate : 70 + Width : 237 + Height : 56 Effect : load Effect Priority : 0 Effect Time : 300 Events Touch Press Event - pageIcons.tTmp1.txt=tEntity3.txt - pageIcons.tTmp2.txt=entn3.txt - pageIcons.tTmp3.txt=tIcon3.txt - if(type3.txt=="shutter") + pageIcons.tTmp1.txt=tEntity1.txt + pageIcons.tTmp2.txt=entn1.txt + pageIcons.tTmp3.txt=tIcon1.txt + if(type1.txt=="shutter") { - //popupShutter.tHeading.txt=tEntity3.txt + //popupShutter.tHeading.txt=tEntity1.txt page popupShutter } - if(type3.txt=="light") + if(type1.txt=="light") { - //popupLight.tEntity.txt=tEntity3.txt + //popupLight.tEntity.txt=tEntity1.txt page popupLight } - if(type3.txt=="fan") + if(type1.txt=="fan") { page popupFan } - if(type3.txt=="input_sel") + if(type1.txt=="input_sel") { page popupInSel } @@ -2026,32 +2052,6 @@ Hotspot m3 page popupInSel } -Hotspot mSpecial - Attributes - ID : 34 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 323 - y coordinate : 0 - Width : 83 - Height : 67 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - sys2=sys2+1 - sys2%=10 - //n0.val=sys2 - if(sys2==9) - { - page pageTest - } - Hotspot mSwipeNext Attributes ID : 57 @@ -2072,26 +2072,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 59 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 58 @@ -2112,6 +2092,26 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 +Hotspot mSwipePrev + Attributes + ID : 59 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 29 diff --git a/HMI/US/landscape/n2t-out-visual/bEntity1.txt b/HMI/US/landscape/n2t-out-visual/cardGrid.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/bEntity1.txt rename to HMI/US/landscape/n2t-out-visual/cardGrid.txt index a0e6eec9..bd25f793 100644 --- a/HMI/US/landscape/n2t-out-visual/bEntity1.txt +++ b/HMI/US/landscape/n2t-out-visual/cardGrid.txt @@ -54,48 +54,6 @@ Page cardGrid } } -Variable (string) entn1 - Attributes - ID : 17 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn2 - Attributes - ID : 18 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn3 - Attributes - ID : 19 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn4 - Attributes - ID : 20 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn5 - Attributes - ID : 35 - Scope : local - Text : - Max. Text Size: 80 - -Variable (string) entn6 - Attributes - ID : 36 - Scope : local - Text : - Max. Text Size: 80 - Variable (string) strCommand Attributes ID : 4 @@ -103,13 +61,6 @@ Variable (string) strCommand Text : Max. Text Size: 500 -Variable (string) tSend - Attributes - ID : 41 - Scope : local - Text : - Max. Text Size: 200 - Variable (string) type1 Attributes ID : 13 @@ -138,6 +89,34 @@ Variable (string) type4 Text : Max. Text Size: 10 +Variable (string) entn1 + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn2 + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn3 + Attributes + ID : 19 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn4 + Attributes + ID : 20 + Scope : local + Text : + Max. Text Size: 80 + Variable (string) type5 Attributes ID : 33 @@ -152,6 +131,57 @@ Variable (string) type6 Text : Max. Text Size: 10 +Variable (string) entn5 + Attributes + ID : 35 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) entn6 + Attributes + ID : 36 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) tSend + Attributes + ID : 41 + Scope : local + Text : + Max. Text Size: 200 + +Text tHeading + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 131 + y coordinate : 26 + Width : 227 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Text tEntity1 Attributes ID : 3 @@ -182,6 +212,96 @@ Text tEntity1 Horizontal Spacing : 0 Vertical Spacing : 0 +Text tTmp + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 420 + y coordinate : 290 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 20 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 131 + y coordinate : 290 + Width : 39 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Text tEntity2 Attributes ID : 24 @@ -332,126 +452,6 @@ Text tEntity6 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tHeading - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 131 - y coordinate : 26 - Width : 227 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 131 - y coordinate : 290 - Width : 39 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 50 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 7 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 20 - y coordinate : 290 - Width : 100 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 5 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 420 - y coordinate : 290 - Width : 34 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Picture p0 Attributes ID : 1 @@ -469,6 +469,107 @@ Picture p0 Effect Time : 300 Picture ID : 0 +Button bPrev + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 29 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardGrid," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bNext + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 411 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardGrid,bNext" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button bEntity1 Attributes ID : 22 @@ -823,107 +924,6 @@ Button bEntity6 prints tSend.txt,0 prints crcval,2 -Button bNext - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 411 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardGrid,bNext" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bPrev - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 29 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardGrid," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Hotspot mSpecial Attributes ID : 11 @@ -970,26 +970,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 40 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 7 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 39 @@ -1010,27 +990,25 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 -Timer tmLP +Hotspot mSwipePrev Attributes - ID : 37 - Scope : local - Period (ms): 500 - Enabled : no + ID : 40 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 7 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 Events - Timer Event - if(tTmp.txt=="light") - { - page popupLight - } - if(tTmp.txt=="fan") - { - page popupFan - } - if(tTmp.txt=="input_sel") - { - page popupInSel - } + Touch Press Event + click bPrev,1 Timer tmSerial Attributes @@ -1396,6 +1374,28 @@ Timer tmSleep } } +Timer tmLP + Attributes + ID : 37 + Scope : local + Period (ms): 500 + Enabled : no + + Events + Timer Event + if(tTmp.txt=="light") + { + page popupLight + } + if(tTmp.txt=="fan") + { + page popupFan + } + if(tTmp.txt=="input_sel") + { + page popupInSel + } + TouchCap tc0 Attributes ID : 21 diff --git a/HMI/US/landscape/n2t-out-visual/cardMedia.txt b/HMI/US/landscape/n2t-out-visual/cardMedia.txt new file mode 100644 index 00000000..995edc80 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/cardMedia.txt @@ -0,0 +1,1267 @@ +Page cardMedia + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tInstruction,0 + vis tTmp,0 + vis tId,0 + vis t5,0 + vis bPrev,0 + vis bNext,0 + cardMedia.bco=defaultBcoColor + for(sys0=0;sys0<34;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + } + if(defaultBcoColor==0) + { + hVolume.pic=14 + hVolume.pic1=13 + hVolume.pic2=15 + } + +Variable (string) strCommand + Attributes + ID : 6 + Scope : local + Text : + Max. Text Size: 750 + +Variable (string) entn + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 80 + +Variable (string) vaSpeakerList + Attributes + ID : 26 + Scope : local + Text : + Max. Text Size: 400 + +Variable (int32) vaSpeakerPos + Attributes + ID : 27 + Scope: local + Value: 0 + +Variable (string) vaMenu + Attributes + ID : 32 + Scope : local + Text : + Max. Text Size: 50 + +Variable (string) tSend + Attributes + ID : 33 + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 30 + y coordinate : 156 + Width : 27 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 312 + y coordinate : 0 + Width : 100 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 65 + y coordinate : 159 + Width : 30 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 127 + y coordinate : 26 + Width : 228 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTitle + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 78 + Width : 358 + Height : 25 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : right + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tAuthor + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 101 + y coordinate : 108 + Width : 358 + Height : 25 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : right + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text t2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 318 + y coordinate : 145 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,media-next + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="media-next" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text tPlayPause + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 215 + y coordinate : 145 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,media-pause + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="media-pause" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text t0 + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 108 + y coordinate : 145 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,media-back + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="media-back" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text tIcon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 27 + y coordinate : 75 + Width : 71 + Height : 62 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Release Event + if(vaMenu.txt!="") + { + tSend.txt="event,buttonPress2,"+vaMenu.txt+",button" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + } + +Text t1 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 201 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + hVolume.val=hVolume.val-1 + // event,buttonPress2,internalNameEntity,volumeSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," + covx hVolume.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text t3 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 201 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + hVolume.val=hVolume.val+1 + // event,buttonPress2,internalNameEntity,volumeSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," + covx hVolume.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text t4 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 37 + y coordinate : 262 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tSpeaker + Attributes + ID : 24 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 110 + y coordinate : 262 + Width : 267 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,media-next + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="speaker-sel,"+tSpeaker.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Text t6 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 397 + y coordinate : 262 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //speaker + tSpeaker.pco=65535 + spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val + vaSpeakerPos.val+=1 + if(tSpeaker.txt=="") + { + vaSpeakerPos.val=0 + spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val + } + +Text t5 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 145 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 3 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,media-next + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="media-OnOff" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Slider hVolume + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 77 + y coordinate : 206 + Width : 328 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=800 + // event,buttonPress2,internalNameEntity,volumeSlider,50 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," + covx hVolume.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bNext + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 407 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardMedia,bNext" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 25 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardMedia," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Hotspot mSwipeNext + Attributes + ID : 29 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 472 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bNext,1 + +Hotspot mSwipeUp + Attributes + ID : 30 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 0 + Width : 426 + Height : 9 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Hotspot mSwipePrev + Attributes + ID : 31 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 9 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + +Timer tmSerial + Attributes + ID : 5 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -823,503 +1276,15 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 +Dual-state Button bDown2 Attributes - ID : 16 + ID : 42 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 18 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 74 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 186 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 242 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 298 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 354 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 410 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - ID : 52 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 409 - y coordinate : 199 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown - Attributes - ID : 49 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 180 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest.val>xTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 346 + x coordinate : 193 y coordinate : 179 Width : 50 Height : 50 @@ -1345,9 +1310,9 @@ Dual-state Button btDown1 Events Touch Press Event - if(xTempDest1.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1430,16 +1395,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes - ID : 32 + ID : 49 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 346 - y coordinate : 67 + x coordinate : 272 + y coordinate : 180 Width : 50 Height : 50 Effect : load @@ -1456,7 +1421,7 @@ Dual-state Button btUp1 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1464,20 +1429,17 @@ Dual-state Button btUp1 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -1491,6 +1453,44 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 199 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes ID : 34 @@ -1511,26 +1511,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 35 @@ -1551,6 +1531,26 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 +Hotspot mSwipePrev + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 3 diff --git a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt index f6d75112..3d6a46ac 100644 --- a/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt +++ b/HMI/US/landscape/n2t-out-visual/nspanel_US_L_Stats.txt @@ -2,41 +2,77 @@ Program.s 0 Component(s) 11 Line(s) of event code 11 Unique line(s) of event code -p0 - 45 Component(s) - 389 Line(s) of event code - 288 Unique line(s) of event code -bSendStartup +pageIcons + 7 Component(s) + 0 Line(s) of event code + 0 Unique line(s) of event code +pageStartup 19 Component(s) 172 Line(s) of event code 125 Unique line(s) of event code -b0 - 44 Component(s) - 515 Line(s) of event code - 272 Unique line(s) of event code -bNext - 43 Component(s) - 423 Line(s) of event code - 293 Unique line(s) of event code -bEntity1 +popupNotify + 19 Component(s) + 253 Line(s) of event code + 164 Unique line(s) of event code +cardMedia + 34 Component(s) + 394 Line(s) of event code + 213 Unique line(s) of event code +popupLight + 27 Component(s) + 391 Line(s) of event code + 214 Unique line(s) of event code +popupShutter + 25 Component(s) + 394 Line(s) of event code + 216 Unique line(s) of event code +popupFan + 27 Component(s) + 347 Line(s) of event code + 202 Unique line(s) of event code +pageTest + 14 Component(s) + 14 Line(s) of event code + 14 Unique line(s) of event code +screensaver + 45 Component(s) + 389 Line(s) of event code + 288 Unique line(s) of event code +cardGrid 42 Component(s) 478 Line(s) of event code 283 Unique line(s) of event code -arm1 +cardAlarm 40 Component(s) 427 Line(s) of event code 258 Unique line(s) of event code -bDown2 +popupInSel + 34 Component(s) + 529 Line(s) of event code + 257 Unique line(s) of event code +cardQR + 32 Component(s) + 409 Line(s) of event code + 238 Unique line(s) of event code +cardPower + 43 Component(s) + 423 Line(s) of event code + 293 Unique line(s) of event code +popupThermo + 44 Component(s) + 515 Line(s) of event code + 272 Unique line(s) of event code +cardThermo 53 Component(s) 596 Line(s) of event code 313 Unique line(s) of event code -bDown1 +cardEntities 65 Component(s) 1153 Line(s) of event code 527 Unique line(s) of event code Total 17 Page(s) - 351 Component(s) - 4164 Line(s) of event code - 1374 Unique line(s) of event code + 570 Component(s) + 6895 Line(s) of event code + 1794 Unique line(s) of event code diff --git a/HMI/US/landscape/n2t-out-visual/pageIcons.txt b/HMI/US/landscape/n2t-out-visual/pageIcons.txt new file mode 100644 index 00000000..9c8aed93 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/pageIcons.txt @@ -0,0 +1,141 @@ +Page pageIcons + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 65535 + +Variable (string) vaTime + Attributes + ID : 4 + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + ID : 2 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 8 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp2 + Attributes + ID : 3 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 82 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp3 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 152 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + diff --git a/HMI/US/landscape/n2t-out-visual/bSendStartup.txt b/HMI/US/landscape/n2t-out-visual/pageStartup.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/bSendStartup.txt rename to HMI/US/landscape/n2t-out-visual/pageStartup.txt index b019b5e4..bc79cb88 100644 --- a/HMI/US/landscape/n2t-out-visual/bSendStartup.txt +++ b/HMI/US/landscape/n2t-out-visual/pageStartup.txt @@ -78,36 +78,6 @@ Number frame_ptr Horizontal Spacing : 0 Vertical Spacing : 0 -Number frapic_w - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 11 - y coordinate : 100 - Width : 100 - Height : 30 - 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 : 1960 - Significant digits shown : all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Number spinner_w Attributes ID : 11 @@ -138,6 +108,36 @@ Number spinner_w Horizontal Spacing : 0 Vertical Spacing : 0 +Number frapic_w + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 100 + Width : 100 + Height : 30 + 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 : 1960 + Significant digits shown : all + Format : decimal + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Number usual_cnt Attributes ID : 15 @@ -168,17 +168,77 @@ Number usual_cnt Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tSend Attributes - ID : 7 + ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 282 + x coordinate : 0 y coordinate : 0 - Width : 125 + Width : 230 + Height : 23 + 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 + Input Type : character + Text : newtxt + Max. Text Size : 100 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 408 + y coordinate : 0 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 163 + y coordinate : 0 + Width : 119 Height : 30 Effect : load Effect Priority : 0 @@ -198,17 +258,17 @@ Text tId Horizontal Spacing : 0 Vertical Spacing : 0 -Text tInstruction +Text tId Attributes - ID : 6 + ID : 7 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 163 + x coordinate : 282 y coordinate : 0 - Width : 119 + Width : 125 Height : 30 Effect : load Effect Priority : 0 @@ -318,66 +378,6 @@ Text tMsg3 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tSend - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 230 - Height : 23 - 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 - Input Type : character - Text : newtxt - Max. Text Size : 100 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 408 - y coordinate : 0 - Width : 34 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tVersion Attributes ID : 18 diff --git a/HMI/US/landscape/n2t-out-visual/pageTest.txt b/HMI/US/landscape/n2t-out-visual/pageTest.txt new file mode 100644 index 00000000..9205bf4b --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/pageTest.txt @@ -0,0 +1,474 @@ +Page pageTest + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 4226 + + Events + Preinitialize Event + vis p0,0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 12 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : entities + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 347 + y coordinate : 184 + Width : 102 + Height : 63 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : disable recmod + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 64 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : shutter + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 7 + y coordinate : 120 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : light + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 111 + y coordinate : 12 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : thermo + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 113 + y coordinate : 72 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : media + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 341 + y coordinate : 9 + Width : 106 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : screens + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 6 + y coordinate : 175 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : notify + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 115 + y coordinate : 128 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : alarm + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 117 + y coordinate : 184 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : grid + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 349 + y coordinate : 252 + Width : 102 + Height : 63 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 244 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : qr + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/US/landscape/n2t-out-visual/popupFan.txt b/HMI/US/landscape/n2t-out-visual/popupFan.txt new file mode 100644 index 00000000..25f6b9c6 --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/popupFan.txt @@ -0,0 +1,959 @@ +Page popupFan + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + dim=dimValueNormal + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + vis hSpeed,0 + popupFan.bco=defaultBcoColor + for(sys0=0;sys0<24;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(b[sys0].type==53&&defaultBcoColor==0) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + if(defaultBcoColor==0) + { + hSpeed.pic=14 + hSpeed.pic1=13 + hSpeed.pic2=15 + } + +Variable (string) strCommand + Attributes + ID : 12 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) entn + Attributes + ID : 15 + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + ID : 16 + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + ID : 17 + Scope: local + Value: 0 + +Variable (int32) vaModePos + Attributes + ID : 23 + Scope: local + Value: 0 + +Variable (string) vaModeList + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeCur + Attributes + ID : 25 + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) tSend + Attributes + ID : 26 + Scope : local + Text : + Max. Text Size: 200 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 107 + y coordinate : 21 + Width : 263 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 21 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text t1 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 58 + y coordinate : 104 + Width : 211 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 358 + y coordinate : 277 + Width : 97 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 115 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Slider hSpeed + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 59 + y coordinate : 139 + Width : 335 + Height : 43 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=2500 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," + covx hSpeed.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 412 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,popupLight,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode1 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 213 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode3 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 274 + y coordinate : 213 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode2 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 213 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bModeNext + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 403 + y coordinate : 213 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //if(bMode3.txt=="") + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val + if(tTmp.txt=="") + { + vaModePos.val=0 + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + } + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + vaModePos.val+=3 + spstr vaModeList.txt,tTmp.txt,"?",3 + if(tTmp.txt=="") + { + vis bModeNext,0 + }else + { + vis bModeNext,1 + } + bMode1.pco=defaultFontColor + bMode2.pco=defaultFontColor + bMode3.pco=defaultFontColor + if(bMode1.txt==vaModeCur.txt) + { + bMode1.pco=1374 + } + if(bMode2.txt==vaModeCur.txt) + { + bMode2.pco=1374 + } + if(bMode3.txt==vaModeCur.txt) + { + bMode3.pco=1374 + } + +Dual-state Button btOnOff1 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 385 + y coordinate : 79 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : image + Font ID : 0 + Background Picture ID (Unpressed) : 1 + Back. Picture ID (Pressed) : 2 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," + covx btOnOff1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + ID : 10 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + ID : 11 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + ID : 25 + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/landscape/n2t-out-visual/popupNotify.txt b/HMI/US/landscape/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..3f63ad0f --- /dev/null +++ b/HMI/US/landscape/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 421 + y coordinate : 277 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 115 + y coordinate : 290 + Width : 100 + Height : 29 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 26 + Width : 345 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 74 + Width : 397 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 150 + y coordinate : 74 + Width : 285 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 74 + Width : 109 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 412 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 254 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 39 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + ID : 5 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + ID : 6 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -417,239 +672,7 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown +Dual-state Button bDown2 Attributes Scope : local Dragging : 0 @@ -661,45 +684,9 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -760,32 +747,29 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -799,6 +783,22 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes Scope : local @@ -810,7 +810,7 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev +Hotspot mSwipeUp Attributes Scope : local Dragging : 0 @@ -821,7 +821,7 @@ Hotspot mSwipePrev Touch Press Event click bPrev,1 -Hotspot mSwipeUp +Hotspot mSwipePrev Attributes Scope : local Dragging : 0 diff --git a/HMI/US/landscape/n2t-out/pageIcons.txt b/HMI/US/landscape/n2t-out/pageIcons.txt new file mode 100644 index 00000000..5228463c --- /dev/null +++ b/HMI/US/landscape/n2t-out/pageIcons.txt @@ -0,0 +1,61 @@ +Page pageIcons + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + +Variable (string) vaTime + Attributes + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp2 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp3 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + diff --git a/HMI/US/landscape/n2t-out/bSendStartup.txt b/HMI/US/landscape/n2t-out/pageStartup.txt similarity index 100% rename from HMI/US/landscape/n2t-out/bSendStartup.txt rename to HMI/US/landscape/n2t-out/pageStartup.txt index c8c655c5..0636cabd 100644 --- a/HMI/US/landscape/n2t-out/bSendStartup.txt +++ b/HMI/US/landscape/n2t-out/pageStartup.txt @@ -48,15 +48,6 @@ Number frame_ptr Associated Keyboard : none Value : 0 -Number frapic_w - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 1960 - Number spinner_w Attributes Scope : local @@ -66,6 +57,15 @@ Number spinner_w Associated Keyboard : none Value : 140 +Number frapic_w + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Value : 1960 + Number usual_cnt Attributes Scope : local @@ -75,7 +75,27 @@ Number usual_cnt Associated Keyboard : none Value : 0 -Text tId +Text tSend + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : newtxt + Max. Text Size : 100 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction Attributes Scope : local Dragging : 0 @@ -85,7 +105,7 @@ Text tId Text : Max. Text Size : 20 -Text tInstruction +Text tId Attributes Scope : local Dragging : 0 @@ -125,26 +145,6 @@ Text tMsg3 Text : please check your backend configuration Max. Text Size : 100 -Text tSend - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : newtxt - Max. Text Size : 100 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - Text tVersion Attributes Scope : local diff --git a/HMI/US/landscape/n2t-out/pageTest.txt b/HMI/US/landscape/n2t-out/pageTest.txt new file mode 100644 index 00000000..03a79fd7 --- /dev/null +++ b/HMI/US/landscape/n2t-out/pageTest.txt @@ -0,0 +1,192 @@ +Page pageTest + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + vis p0,0 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : entities + Max. Text Size : 10 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : disable recmod + Max. Text Size : 20 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : shutter + Max. Text Size : 10 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : light + Max. Text Size : 10 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : thermo + Max. Text Size : 10 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : media + Max. Text Size : 10 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : screens + Max. Text Size : 10 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : notify + Max. Text Size : 10 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : alarm + Max. Text Size : 10 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : grid + Max. Text Size : 10 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : qr + Max. Text Size : 10 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/US/landscape/n2t-out/popupFan.txt b/HMI/US/landscape/n2t-out/popupFan.txt new file mode 100644 index 00000000..dd78aca7 --- /dev/null +++ b/HMI/US/landscape/n2t-out/popupFan.txt @@ -0,0 +1,666 @@ +Page popupFan + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + dim=dimValueNormal + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + vis hSpeed,0 + popupFan.bco=defaultBcoColor + for(sys0=0;sys0<24;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(b[sys0].type==53&&defaultBcoColor==0) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + if(defaultBcoColor==0) + { + hSpeed.pic=14 + hSpeed.pic1=13 + hSpeed.pic2=15 + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + Scope: local + Value: 0 + +Variable (int32) vaModePos + Attributes + Scope: local + Value: 0 + +Variable (string) vaModeList + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeCur + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Text tEntity + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 25 + +Text tIcon1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text t1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 50 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider hSpeed + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=2500 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," + covx hSpeed.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,popupLight,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bModeNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + //if(bMode3.txt=="") + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val + if(tTmp.txt=="") + { + vaModePos.val=0 + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + } + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + vaModePos.val+=3 + spstr vaModeList.txt,tTmp.txt,"?",3 + if(tTmp.txt=="") + { + vis bModeNext,0 + }else + { + vis bModeNext,1 + } + bMode1.pco=defaultFontColor + bMode2.pco=defaultFontColor + bMode3.pco=defaultFontColor + if(bMode1.txt==vaModeCur.txt) + { + bMode1.pco=1374 + } + if(bMode2.txt==vaModeCur.txt) + { + bMode2.pco=1374 + } + if(bMode3.txt==vaModeCur.txt) + { + bMode3.pco=1374 + } + +Dual-state Button btOnOff1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," + covx btOnOff1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/landscape/n2t-out/popupNotify.txt b/HMI/US/landscape/n2t-out/popupNotify.txt new file mode 100644 index 00000000..3c9399fd --- /dev/null +++ b/HMI/US/landscape/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) -│ - { -│ - h0.val=h0.minval -│ - } -│ - if(sys0h1.maxval) -│ - { -│ - h1.val=h1.minval -│ - } -│ - if(sys0h2.maxval) -│ - { -│ - h2.val=h2.minval -│ - } -│ - if(sys0h3.maxval) -│ - { -│ - h3.val=h3.minval -│ - } -│ - if(sys0h4.maxval) -│ - { -│ - h4.val=h4.minval -│ - } -│ - if(sys0h5.maxval) -│ - { -│ - h5.val=h5.minval -│ - } -│ - if(sys0h0.maxval) -+ { -+ h0.val=h0.minval -+ } -+ if(sys0h1.maxval) -+ { -+ h1.val=h1.minval -+ } -+ if(sys0h2.maxval) -+ { -+ h2.val=h2.minval -+ } -+ if(sys0h3.maxval) -+ { -+ h3.val=h3.minval -+ } -+ if(sys0h4.maxval) -+ { -+ h4.val=h4.minval -+ } -+ if(sys0h5.maxval) -+ { -+ h5.val=h5.minval -+ } -+ if(sys01) + { + bufferPos=0 + while(bufferPosh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -823,503 +1276,15 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 +Dual-state Button bDown2 Attributes - ID : 16 + ID : 39 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 36 - y coordinate : 359 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 102 - y coordinate : 359 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 168 - y coordinate : 359 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 234 - y coordinate : 359 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 36 - y coordinate : 424 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 102 - y coordinate : 424 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 168 - y coordinate : 424 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 234 - y coordinate : 424 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - ID : 52 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 267 - y coordinate : 306 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown - Attributes - ID : 46 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 136 - y coordinate : 289 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest.val>xTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 210 + x coordinate : 57 y coordinate : 288 Width : 50 Height : 50 @@ -1345,9 +1310,9 @@ Dual-state Button btDown1 Events Touch Press Event - if(xTempDest1.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1430,16 +1395,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes - ID : 32 + ID : 46 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 210 - y coordinate : 176 + x coordinate : 136 + y coordinate : 289 Width : 50 Height : 50 Effect : load @@ -1456,7 +1421,7 @@ Dual-state Button btUp1 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1464,20 +1429,17 @@ Dual-state Button btUp1 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -1491,6 +1453,44 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 267 + y coordinate : 306 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes ID : 49 @@ -1511,26 +1511,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 51 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 470 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 50 @@ -1551,6 +1531,26 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 +Hotspot mSwipePrev + Attributes + ID : 51 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 470 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 3 diff --git a/HMI/US/portrait/n2t-out-visual/nspanel_US_P_Stats.txt b/HMI/US/portrait/n2t-out-visual/nspanel_US_P_Stats.txt index 0f8ff21b..670dccc9 100644 --- a/HMI/US/portrait/n2t-out-visual/nspanel_US_P_Stats.txt +++ b/HMI/US/portrait/n2t-out-visual/nspanel_US_P_Stats.txt @@ -2,41 +2,77 @@ Program.s 0 Component(s) 12 Line(s) of event code 12 Unique line(s) of event code -p0 - 45 Component(s) - 389 Line(s) of event code - 288 Unique line(s) of event code -b0 - 34 Component(s) - 529 Line(s) of event code - 257 Unique line(s) of event code -bNext - 34 Component(s) +pageIcons + 7 Component(s) + 0 Line(s) of event code + 0 Unique line(s) of event code +pageTest + 14 Component(s) + 14 Line(s) of event code + 14 Unique line(s) of event code +cardPower + 43 Component(s) + 423 Line(s) of event code + 293 Unique line(s) of event code +popupShutter + 25 Component(s) 394 Line(s) of event code - 213 Unique line(s) of event code -bSendStartup + 216 Unique line(s) of event code +popupLight + 27 Component(s) + 391 Line(s) of event code + 214 Unique line(s) of event code +pageStartup 19 Component(s) 172 Line(s) of event code 125 Unique line(s) of event code -bEntity1 +popupThermo + 44 Component(s) + 515 Line(s) of event code + 272 Unique line(s) of event code +cardQR + 32 Component(s) + 409 Line(s) of event code + 238 Unique line(s) of event code +popupNotify + 19 Component(s) + 253 Line(s) of event code + 164 Unique line(s) of event code +cardMedia + 34 Component(s) + 394 Line(s) of event code + 213 Unique line(s) of event code +popupFan + 27 Component(s) + 347 Line(s) of event code + 202 Unique line(s) of event code +cardGrid 42 Component(s) 478 Line(s) of event code 283 Unique line(s) of event code -arm1 +cardAlarm 40 Component(s) 427 Line(s) of event code 258 Unique line(s) of event code -bDown2 +cardThermo 53 Component(s) 596 Line(s) of event code 313 Unique line(s) of event code -bDown1 +popupInSel + 34 Component(s) + 529 Line(s) of event code + 257 Unique line(s) of event code +screensaver + 45 Component(s) + 389 Line(s) of event code + 288 Unique line(s) of event code +cardEntities 77 Component(s) 1379 Line(s) of event code 614 Unique line(s) of event code Total 17 Page(s) - 344 Component(s) - 4376 Line(s) of event code - 1357 Unique line(s) of event code + 582 Component(s) + 7122 Line(s) of event code + 1869 Unique line(s) of event code diff --git a/HMI/US/portrait/n2t-out-visual/pageIcons.txt b/HMI/US/portrait/n2t-out-visual/pageIcons.txt new file mode 100644 index 00000000..0c803ade --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/pageIcons.txt @@ -0,0 +1,141 @@ +Page pageIcons + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 65535 + +Variable (string) vaTime + Attributes + ID : 4 + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + ID : 2 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 86 + y coordinate : 3 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp2 + Attributes + ID : 3 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 86 + y coordinate : 73 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp3 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 86 + y coordinate : 143 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + diff --git a/HMI/US/portrait/n2t-out-visual/bSendStartup.txt b/HMI/US/portrait/n2t-out-visual/pageStartup.txt similarity index 100% rename from HMI/US/portrait/n2t-out-visual/bSendStartup.txt rename to HMI/US/portrait/n2t-out-visual/pageStartup.txt index fcba7a8c..e0e757f4 100644 --- a/HMI/US/portrait/n2t-out-visual/bSendStartup.txt +++ b/HMI/US/portrait/n2t-out-visual/pageStartup.txt @@ -78,36 +78,6 @@ Number frame_ptr Horizontal Spacing : 0 Vertical Spacing : 0 -Number frapic_w - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 6 - y coordinate : 144 - Width : 100 - Height : 30 - 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 : 1960 - Significant digits shown : all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Number spinner_w Attributes ID : 11 @@ -138,6 +108,36 @@ Number spinner_w Horizontal Spacing : 0 Vertical Spacing : 0 +Number frapic_w + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 6 + y coordinate : 144 + Width : 100 + Height : 30 + 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 : 1960 + Significant digits shown : all + Format : decimal + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Number usual_cnt Attributes ID : 15 @@ -168,17 +168,77 @@ Number usual_cnt Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tSend Attributes - ID : 7 + ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 0 - y coordinate : 25 - Width : 125 + y coordinate : 0 + Width : 230 + Height : 23 + 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 + Input Type : character + Text : newtxt + Max. Text Size : 100 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 127 + y coordinate : 24 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 163 + y coordinate : 0 + Width : 119 Height : 30 Effect : load Effect Priority : 0 @@ -198,17 +258,17 @@ Text tId Horizontal Spacing : 0 Vertical Spacing : 0 -Text tInstruction +Text tId Attributes - ID : 6 + ID : 7 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 163 - y coordinate : 0 - Width : 119 + x coordinate : 0 + y coordinate : 25 + Width : 125 Height : 30 Effect : load Effect Priority : 0 @@ -318,66 +378,6 @@ Text tMsg3 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tSend - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 230 - Height : 23 - 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 - Input Type : character - Text : newtxt - Max. Text Size : 100 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 127 - y coordinate : 24 - Width : 34 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tVersion Attributes ID : 18 diff --git a/HMI/US/portrait/n2t-out-visual/pageTest.txt b/HMI/US/portrait/n2t-out-visual/pageTest.txt new file mode 100644 index 00000000..95767d06 --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/pageTest.txt @@ -0,0 +1,474 @@ +Page pageTest + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 4226 + + Events + Preinitialize Event + vis p0,0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 35 + y coordinate : 20 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : entities + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 39 + y coordinate : 395 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : disable recmod + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 34 + y coordinate : 92 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : shutter + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 35 + y coordinate : 164 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : light + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 184 + y coordinate : 20 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : thermo + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 186 + y coordinate : 92 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : media + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 188 + y coordinate : 308 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : screens + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 34 + y coordinate : 236 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : notify + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 188 + y coordinate : 164 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : alarm + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 190 + y coordinate : 236 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : grid + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 175 + y coordinate : 402 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 38 + y coordinate : 317 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 3 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : qr + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/US/portrait/n2t-out-visual/popupFan.txt b/HMI/US/portrait/n2t-out-visual/popupFan.txt new file mode 100644 index 00000000..9487bf8d --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/popupFan.txt @@ -0,0 +1,959 @@ +Page popupFan + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + dim=dimValueNormal + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + vis hSpeed,0 + popupFan.bco=defaultBcoColor + for(sys0=0;sys0<24;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(b[sys0].type==53&&defaultBcoColor==0) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + if(defaultBcoColor==0) + { + hSpeed.pic=14 + hSpeed.pic1=13 + hSpeed.pic2=15 + } + +Variable (string) strCommand + Attributes + ID : 12 + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) entn + Attributes + ID : 15 + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + ID : 16 + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + ID : 17 + Scope: local + Value: 0 + +Variable (string) vaModeCur + Attributes + ID : 23 + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeList + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 400 + +Variable (int32) vaModePos + Attributes + ID : 25 + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + ID : 26 + Scope : local + Text : + Max. Text Size: 200 + +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 63 + y coordinate : 21 + Width : 192 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 21 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text t1 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 142 + Width : 211 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 50 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 272 + y coordinate : 447 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 450 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 90 + y coordinate : 450 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Slider hSpeed + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 16 + y coordinate : 177 + Width : 250 + Height : 44 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Direction : horizontal + Fill : image + Cursor width : auto + Cursor height : 255 + Back. Picture ID : 5 + Slided Back. Picture ID : 4 + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=2500 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," + covx hSpeed.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 262 + y coordinate : 11 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,popupLight,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode1 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 29 + y coordinate : 256 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode2 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 169 + y coordinate : 255 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 29 + y coordinate : 330 + Width : 120 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bModeNext + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 208 + y coordinate : 330 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 5 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //if(bMode3.txt=="") + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val + if(tTmp.txt=="") + { + vaModePos.val=0 + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + } + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + vaModePos.val+=3 + spstr vaModeList.txt,tTmp.txt,"?",3 + if(tTmp.txt=="") + { + vis bModeNext,0 + }else + { + vis bModeNext,1 + } + bMode1.pco=defaultFontColor + bMode2.pco=defaultFontColor + bMode3.pco=defaultFontColor + if(bMode1.txt==vaModeCur.txt) + { + bMode1.pco=1374 + } + if(bMode2.txt==vaModeCur.txt) + { + bMode2.pco=1374 + } + if(bMode3.txt==vaModeCur.txt) + { + bMode3.pco=1374 + } + +Dual-state Button btOnOff1 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 260 + y coordinate : 117 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : image + Font ID : 0 + Background Picture ID (Unpressed) : 1 + Back. Picture ID (Pressed) : 2 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," + covx btOnOff1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + ID : 10 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + ID : 11 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + ID : 25 + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out-visual/popupNotify.txt b/HMI/US/portrait/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..cb3e696c --- /dev/null +++ b/HMI/US/portrait/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 281 + y coordinate : 409 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 13 + y coordinate : 409 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 113 + y coordinate : 410 + Width : 100 + Height : 29 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 21 + Width : 260 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 4 + y coordinate : 76 + Width : 307 + Height : 260 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 4 + y coordinate : 164 + Width : 306 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 3 + y coordinate : 74 + Width : 308 + Height : 90 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 319 + Height : 479 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 268 + y coordinate : 14 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 162 + y coordinate : 348 + Width : 150 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 5 + y coordinate : 348 + Width : 150 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + ID : 5 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + ID : 6 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -417,239 +672,7 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown +Dual-state Button bDown2 Attributes Scope : local Dragging : 0 @@ -661,45 +684,9 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -760,32 +747,29 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -799,6 +783,22 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes Scope : local @@ -810,7 +810,7 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev +Hotspot mSwipeUp Attributes Scope : local Dragging : 0 @@ -821,7 +821,7 @@ Hotspot mSwipePrev Touch Press Event click bPrev,1 -Hotspot mSwipeUp +Hotspot mSwipePrev Attributes Scope : local Dragging : 0 diff --git a/HMI/US/portrait/n2t-out/pageIcons.txt b/HMI/US/portrait/n2t-out/pageIcons.txt new file mode 100644 index 00000000..5228463c --- /dev/null +++ b/HMI/US/portrait/n2t-out/pageIcons.txt @@ -0,0 +1,61 @@ +Page pageIcons + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + +Variable (string) vaTime + Attributes + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp2 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp3 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + diff --git a/HMI/US/portrait/n2t-out/bSendStartup.txt b/HMI/US/portrait/n2t-out/pageStartup.txt similarity index 100% rename from HMI/US/portrait/n2t-out/bSendStartup.txt rename to HMI/US/portrait/n2t-out/pageStartup.txt index a2c87923..3bc12fe2 100644 --- a/HMI/US/portrait/n2t-out/bSendStartup.txt +++ b/HMI/US/portrait/n2t-out/pageStartup.txt @@ -48,15 +48,6 @@ Number frame_ptr Associated Keyboard : none Value : 0 -Number frapic_w - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 1960 - Number spinner_w Attributes Scope : local @@ -66,6 +57,15 @@ Number spinner_w Associated Keyboard : none Value : 140 +Number frapic_w + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Value : 1960 + Number usual_cnt Attributes Scope : local @@ -75,7 +75,27 @@ Number usual_cnt Associated Keyboard : none Value : 0 -Text tId +Text tSend + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : newtxt + Max. Text Size : 100 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction Attributes Scope : local Dragging : 0 @@ -85,7 +105,7 @@ Text tId Text : Max. Text Size : 20 -Text tInstruction +Text tId Attributes Scope : local Dragging : 0 @@ -125,26 +145,6 @@ Text tMsg3 Text : pls check your backend configuration Max. Text Size : 100 -Text tSend - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : newtxt - Max. Text Size : 100 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - Text tVersion Attributes Scope : local diff --git a/HMI/US/portrait/n2t-out/pageTest.txt b/HMI/US/portrait/n2t-out/pageTest.txt new file mode 100644 index 00000000..03a79fd7 --- /dev/null +++ b/HMI/US/portrait/n2t-out/pageTest.txt @@ -0,0 +1,192 @@ +Page pageTest + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + vis p0,0 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : entities + Max. Text Size : 10 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : disable recmod + Max. Text Size : 20 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : shutter + Max. Text Size : 10 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : light + Max. Text Size : 10 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : thermo + Max. Text Size : 10 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : media + Max. Text Size : 10 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : screens + Max. Text Size : 10 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : notify + Max. Text Size : 10 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : alarm + Max. Text Size : 10 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : grid + Max. Text Size : 10 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : qr + Max. Text Size : 10 + + Events + Touch Press Event + page cardQR + diff --git a/HMI/US/portrait/n2t-out/popupFan.txt b/HMI/US/portrait/n2t-out/popupFan.txt new file mode 100644 index 00000000..1334b4ae --- /dev/null +++ b/HMI/US/portrait/n2t-out/popupFan.txt @@ -0,0 +1,666 @@ +Page popupFan + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + dim=dimValueNormal + //get entitiy name + tEntity.txt=pageIcons.tTmp1.txt + //get entity id + entn.txt=pageIcons.tTmp2.txt + tIcon1.txt=pageIcons.tTmp3.txt + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + //page open event + // event,pageOpenDetail,typeOfPage,tEntityName + // craft command + tSend.txt="event,pageOpenDetail,popupFan,"+entn.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + vis hSpeed,0 + popupFan.bco=defaultBcoColor + for(sys0=0;sys0<24;sys0++) + { + if(b[sys0].type==98||b[sys0].type==116) + { + b[sys0].bco=defaultBcoColor + b[sys0].pco=defaultFontColor + } + if(b[sys0].type==53&&defaultBcoColor==0) + { + b[sys0].pic=10 + b[sys0].pic2=11 + } + } + if(defaultBcoColor==0) + { + hSpeed.pic=14 + hSpeed.pic1=13 + hSpeed.pic2=15 + } + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 500 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 80 + +Variable (int32) mode + Attributes + Scope: local + Value: 1 + +Variable (int32) mode_temp + Attributes + Scope: local + Value: 0 + +Variable (string) vaModeCur + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeList + Attributes + Scope : local + Text : + Max. Text Size: 400 + +Variable (int32) vaModePos + Attributes + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Text tEntity + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 25 + +Text tIcon1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text t1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 50 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Slider hSpeed + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Position : 50 + Upper range limit : 100 + Lower range limit : 0 + + Events + Touch Release Event + tmCooldown.en=1 + tmCooldown.tim=2500 + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",number-set," + covx hSpeed.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,popupLight,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bMode3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 40 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-preset_modes,"+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bModeNext + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 5 + + Events + Touch Press Event + //if(bMode3.txt=="") + spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val + if(tTmp.txt=="") + { + vaModePos.val=0 + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + } + spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val + spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1 + spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2 + vaModePos.val+=3 + spstr vaModeList.txt,tTmp.txt,"?",3 + if(tTmp.txt=="") + { + vis bModeNext,0 + }else + { + vis bModeNext,1 + } + bMode1.pco=defaultFontColor + bMode2.pco=defaultFontColor + bMode3.pco=defaultFontColor + if(bMode1.txt==vaModeCur.txt) + { + bMode1.pco=1374 + } + if(bMode2.txt==vaModeCur.txt) + { + bMode2.pco=1374 + } + if(bMode3.txt==vaModeCur.txt) + { + bMode3.pco=1374 + } + +Dual-state Button btOnOff1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff," + covx btOnOff1.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/US/portrait/n2t-out/popupNotify.txt b/HMI/US/portrait/n2t-out/popupNotify.txt new file mode 100644 index 00000000..3c9399fd --- /dev/null +++ b/HMI/US/portrait/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys0h0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -823,503 +1276,15 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 +Dual-state Button bDown2 Attributes - ID : 16 + ID : 42 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 12 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 66 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 120 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 174 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 228 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 282 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 336 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 390 - y coordinate : 254 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - ID : 52 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 391 - y coordinate : 200 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown - Attributes - ID : 49 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 257 - y coordinate : 180 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest.val>xTempMin1.val) - { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 331 + x coordinate : 178 y coordinate : 179 Width : 50 Height : 50 @@ -1345,9 +1310,9 @@ Dual-state Button btDown1 Events Touch Press Event - if(xTempDest1.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1430,16 +1395,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes - ID : 32 + ID : 49 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 331 - y coordinate : 67 + x coordinate : 257 + y coordinate : 180 Width : 50 Height : 50 Effect : load @@ -1456,7 +1421,7 @@ Dual-state Button btUp1 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1464,20 +1429,17 @@ Dual-state Button btUp1 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -1491,6 +1453,44 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 391 + y coordinate : 200 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes ID : 34 @@ -1511,26 +1511,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 9 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipeUp Attributes ID : 35 @@ -1551,6 +1531,26 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 +Hotspot mSwipePrev + Attributes + ID : 36 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 9 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 3 diff --git a/HMI/n2t-out-visual/nspanel_Stats.txt b/HMI/n2t-out-visual/nspanel_Stats.txt index af00d499..e41ddaa6 100644 --- a/HMI/n2t-out-visual/nspanel_Stats.txt +++ b/HMI/n2t-out-visual/nspanel_Stats.txt @@ -2,41 +2,77 @@ Program.s 0 Component(s) 13 Line(s) of event code 13 Unique line(s) of event code -p0 +pageIcons + 7 Component(s) + 0 Line(s) of event code + 0 Unique line(s) of event code +pageTest + 20 Component(s) + 65 Line(s) of event code + 62 Unique line(s) of event code +popupShutter + 25 Component(s) + 394 Line(s) of event code + 216 Unique line(s) of event code +popupLight + 27 Component(s) + 391 Line(s) of event code + 214 Unique line(s) of event code +screensaver 45 Component(s) 389 Line(s) of event code 288 Unique line(s) of event code -b0 - 44 Component(s) - 515 Line(s) of event code - 272 Unique line(s) of event code -bSendStartup +popupNotify + 19 Component(s) + 253 Line(s) of event code + 164 Unique line(s) of event code +pageStartup 19 Component(s) 172 Line(s) of event code 125 Unique line(s) of event code -bNext - 43 Component(s) - 423 Line(s) of event code - 293 Unique line(s) of event code -bEntity1 +cardQR + 32 Component(s) + 409 Line(s) of event code + 238 Unique line(s) of event code +cardGrid 42 Component(s) 478 Line(s) of event code 283 Unique line(s) of event code -bDown2 +cardMedia + 34 Component(s) + 394 Line(s) of event code + 213 Unique line(s) of event code +cardThermo 53 Component(s) 596 Line(s) of event code 313 Unique line(s) of event code -arm1 +popupInSel + 34 Component(s) + 529 Line(s) of event code + 257 Unique line(s) of event code +popupFan + 27 Component(s) + 347 Line(s) of event code + 202 Unique line(s) of event code +cardAlarm 40 Component(s) 427 Line(s) of event code 258 Unique line(s) of event code -bDown1 +popupThermo + 44 Component(s) + 515 Line(s) of event code + 272 Unique line(s) of event code +cardPower + 43 Component(s) + 423 Line(s) of event code + 293 Unique line(s) of event code +cardEntities 65 Component(s) 1153 Line(s) of event code 527 Unique line(s) of event code Total 17 Page(s) - 351 Component(s) - 4166 Line(s) of event code - 1376 Unique line(s) of event code + 576 Component(s) + 6948 Line(s) of event code + 1809 Unique line(s) of event code diff --git a/HMI/n2t-out-visual/pageIcons.txt b/HMI/n2t-out-visual/pageIcons.txt new file mode 100644 index 00000000..e32041af --- /dev/null +++ b/HMI/n2t-out-visual/pageIcons.txt @@ -0,0 +1,141 @@ +Page pageIcons + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 65535 + +Variable (string) vaTime + Attributes + ID : 4 + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + ID : 5 + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + ID : 2 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 8 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp2 + Attributes + ID : 3 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 82 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 80 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp3 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 302 + y coordinate : 154 + Width : 146 + Height : 69 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + diff --git a/HMI/n2t-out-visual/bSendStartup.txt b/HMI/n2t-out-visual/pageStartup.txt similarity index 100% rename from HMI/n2t-out-visual/bSendStartup.txt rename to HMI/n2t-out-visual/pageStartup.txt index 47cc0e13..e8521679 100644 --- a/HMI/n2t-out-visual/bSendStartup.txt +++ b/HMI/n2t-out-visual/pageStartup.txt @@ -78,36 +78,6 @@ Number frame_ptr Horizontal Spacing : 0 Vertical Spacing : 0 -Number frapic_w - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 11 - y coordinate : 100 - Width : 100 - Height : 30 - 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 : 1960 - Significant digits shown : all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Number spinner_w Attributes ID : 11 @@ -138,6 +108,36 @@ Number spinner_w Horizontal Spacing : 0 Vertical Spacing : 0 +Number frapic_w + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 11 + y coordinate : 100 + Width : 100 + Height : 30 + 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 : 1960 + Significant digits shown : all + Format : decimal + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Number usual_cnt Attributes ID : 15 @@ -168,17 +168,77 @@ Number usual_cnt Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tSend Attributes - ID : 7 + ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 282 + x coordinate : 0 y coordinate : 0 - Width : 125 + Width : 230 + Height : 23 + 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 + Input Type : character + Text : newtxt + Max. Text Size : 100 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 408 + y coordinate : 0 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 163 + y coordinate : 0 + Width : 119 Height : 30 Effect : load Effect Priority : 0 @@ -198,17 +258,17 @@ Text tId Horizontal Spacing : 0 Vertical Spacing : 0 -Text tInstruction +Text tId Attributes - ID : 6 + ID : 7 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 163 + x coordinate : 282 y coordinate : 0 - Width : 119 + Width : 125 Height : 30 Effect : load Effect Priority : 0 @@ -318,66 +378,6 @@ Text tMsg3 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tSend - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 230 - Height : 23 - 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 - Input Type : character - Text : newtxt - Max. Text Size : 100 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 408 - y coordinate : 0 - Width : 34 - Height : 30 - 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 - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tVersion Attributes ID : 18 diff --git a/HMI/n2t-out-visual/pageTest.txt b/HMI/n2t-out-visual/pageTest.txt new file mode 100644 index 00000000..e8cc6c6d --- /dev/null +++ b/HMI/n2t-out-visual/pageTest.txt @@ -0,0 +1,643 @@ +Page pageTest + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 4226 + + Events + Preinitialize Event + vis p0,0 + recmod=1 + bauds=115200 + +Variable (string) tInstruction + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + ID : 17 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 40 + +Text tBench + Attributes + ID : 15 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 288 + y coordinate : 90 + Width : 152 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 479 + Height : 319 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : entities + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 347 + y coordinate : 184 + Width : 102 + Height : 63 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : disable recmod + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 49 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : shutter + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 96 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : light + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 0 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : thermo + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 49 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : media + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 341 + y coordinate : 9 + Width : 106 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : screens + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 146 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : notify + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 98 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : alarm + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 145 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : grid + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 349 + y coordinate : 252 + Width : 102 + Height : 63 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 0 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 195 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : qr + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardQR + +Button b12 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 242 + Width : 100 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : 3D auto + Font ID : 1 + Back. Color : 50712 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 0 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : power + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + page cardPower + +Timer tmSerial + Attributes + ID : 14 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + ID : 25 + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + ID : 13 + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out-visual/popupNotify.txt b/HMI/n2t-out-visual/popupNotify.txt new file mode 100644 index 00000000..86f1cd78 --- /dev/null +++ b/HMI/n2t-out-visual/popupNotify.txt @@ -0,0 +1,724 @@ +Page popupNotify + Attributes + ID : 0 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + Width : 480 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + Fill : solid color + Back. Color : 6371 + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + ID : 15 + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + ID : 16 + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 406 + y coordinate : 277 + Width : 34 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 290 + Width : 100 + Height : 30 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tId + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 100 + y coordinate : 290 + Width : 100 + Height : 29 + 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 + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 10 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 26 + Width : 345 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tText + Attributes + ID : 11 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 74 + Width : 397 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTextAlt + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 135 + y coordinate : 74 + Width : 285 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 500 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 23 + y coordinate : 74 + Width : 109 + Height : 171 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 250 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Picture p0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 0 + Width : 480 + Height : 320 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Picture ID : 0 + +Button b0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 397 + y coordinate : 8 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 239 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 261 + Width : 182 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 8 + Back. Color (Pressed) : 1024 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + ID : 5 + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + ID : 6 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPosh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys01) + { + bufferPos=0 + while(bufferPosxTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -417,239 +672,7 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : pressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDetail - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tHeading.txt - pageIcons.tTmp2.txt=entn.txt - page popupThermo - -Dual-state Button btDown +Dual-state Button bDown2 Attributes Scope : local Dragging : 0 @@ -661,45 +684,9 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest.val=xTempDest.val-xTempStep1.val - } - // event,buttonPress2,entn,tempUpd,X - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+="tempUpd," - //convert temperature - covx xTempDest.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btDown1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - if(xTempDest1.val>xTempMin1.val) - { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -760,32 +747,29 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btUp1 +Dual-state Button btDown Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest1.valxTempMin1.val) { - xTempDest1.val=xTempDest1.val+xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - tSend.txt+="tempUpdHighLow," + tSend.txt+="tempUpd," //convert temperature - covx xTempDest1.val,tTmp.txt,0,0 - tSend.txt+=tTmp.txt - tSend.txt+="|" - covx xTempDest2.val,tTmp.txt,0,0 + covx xTempDest.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 @@ -799,6 +783,22 @@ Dual-state Button btUp1 prints tSend.txt,0 prints crcval,2 +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + Hotspot mSwipeNext Attributes Scope : local @@ -810,7 +810,7 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipePrev +Hotspot mSwipeUp Attributes Scope : local Dragging : 0 @@ -821,7 +821,7 @@ Hotspot mSwipePrev Touch Press Event click bPrev,1 -Hotspot mSwipeUp +Hotspot mSwipePrev Attributes Scope : local Dragging : 0 diff --git a/HMI/n2t-out/pageIcons.txt b/HMI/n2t-out/pageIcons.txt new file mode 100644 index 00000000..5228463c --- /dev/null +++ b/HMI/n2t-out/pageIcons.txt @@ -0,0 +1,61 @@ +Page pageIcons + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + +Variable (string) vaTime + Attributes + Scope : global + Text : + Max. Text Size: 15 + +Variable (string) vaDate + Attributes + Scope : global + Text : + Max. Text Size: 35 + +Text tTmp1 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp2 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 80 + +Text tTmp3 + Attributes + Scope : global + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + diff --git a/HMI/n2t-out/bSendStartup.txt b/HMI/n2t-out/pageStartup.txt similarity index 100% rename from HMI/n2t-out/bSendStartup.txt rename to HMI/n2t-out/pageStartup.txt index 4460c2ee..529d134b 100644 --- a/HMI/n2t-out/bSendStartup.txt +++ b/HMI/n2t-out/pageStartup.txt @@ -48,15 +48,6 @@ Number frame_ptr Associated Keyboard : none Value : 0 -Number frapic_w - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Value : 1960 - Number spinner_w Attributes Scope : local @@ -66,6 +57,15 @@ Number spinner_w Associated Keyboard : none Value : 140 +Number frapic_w + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Value : 1960 + Number usual_cnt Attributes Scope : local @@ -75,7 +75,27 @@ Number usual_cnt Associated Keyboard : none Value : 0 -Text tId +Text tSend + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : newtxt + Max. Text Size : 100 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction Attributes Scope : local Dragging : 0 @@ -85,7 +105,7 @@ Text tId Text : Max. Text Size : 20 -Text tInstruction +Text tId Attributes Scope : local Dragging : 0 @@ -125,26 +145,6 @@ Text tMsg3 Text : please check your backend configuration Max. Text Size : 100 -Text tSend - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : newtxt - Max. Text Size : 100 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - Text tVersion Attributes Scope : local diff --git a/HMI/n2t-out/pageTest.txt b/HMI/n2t-out/pageTest.txt new file mode 100644 index 00000000..48071982 --- /dev/null +++ b/HMI/n2t-out/pageTest.txt @@ -0,0 +1,315 @@ +Page pageTest + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + vis p0,0 + recmod=1 + bauds=115200 + +Variable (string) tInstruction + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 40 + +Text tBench + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : entities + Max. Text Size : 10 + + Events + Touch Press Event + page cardEntities + +Button b3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : disable recmod + Max. Text Size : 20 + + Events + Touch Press Event + recmod=0 + +Button b6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : shutter + Max. Text Size : 10 + + Events + Touch Press Event + page popupShutter + +Button b4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : light + Max. Text Size : 10 + + Events + Touch Press Event + page popupLight + +Button b5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : thermo + Max. Text Size : 10 + + Events + Touch Press Event + page cardThermo + +Button b7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : media + Max. Text Size : 10 + + Events + Touch Press Event + page cardMedia + +Button b8 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : screens + Max. Text Size : 10 + + Events + Touch Press Event + dimValue=50 + page screensaver + +Button b9 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : notify + Max. Text Size : 10 + + Events + Touch Press Event + page popupNotify + +Button b10 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : alarm + Max. Text Size : 10 + + Events + Touch Press Event + page cardAlarm + +Button b11 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : grid + Max. Text Size : 10 + + Events + Touch Press Event + page cardGrid + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : bauds=115200 + Max. Text Size : 20 + + Events + Touch Press Event + bauds=115200 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : qr + Max. Text Size : 10 + + Events + Touch Press Event + page cardQR + +Button b12 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : power + Max. Text Size : 10 + + Events + Touch Press Event + page cardPower + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos isn't supported + if(tTmp.txt=="disable") + { + vis t0,0 + vis bColor,0 + vis pColorWheel,0 + }else + { + vis t0,1 + //only enable bColor button if color temp is also supported + if(mode_temp.val==1) + { + vis bColor,1 + } + if(mode.val==0) + { + vis pColorWheel,1 + } + } + // set t0 Color (Localization) + spstr strCommand.txt,t0.txt,"~",8 + // set t4 Temperature (Localization) + spstr strCommand.txt,t4.txt,"~",9 + // set t1 Brightness (Localization) + spstr strCommand.txt,t1.txt,"~",10 + } + if(tInstruction.txt=="time") + { + // get set time to global variable + spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 + } + if(tInstruction.txt=="date") + { + // get set date to global variable + spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 + } + if(tInstruction.txt=="dimmode") + { + // get value + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,dimValue,0,0 + // get value normal + spstr strCommand.txt,tTmp.txt,"~",2 + covx tTmp.txt,dimValueNormal,0,0 + dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } + } + if(tInstruction.txt=="timeout") + { + //set timeout to global var + spstr strCommand.txt,tTmp.txt,"~",1 + covx tTmp.txt,sleepTimeout,0,0 + } + if(tInstruction.txt=="pageType") + { + //command format pageType,specialPageName + //write name of speical page to tId + spstr strCommand.txt,tId.txt,"~",1 + //save second arg if there's one + spstr strCommand.txt,tTmp.txt,"~",2 + //save third arg if there's one + spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 + spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 + //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... + udelete payloadLength-1 + bufferPos=0 + if(tId.txt=="pageStartup") + { + page pageStartup + } + if(tId.txt=="screensaver") + { + page screensaver + } + if(tId.txt=="cardEntities") + { + page cardEntities + } + if(tId.txt=="cardGrid") + { + page cardGrid + } + if(tId.txt=="popupLight") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupLight + } + if(tId.txt=="popupShutter") + { + pageIcons.tTmp1.txt=tTmp.txt + page popupShutter + } + if(tId.txt=="popupNotify") + { + page popupNotify + } + if(tId.txt=="cardThermo") + { + page cardThermo + } + if(tId.txt=="cardMedia") + { + page cardMedia + } + if(tId.txt=="cardAlarm") + { + page cardAlarm + } + if(tId.txt=="cardQR") + { + page cardQR + } + if(tId.txt=="cardPower") + { + page cardPower + } + } + // end of user code + udelete payloadLength-1 + bufferPos=0 + } + } + } + } + // next character + bufferPos++ + } + } + +Timer tmCooldown + Attributes + Scope : local + Period (ms): 100 + Enabled : no + + Events + Timer Event + tmCooldown.en=0 + +TouchCap tc0 + Attributes + Scope: local + Value: 0 + + Events + Touch Press Event + sleepValue=0 + diff --git a/HMI/n2t-out/popupNotify.txt b/HMI/n2t-out/popupNotify.txt new file mode 100644 index 00000000..3c9399fd --- /dev/null +++ b/HMI/n2t-out/popupNotify.txt @@ -0,0 +1,493 @@ +Page popupNotify + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID : disabled + + Events + Preinitialize Event + popupNotify.bco=defaultBcoColor + dim=dimValueNormal + vis p0,0 + vis tSend,0 + vis tTmp,0 + vis tInstruction,0 + vis tId,0 + popupNotify.bco=defaultBcoColor + tHeading.bco=defaultBcoColor + b0.bco=defaultBcoColor + tText.bco=defaultBcoColor + b1.bco=defaultBcoColor + b2.bco=defaultBcoColor + tIcon.bco=defaultBcoColor + tTextAlt.bco=defaultBcoColor + tHeading.pco=defaultFontColor + b0.pco=defaultFontColor + tText.pco=defaultFontColor + b1.pco=defaultFontColor + b2.pco=defaultFontColor + vis tIcon,0 + vis tTextAlt,0 + tIcon.pco=defaultFontColor + tTextAlt.pco=defaultFontColor + +Variable (string) strCommand + Attributes + Scope : local + Text : + Max. Text Size: 1000 + +Variable (string) entn + Attributes + Scope : local + Text : + Max. Text Size: 30 + +Variable (int32) vaOldSleepT + Attributes + Scope: local + Value: 0 + +Variable (string) tSend + Attributes + Scope : local + Text : + Max. Text Size: 200 + +Text tTmp + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 10 + +Text tInstruction + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tId + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 20 + +Text tHeading + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 40 + +Text tText + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tTextAlt + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 500 + +Text tIcon + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Associated Keyboard : none + Text : + Max. Text Size : 250 + +Picture p0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + +Button b0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + tSend.txt="event,buttonPress2,popupNotify,bExit" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button b1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + sleepTimeout=vaOldSleepT.val + //craft command + tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Timer tmSleep + Attributes + Scope : local + Period (ms): 1000 + Enabled : yes + + Events + Timer Event + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } + +Timer tmSerial + Attributes + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + // data available + if(usize>1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos1) + { + bufferPos=0 + while(bufferPos Instructions for users of HomeAssistant Core installed through docker containers. -In case you have a homeassistant setup using docker cotainers and the Add-on Store is not available to you, you can follow this guide for setting up AppDaemon. [AppDaemon Docker Tutorial](https://appdaemon.readthedocs.io/en/latest/DOCKER_TUTORIAL.html). +In case you have a homeassistant setup using docker cotainers and the Add-on Store is not available to you, you can follow this guide for setting up AppDaemon. https://appdaemon.readthedocs.io/en/latest/DOCKER_TUTORIAL.html Please also pay attention to the correct volume mount for the conf folder of appdaemon, that has to point to the appdaemon folder within your homeassistant config folder. Here is an example docker compose file for homeassistant and appdaemon: @@ -93,4 +93,4 @@ Now, to install NSPanel Lovelace UI Backend with HACS, follow these steps: `Download this repository with HACS` 6. A confirmation panel will appear, click on `Download`, and wait for HACS to proceed with the download -7. The Backend Application is now installed, and HACS will inform you when updates are available \ No newline at end of file +7. The Backend Application is now installed, and HACS will inform you when updates are available diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index b8c66cf4..a205d0fd 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -63,12 +63,13 @@ ReleaseNotes: - 26.10.2022 - v3.5.0.1 Fix Thermostat for tado Support (by Sternmiere) - 27.10.2022 - v3.5.0.1 Add VirtualDevice Gate - 27.10.2022 - v3.5.0.2 Applied Boy Scout Rule (Fixed some typos, changed var to let, fixed min/max colorTemp Bug) + - 27.10.2022 - v3.5.0.3 Fixed Media Play/Pause icon for alexa (and others) devices Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Relais) genutzt werden -Tasmota Konsole: +Tasmota Konsole: Rule2 on Button1#state do Publish %topic%/%prefix%/RESULT {"CustomRecv":"event,button1"} endon on Button2#state do Publish %topic%/%prefix%/RESULT {"CustomRecv":"event,button2"} endon Rule2 1 (Rule aktivieren) - Rule2 0 (Rule deaktivieren) + Rule2 0 (Rule deaktivieren) Mögliche Seiten-Ansichten: screensaver Page - wird nach definiertem Zeitraum (config) mit Dimm-Modus aktiv (Uhrzeit, Datum, Aktuelle Temperatur mit Symbol) @@ -86,39 +87,39 @@ Popup-Pages: popupNotify Page - Info - Seite mit Headline Text und Buttons - Intern für manuelle Updates / Extern zur Befüllung von Datenpunkten unter 0_userdata screensaver Notify - Über zwei externe Datenpunkte in 0_userdata können "Headline" und "Text" an den Screensaver zur Info gesendet werden -Mögliche Aliase: (Vorzugsweise mit ioBroker-Adapter "Geräte verwalten" konfigurieren, da SET, GET, ACTUAL, etc. verwendet werden) +Mögliche Aliase: (Vorzugsweise mit ioBroker-Adapter "Geräte verwalten" konfigurieren, da SET, GET, ACTUAL, etc. verwendet werden) Info - Werte aus Datenpunkt Schieberegler - Slider numerische Werte (SET/ACTUAL) - Lautstärke - Volume (SET/ACTUAL) und MUTE - Lautstärke-Gruppe - analog Lautstärke + Lautstärke - Volume (SET/ACTUAL) und MUTE + Lautstärke-Gruppe - analog Lautstärke Licht - An/Aus (Schalter) Steckdose - An/Aus (Schalter) Dimmer - An/Aus, Brightness - Farbtemperatur - An/Aus, Farbtemperatur und Brightness - HUE-Licht - Zum Schalten von Color-Leuchtmitteln über HUE-Wert, Brightness, Farbtemperatur, An/Aus (HUE kann auch fehlen) - RGB-Licht - RGB-Leuchtmitteln/Stripes welche Rot/Grün/ und Blau separat benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur - RGB-Licht-einzeln - RGB-Leuchtmitteln/Stripes welche HEX-Farbwerte benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur - Jalousien - Up, Stop, Down, Position - Fenster - Sensor open - Tür - Sensor open + Farbtemperatur - An/Aus, Farbtemperatur und Brightness + HUE-Licht - Zum Schalten von Color-Leuchtmitteln über HUE-Wert, Brightness, Farbtemperatur, An/Aus (HUE kann auch fehlen) + RGB-Licht - RGB-Leuchtmitteln/Stripes welche Rot/Grün/ und Blau separat benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur + RGB-Licht-einzeln - RGB-Leuchtmitteln/Stripes welche HEX-Farbwerte benötigen (Tasmota, WifiLight, etc.) + Brightness, Farbtemperatur + Jalousien - Up, Stop, Down, Position + Fenster - Sensor open + Tür - Sensor open Verschluss - Türschloss SET/ACTUAL/OPEN Taste - Für Szenen oder Radiosender, etc. --> Nur Funktionsaufruf - Kein Taster wie MonoButton - True/False Tastensensor - analog Taste - Thermostat - Aktuelle Raumtemperatur, Setpoint, etc. + Thermostat - Aktuelle Raumtemperatur, Setpoint, etc. Klimaanlage - Buttons zur Steuerung der Klimaanlage im unteren Bereich Temperatur - Anzeige von Temperatur - Datenpunkten, analog Info Feuchtigkeit - Anzeige von Humidity - Datenpunkten, analog Info - Medien - Steuerung von Alexa - Über Alias-Manager im Verzeichnis Player automatisch anlegen (Geräte-Manager funktioniert nicht) + Medien - Steuerung von Alexa - Über Alias-Manager im Verzeichnis Player automatisch anlegen (Geräte-Manager funktioniert nicht) Wettervorhersage - Aktuelle Außen-Temperatur (Temp) und aktuelles AccuWeather-Icon (Icon) für Screensaver Interne Sonoff-Sensoren (über Tasmota): ESP-Temperatur - wird in 0_userdata.0. abgelegt, kann als Alias importiert werden --> SetOption146 1 Temperatur - Raumtemperatur - wird in 0_userdata.0. abgelegt, kann als Alias importiert werden - (!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!! + (!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!! ggf. Offset einplanen oder besser einen externen Sensor über Zigbee etc. verwenden) Timestamp - wird in 0_userdata.0. Zeitpunkt der letzten Sensorübertragung -Tasmota-Status0 - (zyklische Ausführung) +Tasmota-Status0 - (zyklische Ausführung) liefert relevanten Tasmota-Informationen und kann bei Bedarf in "function get_tasmota_status0()" erweitert werden. Daten werden in 0_userdata.0. abgelegt Erforderliche Adapter: @@ -133,7 +134,7 @@ Upgrades in Konsole: Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1 TFT EU STABLE Version : FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v3.5.0.tft --------------------------------------------------------------------------------------- -*/ +*/ let Icons = new IconsSelector(); let timeoutSlider: any; let manually_Update = false; @@ -357,7 +358,7 @@ let Subpages_1: PageEntities = }; //Subpage 2 von Subpages_1 - let WLAN: PageQR = + let WLAN: PageQR = { "type": "cardQR", "heading": "Gäste WLAN", @@ -397,65 +398,65 @@ let Radiosender: PageGrid = // NEW: Neue Definition von Medien-Aliasen // adapterPlayerInstance = alexa2.0. or spotify-premium.0. or sonos.0. or chromecast.0. // MEDIA ALIASE können auch per JS-Script erstellt werden https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen#medien---cardmedia -let Alexa: PageMedia = +let Alexa: PageMedia = { "type": "cardMedia", "heading": "Alexa", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerAlexa2", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerAlexa2", adapterPlayerInstance: "alexa2.0.", - mediaDevice: "G0XXXXXXXXXXXXXX", + mediaDevice: "G0XXXXXXXXXXXXXX", speakerList: ['Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'] }] }; -let Sonos: PageMedia = +let Sonos: PageMedia = { "type": "cardMedia", "heading": "Sonos", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerSonos", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerSonos", adapterPlayerInstance: "sonos.0.", mediaDevice: "192_168_1_212", speakerList: ['Terrasse'] }] }; -let SpotifyPremium: PageMedia = +let SpotifyPremium: PageMedia = { "type": "cardMedia", "heading": "Spotify-Premium", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.NSPanel_1.Media.PlayerSpotifyPremium", + "items": [{ + id: "alias.0.NSPanel_1.Media.PlayerSpotifyPremium", adapterPlayerInstance: "spotify-premium.0.", speakerList: ['LENOVO-W11-01','Terrasse','Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'] - }] + }] }; -let SqueezeboxRPC: PageMedia = +let SqueezeboxRPC: PageMedia = { "type": "cardMedia", "heading": "SqueezeboxRPC", "useColor": true, "subPage": false, "parent": undefined, - "items": [{ - id: "alias.0.Media.LMS.SqueezePlay", + "items": [{ + id: "alias.0.Media.LMS.SqueezePlay", adapterPlayerInstance: "squeezeboxrpc.0.Players.SqueezePlay.", speakerList: ['SqueezePlay'] - }] + }] }; -let Buero_Themostat: PageThermo = +let Buero_Themostat: PageThermo = { "type": "cardThermo", "heading": "Test Thermostat", @@ -465,7 +466,7 @@ let Buero_Themostat: PageThermo = "items": [{ id: "alias.0.NSPanel_1.Thermostat_Buero", minValue: 50, maxValue: 300 }] }; -let Buero_Klimaanlage: PageThermo = +let Buero_Klimaanlage: PageThermo = { "type": "cardThermo", "heading": "Test Klimaanlage", @@ -475,7 +476,7 @@ let Buero_Klimaanlage: PageThermo = "items": [{ id: "alias.0.NSPanel_1.TestKlimaanlage", minValue: 50, maxValue: 250}] }; -let Buero_Alarm: PageAlarm = +let Buero_Alarm: PageAlarm = { "type": "cardAlarm", "heading": "Alarm", @@ -492,7 +493,7 @@ let Service: PageEntities = "heading": "NSPanel Service", "useColor": true, "subPage": false, - "parent": undefined, + "parent": undefined, "items": [ { id: "alias.0.NSPanel_1.NSPanel_AutoUpdate", name: "Auto-Updates" ,icon: "update", offColor: MSRed, onColor: MSGreen}, { navigate: true, id: "NSPanel_Infos", icon: "information-outline", onColor: White, name: "NSPanel Infos"}, @@ -610,8 +611,8 @@ export const config: Config = { active: 100, //Standard-Brightness TFT screenSaverDoubleClick: true, locale: 'de-DE', // en-US, de-DE, nl-NL, da-DK, es-ES, fr-FR, it-IT, ru-RU, etc. - timeFormat: '%H:%M', // currently not used - dateFormat: '%A, %d. %B %Y', // currently not used + timeFormat: '%H:%M', // currently not used + dateFormat: '%A, %d. %B %Y', // currently not used weatherEntity: 'alias.0.Wetter', // Dieser Alias muss erstellt werden, damit die 4 kleineren Icons (Wetter oder DP) angezeigt werden können defaultOffColor: Off, defaultOnColor: On, @@ -625,11 +626,11 @@ export const config: Config = { SpotifyPremium, //Beispiel-Seite Alexa, //Beispiel-Seite Buero_Seite_2, //Beispiel-Seite - Buero_Klimaanlage, //Beispiel-Seite + Buero_Klimaanlage, //Beispiel-Seite Button_1, //Beispiel-Seite Test_Licht1, //Beispiel-Seite Test_Licht2, //Beispiel-Seite - Test_Funktionen, //Beispiel-Seite + Test_Funktionen, //Beispiel-Seite Fenster_1, //Beispiel-Seite Subpages_1, //Beispiel-Seite Buero_Themostat, //Beispiel-Seite @@ -644,7 +645,7 @@ export const config: Config = { NSPanel_Firmware_Updates, //Beispiel-Unterseite Subpage2_Level_2 ], - button1Page: button1Page, //Beispiel-Seite auf Button 1, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, + button1Page: button1Page, //Beispiel-Seite auf Button 1, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, button2Page: button2Page //Beispiel-Seite auf Button 2, wenn Rule2 definiert - Wenn nicht definiert --> button1Page: null, }; @@ -704,14 +705,14 @@ function ScreensaverDimmode(timeDimMode: DimMode) { } } catch (err) { console.warn('function ScreensaverDimmode: ' + err.message); - } + } } async function InitWeatherForecast() { try { //----Möglichkeit, im Screensaver zwischen Accu-Weather Forecast oder selbstdefinierten Werten zu wählen--------------------------------- - if (existsState(NSPanel_Path + "ScreensaverInfo.weatherForecast") == false || - existsState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer") == false || + if (existsState(NSPanel_Path + "ScreensaverInfo.weatherForecast") == false || + existsState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer") == false || existsState(NSPanel_Path + "ScreensaverInfo.entityChangeTime") == false) { await createStateAsync(NSPanel_Path + "ScreensaverInfo.weatherForecast", true, { type: 'boolean' }); await createStateAsync(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer", true, { type: 'boolean' }); @@ -719,7 +720,7 @@ async function InitWeatherForecast() { } } catch (err) { console.warn('function InitWeatherForecast: ' + err.message); - } + } } InitWeatherForecast(); @@ -771,7 +772,7 @@ async function InitDimmode() { ScreensaverDimmode(timeDimMode); } catch (err) { console.warn('function InitDimmode: ' + err.message); - } + } } InitDimmode(); @@ -794,7 +795,7 @@ const popupNotifyButton2TextColor = NSPanel_Path + 'popupNotify.popupNotifyButto const popupNotifyButton2Text = NSPanel_Path + 'popupNotify.popupNotifyButton2Text'; const popupNotifySleepTimeout = NSPanel_Path + 'popupNotify.popupNotifySleepTimeout'; // in sek. / wenn 0, dann bleibt die Nachricht stehen const popupNotifyAction = NSPanel_Path + 'popupNotify.popupNotifyAction'; // Antwort aus dem Panel true/false -const popupNotifyLayout = NSPanel_Path + 'popupNotify.popupNotifyLayout'; +const popupNotifyLayout = NSPanel_Path + 'popupNotify.popupNotifyLayout'; const popupNotifyFontIdText = NSPanel_Path + 'popupNotify.popupNotifyFontIdText'; // 1 - 5 const popupNotifyIcon = NSPanel_Path + 'popupNotify.popupNotifyIcon'; // 1 - 5 const popupNotifyIconColor = NSPanel_Path + 'popupNotify.popupNotifyIconColor'; // 1 - 5 @@ -812,14 +813,14 @@ async function InitPopupNotify() { } await createStateAsync(popupNotifyHeading, { type: 'string' }); - await createStateAsync(popupNotifyHeadingColor, { type: 'string' }); + await createStateAsync(popupNotifyHeadingColor, { type: 'string' }); await createStateAsync(popupNotifyText, { type: 'string' }); - await createStateAsync(popupNotifyTextColor, { type: 'string' }); + await createStateAsync(popupNotifyTextColor, { type: 'string' }); await createStateAsync(popupNotifyInternalName, { type: 'string' }); await createStateAsync(popupNotifyButton1Text, { type: 'string' }); - await createStateAsync(popupNotifyButton1TextColor, { type: 'string' }); + await createStateAsync(popupNotifyButton1TextColor, { type: 'string' }); await createStateAsync(popupNotifyButton2Text, { type: 'string' }); - await createStateAsync(popupNotifyButton2TextColor, { type: 'string' }); + await createStateAsync(popupNotifyButton2TextColor, { type: 'string' }); await createStateAsync(popupNotifySleepTimeout, { type: 'number' }); await createStateAsync(popupNotifyAction, { type: 'boolean' }); await createStateAsync(popupNotifyLayout, { type: 'number' }); @@ -877,7 +878,7 @@ async function InitPopupNotify() { }); } catch (err) { console.warn('function InitPopupNotify: ' + err.message); - } + } } InitPopupNotify(); @@ -895,7 +896,7 @@ schedule('* * * * *', () => { SendTime(); } catch (err) { console.warn('schedule: ' + err.message); - } + } }); //Wechsel zwischen Screensaver Entities und WeatherForecast @@ -903,13 +904,13 @@ schedule('*/' + getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val try { //WeatherForecast true/false Umschaltung verzögert if (getState(NSPanel_Path + "ScreensaverInfo.popupNotifyHeading").val == '' && getState(NSPanel_Path + "ScreensaverInfo.popupNotifyText").val == '' && getState(NSPanel_Path + "ScreensaverInfo.weatherForecast").val == true && getState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer").val == true) { - setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", false, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); + setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", false, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); } else if (getState(NSPanel_Path + "ScreensaverInfo.popupNotifyHeading").val == '' && getState(NSPanel_Path + "ScreensaverInfo.popupNotifyText").val == '' && getState(NSPanel_Path + "ScreensaverInfo.weatherForecast").val == false && getState(NSPanel_Path + "ScreensaverInfo.weatherForecastTimer").val == true) { setStateDelayed(NSPanel_Path + "ScreensaverInfo.weatherForecast", true, (getState(NSPanel_Path + 'ScreensaverInfo.entityChangeTime').val / 2 * 1000), false); } } catch (err) { console.warn('schedule: ' + err.message); - } + } }); function InitHWButton1Color() { @@ -921,7 +922,7 @@ function InitHWButton1Color() { } } catch (err) { console.warn('function InitHWButton1Color: ' + err.message); - } + } } InitHWButton1Color(); @@ -991,7 +992,7 @@ function get_locales() { }); } catch (err) { console.error('error requesting locales in function get_locales: ' + err.message); - } + } } async function check_updates() { @@ -1606,7 +1607,7 @@ function GeneratePage(page: Page): void { } function HandleHardwareButton(method: string): void { - try { + try { let page: (PageThermo | PageMedia | PageAlarm | PageEntities | PageGrid | PageQR | PagePower); if (config.button1Page !== null && method == 'button1') { page = config.button1Page; @@ -1792,7 +1793,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors); } - if (pageItem.interpolateColor != undefined && pageItem.interpolateColor == true) { + if (pageItem.interpolateColor != undefined && pageItem.interpolateColor == true) { if (existsState(pageItem.id + '.HUE')) { if (getState(pageItem.id + '.HUE').val != null) { let huecolor = hsv2rgb(getState(pageItem.id + '.HUE').val, 1, 1); @@ -1919,11 +1920,11 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = iconColor = GetIconColor(pageItem, true, useColors); gateState = findLocale('window', 'opened'); } - + RegisterEntityWatcher(pageItem.id + '.ACTUAL'); - + } - + return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + gateState; case 'door': @@ -2107,7 +2108,7 @@ function findLocale(controlsObject: string, controlsState: string): string { if (Debug) { console.log('function findLocale: missing translation: ' + controlsObject + ' - ' + controlsState); } - } else { + } else { console.warn('function findLocale: ' + err.message); } return controlsState; @@ -2471,7 +2472,7 @@ function GenerateThermoPage(page: PageThermo): Payload[] { function GenerateMediaPage(page: PageMedia): Payload[] { try { let id = page.items[0].id - + let out_msgs: Array = []; out_msgs.push({ payload: 'pageType~cardMedia' }); @@ -2479,7 +2480,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let name = getState(id + '.ALBUM').val; let title = getState(id + '.TITLE').val; let author = getState(id + '.ARTIST').val; - + let vInstance = page.items[0].adapterPlayerInstance; let v1Adapter = vInstance.split('.'); let v2Adapter = v1Adapter[0]; @@ -2498,7 +2499,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { } else if (name.substring(0,6) == 'Album:') { let nameLength = name.length; name = name.slice(10, nameLength); - } else if (name.substring(0,6) == 'Track') { + } else if (name.substring(0,6) == 'Track') { name = 'Spotify-Premium'; } if (nameLength == 0) { @@ -2509,7 +2510,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { author = getState(id + '.ARTIST').val; } if ((getState(id + '.ARTIST').val).length == 0) { - author = 'no music to control'; + author = 'no music to control'; } } @@ -2520,10 +2521,10 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let nameLenght = name.length; if (nameLenght == 0) { name = 'Sonos Player'; - } + } author = getState(id + '.ARTIST').val + ' | ' + getState(id + '.ALBUM').val; if ((getState(id + '.ARTIST').val).length == 0) { - author = 'no music to control'; + author = 'no music to control'; } } @@ -2534,7 +2535,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { if (nameLength == 0) { name = 'Squeezebox RPC'; author = 'no music to control'; - } + } } //Alexa2 @@ -2543,10 +2544,10 @@ function GenerateMediaPage(page: PageMedia): Payload[] { let nameLength = name.length; if (nameLength == 0) { name = 'Alexa Player'; - author = 'no music to control'; - } + author = 'no music to control'; + } } - + let volume = getState(id + '.VOLUME').val; let iconplaypause = Icons.GetIcon('pause'); //pause let onoffbutton = 1374; @@ -2560,11 +2561,13 @@ function GenerateMediaPage(page: PageMedia): Payload[] { } //Ausnahme für squeezebox, da State = Power - if (getState(id + '.PAUSE').val === false && v2Adapter == 'squeezeboxrpc') { - onoffbutton = 65535; - iconplaypause = Icons.GetIcon('pause'); //pause - } else { - iconplaypause = Icons.GetIcon('play'); //play + if (v2Adapter == 'squeezeboxrpc') { + if (getState(id + '.PAUSE').val === false) { + onoffbutton = 65535; + iconplaypause = Icons.GetIcon('pause'); //pause + } else { + iconplaypause = Icons.GetIcon('play'); //play + } } if (Debug) { @@ -2576,7 +2579,7 @@ function GenerateMediaPage(page: PageMedia): Payload[] { if (v2Adapter == 'alexa2') { currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'Echo-Devices.', page.items[0].mediaDevice, '.Info.name'].join(''))).val; } else if (v2Adapter == 'spotify-premium') { - currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'player.device.name'].join(''))).val; + currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'player.device.name'].join(''))).val; } else if (v2Adapter == 'sonos') { currentSpeaker = getState(([page.items[0].adapterPlayerInstance, 'root.', page.items[0].mediaDevice, '.members'].join(''))).val; } else if (v2Adapter == 'squeezeboxrpc') { @@ -2620,8 +2623,8 @@ function GenerateMediaPage(page: PageMedia): Payload[] { iconplaypause + '~' + //playpauseicon currentSpeaker + '~' + //currentSpeaker speakerList + '~' + //speakerList-seperated-by-? - onoffbutton - }); //On/Off Button Color + onoffbutton //On/Off Button Color + }); } if (Debug) { console.log(out_msgs); @@ -2636,7 +2639,7 @@ function GenerateAlarmPage(page: PageAlarm): Payload[] { try { activePage = page; let id = page.items[0].id - + let out_msgs: Array = []; out_msgs.push({ payload: 'pageType~cardAlarm' }); let nsPath = NSPanel_Alarm_Path + 'Alarm.'; @@ -2821,18 +2824,18 @@ function GeneratePowerPage(page: PagePower): Payload[] { let demoMode = false; let id; - try { + try { id = page.items[0].id } catch (err) { console.log("Kein PageItem definiert - cardPower Demo-Modus aktiv"); demoMode = true; - } + } let heading = 'cardPower Example'; if (demoMode != true) { let o = getObject(id) heading = page.heading !== undefined ? page.heading : o.common.name.de - } + } const obj = JSON.parse((getState(page.items[0].id + '.ACTUAL').val)); @@ -2853,11 +2856,11 @@ function GeneratePowerPage(page: PagePower): Payload[] { array_icon[obji + 1] = obj[obji].icon; array_powerspeed[obji + 1] = obj[obji].speed; array_powerstate[obji + 1] = obj[obji].value + ' ' + obj[obji].unit ; - } + } } let power_string : any = ''; - + for (let i = 1; i < 7; i++ ) { power_string = power_string + rgb_dec565(array_icon_color[i]) + '~'; // icon_color~ power_string = power_string + Icons.GetIcon(array_icon[i]) + '~'; // icon~ @@ -2865,7 +2868,7 @@ function GeneratePowerPage(page: PagePower): Payload[] { power_string = power_string + array_powerstate[i] + '~'; // entity.state~ } - power_string = power_string.substring(0, power_string.length - 1); + power_string = power_string.substring(0, power_string.length - 1); out_msgs.push({ payload: 'entityUpd~' + //entityUpd~* @@ -2874,7 +2877,7 @@ function GeneratePowerPage(page: PagePower): Payload[] { rgb_dec565(array_icon_color[0]) + '~' + // icon_color~ Mitte Icons.GetIcon(array_icon[0]) + '~' + // icon~ Mitte array_powerspeed[0] + '~' + // entity.state~ Mitte - power_string + power_string }); return out_msgs @@ -2902,7 +2905,7 @@ function setIfExists(id: string, value: any, type: string | null = null): boolea return false; } catch (err) { console.warn('function setIfExists: ' + err.message); - } + } } function toggleState(id: string): boolean { @@ -2915,7 +2918,7 @@ function toggleState(id: string): boolean { return false; } catch (err) { console.warn('function toggleState: ' + err.message); - } + } } function HandleButtonEvent(words): void { @@ -3078,7 +3081,7 @@ function HandleButtonEvent(words): void { break; case 'tiltClose': setIfExists(id + '.TILT_CLOSE', true); - break; + break; case 'tiltSlider': (function () { if (timeoutSlider) { clearTimeout(timeoutSlider); timeoutSlider = null; } })(); timeoutSlider = setTimeout(async function () { @@ -3148,7 +3151,7 @@ function HandleButtonEvent(words): void { setIfExists(id + '.BLUE', rgb.blue); break; case 'rgbSingle': - let pageItem = findPageItem(id); + let pageItem = findPageItem(id); if (pageItem.colormode == "xy") { //Für z.B. Deconz XY setIfExists(id + ".RGB", rgb_to_cie(rgb.red, rgb.green, rgb.blue)); @@ -3168,9 +3171,11 @@ function HandleButtonEvent(words): void { break; case 'media-back': setIfExists(id + '.PREV', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'media-pause': let pageItemTemp = findPageItem(id); @@ -3191,15 +3196,24 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PLAY', true); } } - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.STATE', val: true}, async function () { + on({id: [].concat([id + '.ARTIST']).concat([id + '.ALBUM']).concat([id + '.TITLE']), change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); + }); + on({id: id + '.STATE', val: false}, async function () { + GeneratePage(activePage); + }); break; case 'media-next': setIfExists(id + '.NEXT', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'volumeSlider': setIfExists(id + '.VOLUME', parseInt(words[4])) @@ -3231,7 +3245,7 @@ function HandleButtonEvent(words): void { break; case 'chromecast': break; - } + } break; case 'media-OnOff': let pageItemTem = findPageItem(id); @@ -3257,19 +3271,19 @@ function HandleButtonEvent(words): void { switch (words[4]) { case 'BOOT': setIfExists(words[2] + '.' + 'BOOST', !getState(words[2] + '.' + 'BOOST').val) - break; + break; case 'PART': setIfExists(words[2] + '.' + 'PARTY', !getState(words[2] + '.' + 'PARTY').val) - break; + break; case 'AUTT': setIfExists(words[2] + '.' + 'AUTOMATIC', !getState(words[2] + '.' + 'AUTOMATIC').val) - break; + break; case 'MANT': setIfExists(words[2] + '.' + 'MANUAL', !getState(words[2] + '.' + 'MANUAL').val) - break; + break; case 'VACT': setIfExists(words[2] + '.' + 'VACATION', !getState(words[2] + '.' + 'VACATION').val) - break; + break; } let modes = ['BOOT', 'PART', 'AUTT', 'MANT', 'VACT'] let modesDP = ['BOOST', 'PARTY', 'AUTOMATIC', 'MANUAL', 'VACATION'] @@ -3332,8 +3346,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A2': // Alarm-Page Alarm 2 aktivieren if (words[4] != '') { @@ -3343,8 +3357,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A3': // Alarm-Page Alarm 3 aktivieren if (words[4] != '') { @@ -3354,8 +3368,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'A4': // Alarm-Page Alarm 4 aktivieren if (words[4] != '') { @@ -3365,8 +3379,8 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PANEL', NSPanel_Path); } setTimeout(function(){ - GeneratePage(activePage); - },250) + GeneratePage(activePage); + },250) break; case 'D1': // Alarm-Page Alarm Deaktivieren if (Debug) { @@ -3387,7 +3401,7 @@ function HandleButtonEvent(words): void { } setIfExists(id + '.PANEL', NSPanel_Path); setTimeout(function(){ - GeneratePage(activePage); + GeneratePage(activePage); },500) } break; @@ -3423,7 +3437,7 @@ function GetNavigationString(pageId: number): string { } } catch (err) { console.log('function GetNavigationString: ' + err.message); - } + } } function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { @@ -3802,7 +3816,7 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { } let textSecondRow = ''; - let icon_id = icon; + let icon_id = icon; let icon_up = Icons.GetIcon('arrow-up'); let icon_stop = Icons.GetIcon('stop'); let icon_down = Icons.GetIcon('arrow-down'); @@ -3862,7 +3876,7 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] { } catch (err) { console.log('function GenerateDetailPage: ' + err.message); - } + } } function scale(number: number, inMin: number, inMax: number, outMin: number, outMax: number): number { @@ -3870,7 +3884,7 @@ function scale(number: number, inMin: number, inMax: number, outMin: number, out return (outMax + outMin) - ((number - inMin) * (outMax - outMin) / (inMax - inMin) + outMin); } catch (err) { console.log('function scale: ' + err.message); - } + } } function UnsubscribeWatcher(): void { @@ -3881,7 +3895,7 @@ function UnsubscribeWatcher(): void { } } catch (err) { console.log('function UnsubscribeWatcher: ' + err.message); - } + } } function HandleScreensaver(): void { @@ -3930,7 +3944,7 @@ function HandleScreensaverUpdate(): void { payloadString += GetScreenSaverEntityString(config.secondScreensaverEntity); payloadString += GetScreenSaverEntityString(config.thirdScreensaverEntity); payloadString += GetScreenSaverEntityString(config.fourthScreensaverEntity); - + const colorScale0: RGB = { red: 99, green: 190, blue: 123 }; const colorScale1: RGB = { red: 129, green: 199, blue: 126 }; const colorScale2: RGB = { red: 161, green: 208, blue: 127 }; @@ -3959,14 +3973,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -3994,7 +4008,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[1] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[1] = rgb_dec565(colorScale8); break; @@ -4004,7 +4018,7 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[1] = rgb_dec565(colorScale10); break; - } + } } if (config.firstScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[1] = rgb_dec565(config.firstScreensaverEntity.ScreensaverEntityIconColor); @@ -4013,7 +4027,7 @@ function HandleScreensaverUpdate(): void { vwIconColor[1] = rgb_dec565(sctF1Icon); } } else { - vwIconColor[1] = rgb_dec565(sctF1Icon); + vwIconColor[1] = rgb_dec565(sctF1Icon); } if (config.secondScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4033,14 +4047,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4068,7 +4082,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[2] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[2] = rgb_dec565(colorScale8); break; @@ -4078,16 +4092,16 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[2] = rgb_dec565(colorScale10); break; - } + } } if (config.secondScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[2] = rgb_dec565(config.secondScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[2] = rgb_dec565(sctF2Icon); + vwIconColor[2] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[2] = rgb_dec565(sctF2Icon); + vwIconColor[2] = rgb_dec565(sctF2Icon); } if (config.thirdScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4107,14 +4121,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4142,7 +4156,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[3] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[3] = rgb_dec565(colorScale8); break; @@ -4152,16 +4166,16 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[3] = rgb_dec565(colorScale10); break; - } + } } if (config.thirdScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[3] = rgb_dec565(config.thirdScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[3] = rgb_dec565(sctF2Icon); + vwIconColor[3] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[3] = rgb_dec565(sctF2Icon); + vwIconColor[3] = rgb_dec565(sctF2Icon); } if (config.fourthScreensaverEntity.ScreensaverEntityIconColor != undefined) { @@ -4181,14 +4195,14 @@ function HandleScreensaverUpdate(): void { valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } else { if (valueScale < iconvalbest) { - valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) + valueScale = scale(valueScale,iconvalmin, iconvalbest, 0, 10) } else if (valueScale > iconvalbest || iconvalbest != iconvalmin) { - valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalbest, iconvalmax, 10, 0) } else { - valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) + valueScale = scale(valueScale,iconvalmin, iconvalmax, 10, 0) } } - let valueScaletemp = (Math.round(valueScale)).toFixed(); + let valueScaletemp = (Math.round(valueScale)).toFixed(); if (Debug) { console.log(valueScaletemp); } @@ -4216,7 +4230,7 @@ function HandleScreensaverUpdate(): void { break; case '7': vwIconColor[4] = rgb_dec565(colorScale7); - break; + break; case '8': vwIconColor[4] = rgb_dec565(colorScale8); break; @@ -4226,42 +4240,42 @@ function HandleScreensaverUpdate(): void { case '10': vwIconColor[4] = rgb_dec565(colorScale10); break; - } + } } if (config.fourthScreensaverEntity.ScreensaverEntityIconColor.val_min == undefined) { vwIconColor[4] = rgb_dec565(config.fourthScreensaverEntity.ScreensaverEntityIconColor); } } else { - vwIconColor[4] = rgb_dec565(sctF2Icon); + vwIconColor[4] = rgb_dec565(sctF2Icon); } } else { - vwIconColor[4] = rgb_dec565(sctF2Icon); + vwIconColor[4] = rgb_dec565(sctF2Icon); } } //AltLayout if (config.alternativeScreensaverLayout) { - payloadString += parseInt(getState(config.fourthScreensaverEntity.ScreensaverEntity).val) + '~'; + payloadString += parseInt(getState(config.fourthScreensaverEntity.ScreensaverEntity).val) + '~'; payloadString += config.fourthScreensaverEntity.ScreensaverEntityUnitText + '~' } else { - payloadString += '~~' + payloadString += '~~' } - + let hwBtn1Col: any = config.mrIcon1ScreensaverEntity.ScreensaverEntityOffColor; if (config.mrIcon1ScreensaverEntity.ScreensaverEntity != null) { if (typeof (getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val) == 'string') { let hwBtn1: string = getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val; if (hwBtn1 == 'ON') { - hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon1ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn1Col) + '~'; } else if (typeof (getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val) == 'boolean') { let hwBtn1: boolean = getState(config.mrIcon1ScreensaverEntity.ScreensaverEntity).val; if (hwBtn1) { - hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn1Col = config.mrIcon1ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon1ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn1Col) + '~'; - } + } } else { hwBtn1Col = Black; payloadString += '~~'; @@ -4272,28 +4286,28 @@ function HandleScreensaverUpdate(): void { if (typeof (getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val) == 'string') { let hwBtn2: string = getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val; if (hwBtn2 == 'ON') { - hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon2ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn2Col) + '~'; } else if (typeof (getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val) == 'boolean') { let hwBtn2: boolean = getState(config.mrIcon2ScreensaverEntity.ScreensaverEntity).val; if (hwBtn2) { - hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; + hwBtn2Col = config.mrIcon2ScreensaverEntity.ScreensaverEntityOnColor; } payloadString += Icons.GetIcon(config.mrIcon2ScreensaverEntity.ScreensaverEntityIcon) + '~' + rgb_dec565(hwBtn2Col) + '~'; - } + } } else { hwBtn2Col = Black; payloadString += '~~'; } HandleScreensaverColors(); - + SendToPanel({ payload: payloadString }); - + } } catch (err) { console.log('HandleScreensaverUpdate: ' + err.message); - } + } } function HandleScreensaverColors(): void { @@ -4317,7 +4331,7 @@ function HandleScreensaverColors(): void { vwIcon[1] = vwIconColor[1]; vwIcon[2] = vwIconColor[2]; vwIcon[3] = vwIconColor[3]; - vwIcon[4] = vwIconColor[4]; + vwIcon[4] = vwIconColor[4]; } } @@ -4343,8 +4357,8 @@ function HandleScreensaverColors(): void { rgb_dec565(scbar) + '~' + //bar~ rgb_dec565(sctMainIconAlt) + '~' + //tMainIconAlt rgb_dec565(sctMainTextAlt) + '~' + //tMainTextAlt - rgb_dec565(sctTimeAdd); - //true; + rgb_dec565(sctTimeAdd); + //true; SendToPanel({ payload: payloadString }); } catch (err) { @@ -4452,7 +4466,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 24: // Ice case 30: // Hot case 31: // Cold - return rgb_dec565(swExceptional); // exceptional + return rgb_dec565(swExceptional); // exceptional case 7: // Cloudy case 8: // Dreary (Overcast) @@ -4495,7 +4509,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 26: // Freezing Rain case 39: // Partly Cloudy w/ Showers case 40: // Mostly Cloudy w/ Showers - return rgb_dec565(swRainy); // rainy + return rgb_dec565(swRainy); // rainy case 19: // Flurries case 20: // Mostly Cloudy w/ Flurries @@ -4504,7 +4518,7 @@ function GetAccuWeatherIconColor(icon: number): number { case 23: // Mostly Cloudy w/ Snow case 43: // Mostly Cloudy w/ Flurries case 44: // Mostly Cloudy w/ Snow - return rgb_dec565(swSnowy); // snowy + return rgb_dec565(swSnowy); // snowy case 29: // Rain and Snow return rgb_dec565(swSnowyRainy); // snowy-rainy @@ -4656,18 +4670,18 @@ function rgb_to_cie(red, green, blue) //Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device let vred = (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92); let vgreen = (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92); - let vblue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92); - + let vblue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92); + //RGB values to XYZ using the Wide RGB D65 conversion formula let X = vred * 0.664511 + vgreen * 0.154324 + vblue * 0.162028; let Y = vred * 0.283881 + vgreen * 0.668433 + vblue * 0.047685; let Z = vred * 0.000088 + vgreen * 0.072310 + vblue * 0.986039; - + //Calculate the xy values from the XYZ values let ciex = (X / (X + Y + Z)).toFixed(4); let ciey = (Y / (X + Y + Z)).toFixed(4); let cie = "[" + ciex + "," + ciey + "]" - + return cie; } @@ -4797,7 +4811,7 @@ type Config = { pages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], subPages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], button1Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), - button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower| null), + button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), } type ScreenSaverElement = { diff --git a/ioBroker/NsPanelTs_without_Examples.ts b/ioBroker/NsPanelTs_without_Examples.ts index 7174ac0e..21daafeb 100644 --- a/ioBroker/NsPanelTs_without_Examples.ts +++ b/ioBroker/NsPanelTs_without_Examples.ts @@ -63,6 +63,7 @@ ReleaseNotes: - 26.10.2022 - v3.5.0.1 Fix Thermostat for tado Support (by Sternmiere) - 27.10.2022 - v3.5.0.1 Add VirtualDevice Gate - 27.10.2022 - v3.5.0.2 Applied Boy Scout Rule (Fixed some typos, changed var to let, fixed min/max colorTemp Bug) + - 27.10.2022 - v3.5.0.3 Fixed Media Play/Pause icon for alexa (and others) devices Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Relais) genutzt werden Tasmota Konsole: @@ -2751,9 +2752,11 @@ function HandleButtonEvent(words): void { break; case 'media-back': setIfExists(id + '.PREV', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'media-pause': let pageItemTemp = findPageItem(id); @@ -2774,15 +2777,24 @@ function HandleButtonEvent(words): void { setIfExists(id + '.PLAY', true); } } - setTimeout(function(){ + on({id: id + '.STATE', val: true}, async function () { + on({id: [].concat([id + '.ARTIST']).concat([id + '.ALBUM']).concat([id + '.TITLE']), change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); + }); + on({id: id + '.STATE', val: false}, async function () { GeneratePage(activePage); - },3000) + }); break; case 'media-next': setIfExists(id + '.NEXT', true); - setTimeout(function(){ - GeneratePage(activePage); - },3000) + on({id: id + '.TITLE', change: "ne"}, async function () { + setTimeout(function(){ + GeneratePage(activePage); + },25) + }); break; case 'volumeSlider': setIfExists(id + '.VOLUME', parseInt(words[4])) @@ -4380,7 +4392,7 @@ type Config = { pages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], subPages: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower)[], button1Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), - button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower| null), + button2Page: (PageThermo | PageMedia | PageAlarm | PageQR | PageEntities | PageGrid | PagePower | null), } type ScreenSaverElement = {