Merge branch 'joBr99:main' into main

This commit is contained in:
Armilar
2022-05-30 10:20:37 +02:00
committed by GitHub
101 changed files with 4709 additions and 2605 deletions

23
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,23 @@
---
name: Bug report
about: "[Bug] Create a report to help us improve"
title: "[BUG] "
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior
**Screenshots**
If applicable, add a picture to help explain your problem.
**AppDaemon Logs**
Please check the appdaemon log for any errors add the log to this issue. (Settings > Add-ons > AppDaemon > Log)
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,17 @@
---
name: Feature request
about: "[Feature Request] Suggest an idea for this project"
title: "[Feature Request] "
labels: enhancement
assignees: ''
---
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Additional context**
Add any other context or screenshots about the feature request here.
**Panel / Firmware Version**
Please add the Panel/Firmware Version you are using (EU, US-L or US-P)

View File

@@ -79,4 +79,4 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4 - uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text) commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text)
file_pattern: "**.txt" #file_pattern: "**.txt"

View File

@@ -77,7 +77,7 @@ change the page type:
`weatherUpdate~tMainIcon~tMainText~tForecast1~tF1Icon~tForecast1Val~tForecast2~tF2Icon~tForecast2Val~tForecast3~tF3Icon~tForecast3Val~tForecast4~tF4Icon~tForecast4Val~optionalLayoutIcon~optionalLayoutText` `weatherUpdate~tMainIcon~tMainText~tForecast1~tF1Icon~tForecast1Val~tForecast2~tF2Icon~tForecast2Val~tForecast3~tF3Icon~tForecast3Val~tForecast4~tF4Icon~tForecast4Val~optionalLayoutIcon~optionalLayoutText`
`color~background~time~timeAMPM~date~tMainIcon~tMainText~tForecast1~tForecast2~tForecast3~tForecast4~tF1Icon~tF2Icon~tF3Icon~tF4Icon~tForecast1Val~tForecast2Val~tForecast3Val~tForecast4Val~bar~tMainIconAlt~tMainTextAlt~tMRIcon~tMR` `color~background~time~timeAMPM~date~tMainIcon~tMainText~tForecast1~tForecast2~tForecast3~tForecast4~tF1Icon~tF2Icon~tF3Icon~tF4Icon~tForecast1Val~tForecast2Val~tForecast3Val~tForecast4Val~bar~tMRIcon~tMR`
`notify~heading~text` `notify~heading~text`
@@ -185,7 +185,7 @@ The following message can be used to update the content on the cardEntities Page
`event,buttonPress2,internalNameEntity,colorTempSlider,50` `event,buttonPress2,internalNameEntity,colorTempSlider,50`
`event,buttonPress2,internalNameEntity,colorWheel,x|y` `event,buttonPress2,internalNameEntity,colorWheel,x|y|wh`
### popupShutter Page ### popupShutter Page

View File

@@ -1,6 +1,6 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-05-23 06:20:44.296447221 +0000 --- HMI/n2t-out/Program.s.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-23 06:20:45.196459256 +0000 +++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-29 21:20:55.900415426 +0000
@@ -11,6 +11,4 @@ @@ -11,6 +11,4 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -8,21 +8,96 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
- // fix touch offset - // fix touch offset
- lcd_dev fffb 0002 0000 0020 - lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup
diff -bur HMI/n2t-out/cardAlarm.txt HMI/US/landscape/n2t-out/cardAlarm.txt
--- HMI/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.904415457 +0000
@@ -683,10 +683,7 @@
// 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
+ dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/landscape/n2t-out/cardEntities.txt
--- HMI/n2t-out/cardEntities.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardEntities.txt 2022-05-29 21:20:55.904415457 +0000
@@ -1924,10 +1924,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardGrid.txt HMI/US/landscape/n2t-out/cardGrid.txt
--- HMI/n2t-out/cardGrid.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardGrid.txt 2022-05-29 21:20:55.904415457 +0000
@@ -846,10 +846,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardMedia.txt HMI/US/landscape/n2t-out/cardMedia.txt
--- HMI/n2t-out/cardMedia.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardMedia.txt 2022-05-29 21:20:55.904415457 +0000
@@ -635,10 +635,7 @@
// 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
+ dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardQR.txt HMI/US/landscape/n2t-out/cardQR.txt diff -bur HMI/n2t-out/cardQR.txt HMI/US/landscape/n2t-out/cardQR.txt
--- HMI/n2t-out/cardQR.txt 2022-05-23 06:20:44.300447274 +0000 --- HMI/n2t-out/cardQR.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardQR.txt 2022-05-23 06:20:45.196459256 +0000 +++ HMI/US/landscape/n2t-out/cardQR.txt 2022-05-29 21:20:55.904415457 +0000
@@ -34,7 +34,7 @@ @@ -581,10 +581,7 @@
Attributes // get value
Scope : local spstr strCommand.txt,tTmp.txt,"~",1
Text : covx tTmp.txt,dimValue,0,0
- Max. Text Size: 275 - // get value normal
+ Max. Text Size: 270 - spstr strCommand.txt,tTmp.txt,"~",2
- covx tTmp.txt,dimValueNormal,0,0
Variable (string) entn - dim=dimValueNormal
Attributes + dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardThermo.txt HMI/US/landscape/n2t-out/cardThermo.txt
--- HMI/n2t-out/cardThermo.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardThermo.txt 2022-05-29 21:20:55.904415457 +0000
@@ -1169,10 +1169,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-05-23 06:20:44.300447274 +0000 --- HMI/n2t-out/pageStartup.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-23 06:20:45.196459256 +0000 +++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-29 21:20:55.900415426 +0000
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
recmod=1 recmod=1
bauds=115200 bauds=115200
@@ -32,3 +107,69 @@ diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -273,10 +273,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupLight.txt HMI/US/landscape/n2t-out/popupLight.txt
--- HMI/n2t-out/popupLight.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/popupLight.txt 2022-05-29 21:20:55.904415457 +0000
@@ -560,10 +560,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupNotify.txt HMI/US/landscape/n2t-out/popupNotify.txt
--- HMI/n2t-out/popupNotify.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/popupNotify.txt 2022-05-29 21:20:55.900415426 +0000
@@ -310,10 +310,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupShutter.txt HMI/US/landscape/n2t-out/popupShutter.txt
--- HMI/n2t-out/popupShutter.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/popupShutter.txt 2022-05-29 21:20:55.904415457 +0000
@@ -405,10 +405,6 @@
// 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
}
if(tInstruction.txt=="time")
{
diff -bur HMI/n2t-out/screensaver.txt HMI/US/landscape/n2t-out/screensaver.txt
--- HMI/n2t-out/screensaver.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/screensaver.txt 2022-05-29 21:20:55.904415457 +0000
@@ -397,9 +397,6 @@
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
dim=dimValue
- // get value normal
- spstr strCommand.txt,tTmp.txt,"~",2
- covx tTmp.txt,dimValueNormal,0,0
}
if(tInstruction.txt=="time")
{

View File

@@ -1013,24 +1013,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1050,24 +1033,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1087,24 +1053,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1168,25 +1117,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1

View File

@@ -2036,24 +2036,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -2073,24 +2056,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -2110,24 +2076,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -2191,25 +2140,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -976,24 +976,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1013,24 +996,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1050,24 +1016,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1131,25 +1080,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -895,24 +895,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -932,24 +915,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -969,24 +935,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1050,25 +999,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -43,7 +43,7 @@ Variable (string) strCommand
ID : 6 ID : 6
Scope : local Scope : local
Text : Text :
Max. Text Size: 270 Max. Text Size: 275
Variable (string) entn Variable (string) entn
Attributes Attributes
@@ -597,24 +597,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -634,24 +617,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -671,24 +637,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -753,25 +702,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode

View File

@@ -458,10 +458,10 @@ Text tStatus
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 26 x coordinate : 22
y coordinate : 200 y coordinate : 186
Width : 97 Width : 115
Height : 30 Height : 60
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -475,8 +475,8 @@ Text tStatus
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Word wrap : disabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -518,9 +518,9 @@ Text tCurTempLbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 28 x coordinate : 24
y coordinate : 85 y coordinate : 84
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -548,9 +548,9 @@ Text tStateLbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 27 x coordinate : 23
y coordinate : 162 y coordinate : 152
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -608,9 +608,9 @@ Text tALbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 22 x coordinate : 9
y coordinate : 260 y coordinate : 260
Width : 67 Width : 80
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -668,9 +668,9 @@ Text tCurTemp
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 28 x coordinate : 24
y coordinate : 121 y coordinate : 118
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -1566,24 +1566,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1603,24 +1586,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1640,24 +1606,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1721,25 +1670,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -18,45 +18,45 @@ pageStartup
19 Component(s) 19 Component(s)
154 Line(s) of event code 154 Line(s) of event code
115 Unique line(s) of event code 115 Unique line(s) of event code
screensaver cardThermo
35 Component(s) 56 Component(s)
296 Line(s) of event code 542 Line(s) of event code
237 Unique line(s) of event code 292 Unique line(s) of event code
cardAlarm
38 Component(s)
364 Line(s) of event code
224 Unique line(s) of event code
cardGrid
42 Component(s)
439 Line(s) of event code
254 Unique line(s) of event code
popupShutter popupShutter
20 Component(s) 20 Component(s)
244 Line(s) of event code 244 Line(s) of event code
138 Unique line(s) of event code 138 Unique line(s) of event code
popupLight
27 Component(s)
345 Line(s) of event code
187 Unique line(s) of event code
cardThermo
56 Component(s)
546 Line(s) of event code
290 Unique line(s) of event code
cardMedia
33 Component(s)
350 Line(s) of event code
179 Unique line(s) of event code
cardQR cardQR
30 Component(s) 30 Component(s)
363 Line(s) of event code 359 Line(s) of event code
207 Unique line(s) of event code 209 Unique line(s) of event code
popupLight
27 Component(s)
348 Line(s) of event code
188 Unique line(s) of event code
cardGrid
42 Component(s)
435 Line(s) of event code
256 Unique line(s) of event code
cardAlarm
38 Component(s)
360 Line(s) of event code
226 Unique line(s) of event code
cardMedia
33 Component(s)
346 Line(s) of event code
181 Unique line(s) of event code
screensaver
37 Component(s)
305 Line(s) of event code
244 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1133 Line(s) of event code 1129 Line(s) of event code
491 Unique line(s) of event code 493 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
402 Component(s) 404 Component(s)
4458 Line(s) of event code 4446 Line(s) of event code
1167 Unique line(s) of event code 1177 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0

View File

@@ -461,6 +461,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC

View File

@@ -50,27 +50,34 @@ Variable (string) strCommand
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 17 ID : 16
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 25 ID : 24
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 31 ID : 30
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 32 ID : 31
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
ID : 34
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
@@ -83,10 +90,10 @@ Text tTime
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 52
y coordinate : 0 y coordinate : 0
Width : 451 Width : 376
Height : 150 Height : 154
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -114,8 +121,8 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 15
y coordinate : 150 y coordinate : 154
Width : 451 Width : 450
Height : 38 Height : 38
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -135,7 +142,7 @@ Text tDate
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tSend Text tMainIcon
Attributes Attributes
ID : 7 ID : 7
Scope : local Scope : local
@@ -143,38 +150,8 @@ Text tSend
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 420
y coordinate : 2
Width : 29
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 tMainIcon
Attributes
ID : 8
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 41 x coordinate : 41
y coordinate : 202 y coordinate : 206
Width : 70 Width : 70
Height : 66 Height : 66
Effect : load Effect : load
@@ -197,14 +174,14 @@ Text tMainIcon
Text tMainText Text tMainText
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 22 x coordinate : 22
y coordinate : 267 y coordinate : 271
Width : 110 Width : 110
Height : 43 Height : 43
Effect : load Effect : load
@@ -227,14 +204,14 @@ Text tMainText
Text tForecast1 Text tForecast1
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 143 x coordinate : 143
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 26 Height : 26
Effect : load Effect : load
@@ -257,14 +234,14 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
Attributes Attributes
ID : 11 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 140 x coordinate : 140
y coordinate : 276 y coordinate : 280
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -287,14 +264,14 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
Attributes Attributes
ID : 12 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 161 x coordinate : 161
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -317,14 +294,14 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 13 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 227 x coordinate : 227
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -347,14 +324,14 @@ Text tForecast2
Text tF2Icon Text tF2Icon
Attributes Attributes
ID : 14 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 243 x coordinate : 243
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -377,14 +354,14 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 15 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 227 x coordinate : 227
y coordinate : 277 y coordinate : 281
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -407,14 +384,14 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 16 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 61 x coordinate : 61
y coordinate : 195 y coordinate : 199
Width : 360 Width : 360
Height : 2 Height : 2
Effect : load Effect : load
@@ -437,14 +414,14 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 18 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 358 x coordinate : 358
y coordinate : 48 y coordinate : 49
Width : 104 Width : 104
Height : 57 Height : 57
Effect : load Effect : load
@@ -467,14 +444,14 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 19 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 307 x coordinate : 307
y coordinate : 277 y coordinate : 281
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -497,14 +474,14 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 20 ID : 19
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 324 x coordinate : 324
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -527,14 +504,14 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 21 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 308 x coordinate : 308
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -557,14 +534,14 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 22 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 389 x coordinate : 389
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -587,14 +564,14 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 23 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 405 x coordinate : 405
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -617,14 +594,14 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 24 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 389 x coordinate : 389
y coordinate : 277 y coordinate : 281
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -647,14 +624,14 @@ Text tForecast4Val
Text tMainTextAlt Text tMainTextAlt
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 119 x coordinate : 119
y coordinate : 210 y coordinate : 214
Width : 106 Width : 106
Height : 42 Height : 42
Effect : load Effect : load
@@ -677,14 +654,14 @@ Text tMainTextAlt
Text tMainIconAlt Text tMainIconAlt
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 15
y coordinate : 221 y coordinate : 225
Width : 100 Width : 100
Height : 66 Height : 66
Effect : load Effect : load
@@ -707,14 +684,14 @@ Text tMainIconAlt
Text tMRIcon Text tMRIcon
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 116 x coordinate : 116
y coordinate : 266 y coordinate : 270
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -737,14 +714,14 @@ Text tMRIcon
Text tMR Text tMR
Attributes Attributes
ID : 30 ID : 29
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 159 x coordinate : 159
y coordinate : 270 y coordinate : 274
Width : 62 Width : 62
Height : 21 Height : 21
Effect : load Effect : load
@@ -767,14 +744,14 @@ Text tMR
Text tNotifyHead Text tNotifyHead
Attributes Attributes
ID : 33 ID : 32
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 15
y coordinate : 201 y coordinate : 205
Width : 450 Width : 450
Height : 58 Height : 58
Effect : load Effect : load
@@ -797,14 +774,14 @@ Text tNotifyHead
Text tNotifyText Text tNotifyText
Attributes Attributes
ID : 34 ID : 33
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 15
y coordinate : 258 y coordinate : 262
Width : 450 Width : 450
Height : 47 Height : 47
Effect : load Effect : load
@@ -825,6 +802,66 @@ Text tNotifyText
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tIcon1
Attributes
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 8
y coordinate : 0
Width : 38
Height : 38
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 17299
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon2
Attributes
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 434
y coordinate : 0
Width : 38
Height : 38
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 17299
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -992,9 +1029,20 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt tF2Icon.txt=tF1Icon.txt
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1010,6 +1058,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -1030,8 +1080,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -1059,12 +1111,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
@@ -1150,7 +1198,7 @@ Timer tmSerial
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes

View File

@@ -475,24 +475,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -503,24 +486,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -531,24 +497,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -611,25 +560,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1

View File

@@ -1083,24 +1083,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1111,24 +1094,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1139,24 +1105,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1219,25 +1168,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -531,24 +531,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -559,24 +542,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -587,24 +553,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -667,25 +616,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -465,24 +465,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -493,24 +476,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -521,24 +487,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -601,25 +550,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -34,7 +34,7 @@ Variable (string) strCommand
Attributes Attributes
Scope : local Scope : local
Text : Text :
Max. Text Size: 270 Max. Text Size: 275
Variable (string) entn Variable (string) entn
Attributes Attributes
@@ -326,24 +326,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -354,24 +337,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -382,24 +348,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -463,25 +412,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode

View File

@@ -227,7 +227,7 @@ Text tStatus
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Text tCF1 Text tCF1
Attributes Attributes
@@ -804,24 +804,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -832,24 +815,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -860,24 +826,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -940,25 +889,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0

View File

@@ -209,6 +209,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC

View File

@@ -62,6 +62,12 @@ Variable (string) tTmp
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 50
Text tTime Text tTime
Attributes Attributes
Scope : local Scope : local
@@ -82,16 +88,6 @@ Text tDate
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 35
Text tSend
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 50
Text tMainIcon Text tMainIcon
Attributes Attributes
Scope : local Scope : local
@@ -312,6 +308,26 @@ Text tNotifyText
Text : Text :
Max. Text Size : 35 Max. Text Size : 35
Text tIcon1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Text tIcon2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -468,9 +484,20 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt tF2Icon.txt=tF1Icon.txt
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -486,6 +513,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -506,8 +535,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -535,12 +566,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,6 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-05-06 19:28:27.798491086 +0000 --- HMI/n2t-out/Program.s.txt 2022-05-24 14:34:13.723678266 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-06 19:28:28.182497193 +0000 +++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-24 14:34:14.167683442 +0000
@@ -11,6 +11,6 @@ @@ -11,6 +11,6 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -11,8 +11,8 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
+ //lcd_dev fffb 0002 0000 0020 + //lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
--- HMI/n2t-out/cardEntities.txt 2022-05-06 19:28:27.798491086 +0000 --- HMI/n2t-out/cardEntities.txt 2022-05-24 14:34:13.723678266 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-06 19:28:28.186497256 +0000 +++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-24 14:34:14.171683489 +0000
@@ -62,6 +62,16 @@ @@ -62,6 +62,16 @@
vis bText4,0 vis bText4,0
vis hSlider4,0 vis hSlider4,0
@@ -294,10 +294,10 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ page popupLight + page popupLight
+ } + }
+ +
Timer tmSerial Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -1644,6 +1872,128 @@ @@ -1892,6 +2120,169 @@
covx tTmp.txt,sys0,0,0 covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0 hSlider4.maxval=sys0
} }
@@ -340,24 +340,43 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ vis nNum5,0 + vis nNum5,0
+ // get Button State (optional Value) + // get Button State (optional Value)
+ spstr strCommand.txt,tId.txt,"~",32 + spstr strCommand.txt,tId.txt,"~",32
+ spstr tId.txt,tTmp.txt,"|",0 + // up button
+ if(tTmp.txt=="0") + spstr tId.txt,tTmp.txt,"|",3
+ if(tTmp.txt=="disable")
+ { + {
+ bUp5.pco=27501 + bUp5.pco=27501
+ spstr tId.txt,bUp5.txt,"|",0
+ tsw bUp5,0 + tsw bUp5,0
+ }else + }else if(tTmp.txt=="enable")
+ { + {
+ bUp5.pco=65535 + bUp5.pco=65535
+ spstr tId.txt,bUp5.txt,"|",0
+ tsw bUp5,1 + tsw bUp5,1
+ } + }
+ spstr tId.txt,tTmp.txt,"|",1 + // stop button
+ if(tTmp.txt=="0") + spstr tId.txt,tTmp.txt,"|",4
+ if(tTmp.txt=="disable")
+ {
+ bStop5.pco=27501
+ spstr tId.txt,bStop5.txt,"|",1
+ tsw bStop5,0
+ }else if(tTmp.txt=="enable")
+ {
+ bStop5.pco=65535
+ spstr tId.txt,bStop5.txt,"|",1
+ tsw bStop5,1
+ }
+ // down button
+ spstr tId.txt,tTmp.txt,"|",5
+ if(tTmp.txt=="disable")
+ { + {
+ bDown5.pco=27501 + bDown5.pco=27501
+ spstr tId.txt,bDown5.txt,"|",2
+ tsw bDown5,0 + tsw bDown5,0
+ }else + }else if(tTmp.txt=="enable")
+ { + {
+ bDown5.pco=65535 + bDown5.pco=65535
+ spstr tId.txt,bDown5.txt,"|",2
+ tsw bDown5,1 + tsw bDown5,1
+ } + }
+ } + }
@@ -448,9 +467,21 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
} }
if(tInstruction.txt=="pageType") if(tInstruction.txt=="pageType")
{ {
diff -bur HMI/n2t-out/cardQR.txt HMI/US/portrait/n2t-out/cardQR.txt
--- HMI/n2t-out/cardQR.txt 2022-05-24 14:34:13.723678266 +0000
+++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-24 14:34:14.167683442 +0000
@@ -34,7 +34,7 @@
Attributes
Scope : local
Text :
- Max. Text Size: 275
+ Max. Text Size: 270
Variable (string) entn
Attributes
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-05-06 19:28:27.798491086 +0000 --- HMI/n2t-out/pageStartup.txt 2022-05-24 14:34:13.723678266 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-06 19:28:28.182497193 +0000 +++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-24 14:34:14.167683442 +0000
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
@@ -469,3 +500,29 @@ diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
diff -bur HMI/n2t-out/screensaver.txt HMI/US/portrait/n2t-out/screensaver.txt
--- HMI/n2t-out/screensaver.txt 2022-05-24 14:34:13.723678266 +0000
+++ HMI/US/portrait/n2t-out/screensaver.txt 2022-05-24 14:34:14.167683442 +0000
@@ -455,22 +455,6 @@
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
- vis tForecast1,0
- vis tF1Icon,0
- vis tForecast1Val,0
- //move forecast values to the right
- tForecast4.txt=tForecast3.txt
- tForecast3.txt=tForecast2.txt
- tForecast2.txt=tForecast1.txt
- tForecast4Val.txt=tForecast3Val.txt
- tForecast3Val.txt=tForecast2Val.txt
- tForecast2Val.txt=tForecast1Val.txt
- tF4Icon.txt=tF3Icon.txt
- tF3Icon.txt=tF2Icon.txt
- tF2Icon.txt=tF1Icon.txt
- tF4Icon.pco=tF3Icon.pco
- tF3Icon.pco=tF2Icon.pco
- tF2Icon.pco=tF1Icon.pco
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16

View File

@@ -1,6 +1,6 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-05-23 06:20:44.296447221 +0000 --- HMI/n2t-out/Program.s.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-23 06:20:44.736453105 +0000 +++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-29 21:20:55.500412348 +0000
@@ -11,6 +11,6 @@ @@ -11,6 +11,6 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -10,9 +10,24 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
+ // fix touch offset (Removed for US version) + // fix touch offset (Removed for US version)
+ //lcd_dev fffb 0002 0000 0020 + //lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup
diff -bur HMI/n2t-out/cardAlarm.txt HMI/US/portrait/n2t-out/cardAlarm.txt
--- HMI/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.500412348 +0000
@@ -683,10 +683,7 @@
// 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
+ dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
--- HMI/n2t-out/cardEntities.txt 2022-05-23 06:20:44.300447274 +0000 --- HMI/n2t-out/cardEntities.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-23 06:20:44.736453105 +0000 +++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-29 21:20:55.500412348 +0000
@@ -62,6 +62,16 @@ @@ -62,6 +62,16 @@
vis bText4,0 vis bText4,0
vis hSlider4,0 vis hSlider4,0
@@ -297,7 +312,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -1892,6 +2120,169 @@ @@ -1849,6 +2077,169 @@
covx tTmp.txt,sys0,0,0 covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0 hSlider4.maxval=sys0
} }
@@ -467,9 +482,49 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
} }
if(tInstruction.txt=="pageType") if(tInstruction.txt=="pageType")
{ {
@@ -1924,10 +2315,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardGrid.txt HMI/US/portrait/n2t-out/cardGrid.txt
--- HMI/n2t-out/cardGrid.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardGrid.txt 2022-05-29 21:20:55.500412348 +0000
@@ -846,10 +846,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardMedia.txt HMI/US/portrait/n2t-out/cardMedia.txt
--- HMI/n2t-out/cardMedia.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-05-29 21:20:55.500412348 +0000
@@ -635,10 +635,7 @@
// 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
+ dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardQR.txt HMI/US/portrait/n2t-out/cardQR.txt diff -bur HMI/n2t-out/cardQR.txt HMI/US/portrait/n2t-out/cardQR.txt
--- HMI/n2t-out/cardQR.txt 2022-05-23 06:20:44.300447274 +0000 --- HMI/n2t-out/cardQR.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-23 06:20:44.736453105 +0000 +++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-29 21:20:55.500412348 +0000
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
Attributes Attributes
Scope : local Scope : local
@@ -479,9 +534,35 @@ diff -bur HMI/n2t-out/cardQR.txt HMI/US/portrait/n2t-out/cardQR.txt
Variable (string) entn Variable (string) entn
Attributes Attributes
@@ -581,10 +581,7 @@
// 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
+ dim=dimValue
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/cardThermo.txt HMI/US/portrait/n2t-out/cardThermo.txt
--- HMI/n2t-out/cardThermo.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/cardThermo.txt 2022-05-29 21:20:55.500412348 +0000
@@ -1169,10 +1169,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-05-23 06:20:44.300447274 +0000 --- HMI/n2t-out/pageStartup.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-23 06:20:44.736453105 +0000 +++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-29 21:20:55.500412348 +0000
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
@@ -500,3 +581,92 @@ diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -273,10 +273,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupLight.txt HMI/US/portrait/n2t-out/popupLight.txt
--- HMI/n2t-out/popupLight.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/popupLight.txt 2022-05-29 21:20:55.500412348 +0000
@@ -560,10 +560,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupNotify.txt HMI/US/portrait/n2t-out/popupNotify.txt
--- HMI/n2t-out/popupNotify.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/popupNotify.txt 2022-05-29 21:20:55.500412348 +0000
@@ -310,10 +310,6 @@
// 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
}
if(tInstruction.txt=="timeout")
{
diff -bur HMI/n2t-out/popupShutter.txt HMI/US/portrait/n2t-out/popupShutter.txt
--- HMI/n2t-out/popupShutter.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/popupShutter.txt 2022-05-29 21:20:55.500412348 +0000
@@ -405,10 +405,6 @@
// 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
}
if(tInstruction.txt=="time")
{
diff -bur HMI/n2t-out/screensaver.txt HMI/US/portrait/n2t-out/screensaver.txt
--- HMI/n2t-out/screensaver.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/portrait/n2t-out/screensaver.txt 2022-05-29 21:20:55.500412348 +0000
@@ -397,9 +397,6 @@
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0
dim=dimValue
- // get value normal
- spstr strCommand.txt,tTmp.txt,"~",2
- covx tTmp.txt,dimValueNormal,0,0
}
if(tInstruction.txt=="time")
{
@@ -474,22 +471,6 @@
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
- vis tForecast1,0
- vis tF1Icon,0
- vis tForecast1Val,0
- //move forecast values to the right
- tForecast4.txt=tForecast3.txt
- tForecast3.txt=tForecast2.txt
- tForecast2.txt=tForecast1.txt
- tForecast4Val.txt=tForecast3Val.txt
- tForecast3Val.txt=tForecast2Val.txt
- tForecast2Val.txt=tForecast1Val.txt
- tF4Icon.txt=tF3Icon.txt
- tF3Icon.txt=tF2Icon.txt
- tF2Icon.txt=tF1Icon.txt
- tF4Icon.pco=tF3Icon.pco
- tF3Icon.pco=tF2Icon.pco
- tF2Icon.pco=tF1Icon.pco
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16

View File

@@ -1,47 +1,157 @@
+++ HMI/US/portrait/diff-eu-version.txt 2022-05-23 06:20:44.752453318 +0000 +++ HMI/US/portrait/diff-eu-version.txt 2022-05-29 21:20:55.512412440 +0000
+--- HMI/n2t-out/Program.s.txt 2022-05-23 06:20:44.296447221 +0000 +--- HMI/n2t-out/Program.s.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-23 06:20:44.736453105 +0000 ++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-29 21:20:55.500412348 +0000
+--- HMI/n2t-out/cardEntities.txt 2022-05-23 06:20:44.300447274 +0000 +diff -bur HMI/n2t-out/cardAlarm.txt HMI/US/portrait/n2t-out/cardAlarm.txt
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-23 06:20:44.736453105 +0000 +--- HMI/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.128409486 +0000
+ Hotspot mSwipeNext ++++ HMI/US/portrait/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.500412348 +0000
+ Scope : local +@@ -683,10 +683,7 @@
+@@ -1892,6 +2120,169 @@ + // get value
++ // up button + spstr strCommand.txt,tTmp.txt,"~",1
++ spstr tId.txt,tTmp.txt,"|",3 + covx tTmp.txt,dimValue,0,0
++ if(tTmp.txt=="disable") +- // get value normal
++ spstr tId.txt,bUp5.txt,"|",0 +- spstr strCommand.txt,tTmp.txt,"~",2
++ }else if(tTmp.txt=="enable") +- covx tTmp.txt,dimValueNormal,0,0
++ spstr tId.txt,bUp5.txt,"|",0 +- dim=dimValueNormal
++ // stop button ++ dim=dimValue
++ spstr tId.txt,tTmp.txt,"|",4 + }
++ if(tTmp.txt=="disable") + if(tInstruction.txt=="timeout")
++ { + {
++ bStop5.pco=27501 +--- HMI/n2t-out/cardEntities.txt 2022-05-29 21:20:55.128409486 +0000
++ spstr tId.txt,bStop5.txt,"|",1 ++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-29 21:20:55.500412348 +0000
++ tsw bStop5,0 +@@ -1849,6 +2077,169 @@
++ }else if(tTmp.txt=="enable") +@@ -1924,10 +2315,6 @@
++ { + // get value
++ bStop5.pco=65535 + spstr strCommand.txt,tTmp.txt,"~",1
++ spstr tId.txt,bStop5.txt,"|",1 + covx tTmp.txt,dimValue,0,0
++ tsw bStop5,1 +- // get value normal
++ } +- spstr strCommand.txt,tTmp.txt,"~",2
++ // down button +- covx tTmp.txt,dimValueNormal,0,0
++ spstr tId.txt,tTmp.txt,"|",5 +- dim=dimValueNormal
++ if(tTmp.txt=="disable") + }
++ spstr tId.txt,bDown5.txt,"|",2 + if(tInstruction.txt=="timeout")
++ }else if(tTmp.txt=="enable") + {
++ spstr tId.txt,bDown5.txt,"|",2 +diff -bur HMI/n2t-out/cardGrid.txt HMI/US/portrait/n2t-out/cardGrid.txt
+diff -bur HMI/n2t-out/cardQR.txt HMI/US/portrait/n2t-out/cardQR.txt +--- HMI/n2t-out/cardGrid.txt 2022-05-29 21:20:55.128409486 +0000
+--- HMI/n2t-out/cardQR.txt 2022-05-23 06:20:44.300447274 +0000 ++++ HMI/US/portrait/n2t-out/cardGrid.txt 2022-05-29 21:20:55.500412348 +0000
++++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-23 06:20:44.736453105 +0000 +@@ -846,10 +846,6 @@
+@@ -34,7 +34,7 @@ + // get value
+ Attributes + spstr strCommand.txt,tTmp.txt,"~",1
+ Scope : local + covx tTmp.txt,dimValue,0,0
+ Text : +- // get value normal
+- Max. Text Size: 275 +- spstr strCommand.txt,tTmp.txt,"~",2
++ Max. Text Size: 270 +- covx tTmp.txt,dimValueNormal,0,0
+ +- dim=dimValueNormal
+ Variable (string) entn + }
+ Attributes + if(tInstruction.txt=="timeout")
+--- HMI/n2t-out/pageStartup.txt 2022-05-23 06:20:44.300447274 +0000 + {
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-23 06:20:44.736453105 +0000 +diff -bur HMI/n2t-out/cardMedia.txt HMI/US/portrait/n2t-out/cardMedia.txt
+--- HMI/n2t-out/cardMedia.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -635,10 +635,7 @@
+ // 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
++ dim=dimValue
+ }
+ if(tInstruction.txt=="timeout")
+ {
+--- HMI/n2t-out/cardQR.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -581,10 +581,7 @@
+ // 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
++ dim=dimValue
+ }
+ if(tInstruction.txt=="timeout")
+ {
+diff -bur HMI/n2t-out/cardThermo.txt HMI/US/portrait/n2t-out/cardThermo.txt
+--- HMI/n2t-out/cardThermo.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/cardThermo.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -1169,10 +1169,6 @@
+ // 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
+ }
+ if(tInstruction.txt=="timeout")
+ {
+--- HMI/n2t-out/pageStartup.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -273,10 +273,6 @@
+ // 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
+ }
+ if(tInstruction.txt=="timeout")
+ {
+diff -bur HMI/n2t-out/popupLight.txt HMI/US/portrait/n2t-out/popupLight.txt
+--- HMI/n2t-out/popupLight.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/popupLight.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -560,10 +560,6 @@
+ // 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
+ }
+ if(tInstruction.txt=="timeout")
+ {
+diff -bur HMI/n2t-out/popupNotify.txt HMI/US/portrait/n2t-out/popupNotify.txt
+--- HMI/n2t-out/popupNotify.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/popupNotify.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -310,10 +310,6 @@
+ // 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
+ }
+ if(tInstruction.txt=="timeout")
+ {
+diff -bur HMI/n2t-out/popupShutter.txt HMI/US/portrait/n2t-out/popupShutter.txt
+--- HMI/n2t-out/popupShutter.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/popupShutter.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -405,10 +405,6 @@
+ // 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
+ }
+ if(tInstruction.txt=="time")
+ {
+--- HMI/n2t-out/screensaver.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/screensaver.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -397,9 +397,6 @@
+ spstr strCommand.txt,tTmp.txt,"~",1
+ covx tTmp.txt,dimValue,0,0
+ dim=dimValue
+- // get value normal
+- spstr strCommand.txt,tTmp.txt,"~",2
+- covx tTmp.txt,dimValueNormal,0,0
+ }
+ if(tInstruction.txt=="time")
+ {
+@@ -474,22 +471,6 @@

View File

@@ -1013,24 +1013,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1050,24 +1033,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1087,24 +1053,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1168,25 +1117,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1

View File

@@ -2457,24 +2457,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -2494,24 +2477,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -2531,24 +2497,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -2612,25 +2561,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -976,24 +976,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1013,24 +996,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1050,24 +1016,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1131,25 +1080,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -895,24 +895,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -932,24 +915,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -969,24 +935,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1050,25 +999,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -597,24 +597,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -634,24 +617,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -671,24 +637,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -753,25 +702,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode

View File

@@ -159,7 +159,7 @@ XFloat xTempDest1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 174 x coordinate : 174
y coordinate : 219 y coordinate : 227
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -189,7 +189,7 @@ XFloat xTempMin1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 262 x coordinate : 262
y coordinate : 172 y coordinate : 180
Width : 50 Width : 50
Height : 22 Height : 22
Effect : load Effect : load
@@ -219,7 +219,7 @@ XFloat xTempMax1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 262 x coordinate : 262
y coordinate : 194 y coordinate : 202
Width : 45 Width : 45
Height : 20 Height : 20
Effect : load Effect : load
@@ -249,7 +249,7 @@ XFloat xTempStep1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 263 x coordinate : 263
y coordinate : 282 y coordinate : 290
Width : 45 Width : 45
Height : 20 Height : 20
Effect : load Effect : load
@@ -279,7 +279,7 @@ XFloat xTempDest2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 21 x coordinate : 21
y coordinate : 219 y coordinate : 227
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -309,7 +309,7 @@ XFloat xTempMin2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 110 x coordinate : 110
y coordinate : 170 y coordinate : 178
Width : 50 Width : 50
Height : 21 Height : 21
Effect : load Effect : load
@@ -339,7 +339,7 @@ XFloat xTempMax2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 110 x coordinate : 110
y coordinate : 192 y coordinate : 200
Width : 45 Width : 45
Height : 20 Height : 20
Effect : load Effect : load
@@ -369,7 +369,7 @@ XFloat xTempStep2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 111 x coordinate : 111
y coordinate : 280 y coordinate : 288
Width : 45 Width : 45
Height : 20 Height : 20
Effect : load Effect : load
@@ -399,7 +399,7 @@ XFloat xTempDest
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 100 x coordinate : 100
y coordinate : 220 y coordinate : 228
Width : 120 Width : 120
Height : 60 Height : 60
Effect : load Effect : load
@@ -458,10 +458,10 @@ Text tStatus
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 191 x coordinate : 174
y coordinate : 119 y coordinate : 110
Width : 97 Width : 115
Height : 30 Height : 56
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -475,8 +475,8 @@ Text tStatus
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Word wrap : disabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -489,7 +489,7 @@ Text tCF1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 295 x coordinate : 295
y coordinate : 217 y coordinate : 225
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -518,9 +518,9 @@ Text tCurTempLbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 35 x coordinate : 30
y coordinate : 82 y coordinate : 76
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -548,9 +548,9 @@ Text tStateLbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 192 x coordinate : 174
y coordinate : 81 y coordinate : 75
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -579,7 +579,7 @@ Text tCF2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 142 x coordinate : 142
y coordinate : 217 y coordinate : 225
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -608,9 +608,9 @@ Text tALbl
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 33 x coordinate : 15
y coordinate : 403 y coordinate : 402
Width : 67 Width : 83
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -639,7 +639,7 @@ Text tCF
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 221 x coordinate : 221
y coordinate : 217 y coordinate : 225
Width : 25 Width : 25
Height : 30 Height : 30
Effect : load Effect : load
@@ -668,9 +668,9 @@ Text tCurTemp
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 35 x coordinate : 30
y coordinate : 118 y coordinate : 112
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -1209,7 +1209,7 @@ Dual-state Button btUp1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 210 x coordinate : 210
y coordinate : 168 y coordinate : 176
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1267,7 +1267,7 @@ Dual-state Button btDown1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 210 x coordinate : 210
y coordinate : 280 y coordinate : 288
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1325,7 +1325,7 @@ Dual-state Button bUp2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 57 x coordinate : 57
y coordinate : 168 y coordinate : 176
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1383,7 +1383,7 @@ Dual-state Button bDown2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 57 x coordinate : 57
y coordinate : 280 y coordinate : 288
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1441,7 +1441,7 @@ Dual-state Button btUp
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 136 x coordinate : 136
y coordinate : 169 y coordinate : 177
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1499,7 +1499,7 @@ Dual-state Button btDown
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 136 x coordinate : 136
y coordinate : 281 y coordinate : 289
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -1566,24 +1566,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1603,24 +1586,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1640,24 +1606,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1721,25 +1670,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -2,6 +2,10 @@ Program.s
0 Component(s) 0 Component(s)
10 Line(s) of event code 10 Line(s) of event code
10 Unique line(s) of event code 10 Unique line(s) of event code
cardAlarm
38 Component(s)
360 Line(s) of event code
226 Unique line(s) of event code
pageIcons pageIcons
6 Component(s) 6 Component(s)
0 Line(s) of event code 0 Line(s) of event code
@@ -14,49 +18,45 @@ popupNotify
17 Component(s) 17 Component(s)
200 Line(s) of event code 200 Line(s) of event code
125 Unique line(s) of event code 125 Unique line(s) of event code
cardGrid
42 Component(s)
435 Line(s) of event code
256 Unique line(s) of event code
popupLight
27 Component(s)
348 Line(s) of event code
188 Unique line(s) of event code
cardQR
30 Component(s)
359 Line(s) of event code
209 Unique line(s) of event code
cardMedia
33 Component(s)
346 Line(s) of event code
181 Unique line(s) of event code
cardThermo
56 Component(s)
542 Line(s) of event code
292 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
154 Line(s) of event code 154 Line(s) of event code
115 Unique line(s) of event code 115 Unique line(s) of event code
cardGrid
42 Component(s)
439 Line(s) of event code
254 Unique line(s) of event code
popupLight
27 Component(s)
345 Line(s) of event code
187 Unique line(s) of event code
cardQR
30 Component(s)
363 Line(s) of event code
207 Unique line(s) of event code
cardThermo
56 Component(s)
546 Line(s) of event code
290 Unique line(s) of event code
cardAlarm
38 Component(s)
364 Line(s) of event code
224 Unique line(s) of event code
cardMedia
33 Component(s)
350 Line(s) of event code
179 Unique line(s) of event code
screensaver
35 Component(s)
296 Line(s) of event code
237 Unique line(s) of event code
popupShutter popupShutter
20 Component(s) 20 Component(s)
244 Line(s) of event code 244 Line(s) of event code
138 Unique line(s) of event code 138 Unique line(s) of event code
screensaver
37 Component(s)
290 Line(s) of event code
229 Unique line(s) of event code
cardEntities cardEntities
77 Component(s) 77 Component(s)
1363 Line(s) of event code 1359 Line(s) of event code
576 Unique line(s) of event code 578 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
414 Component(s) 416 Component(s)
4688 Line(s) of event code 4661 Line(s) of event code
1239 Unique line(s) of event code 1234 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0

View File

@@ -153,7 +153,7 @@ Text t1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 10 x coordinate : 10
y coordinate : 319 y coordinate : 341
Width : 240 Width : 240
Height : 30 Height : 30
Effect : load Effect : load
@@ -183,7 +183,7 @@ Text t2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 10 x coordinate : 10
y coordinate : 360 y coordinate : 382
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -439,10 +439,10 @@ Picture pColorWheel
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 160 x coordinate : 67
y coordinate : 69 y coordinate : 89
Width : 160 Width : 245
Height : 160 Height : 245
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -461,6 +461,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -482,7 +485,7 @@ Slider hBrightness
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 61 x coordinate : 61
y coordinate : 354 y coordinate : 376
Width : 250 Width : 250
Height : 43 Height : 43
Effect : load Effect : load

View File

@@ -50,27 +50,34 @@ Variable (string) strCommand
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 17 ID : 16
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 25 ID : 24
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 31 ID : 30
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 32 ID : 31
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
ID : 34
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
@@ -135,7 +142,7 @@ Text tDate
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tSend Text tMainIcon
Attributes Attributes
ID : 7 ID : 7
Scope : local Scope : local
@@ -143,38 +150,8 @@ Text tSend
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 19
y coordinate : 450
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 : 50
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainIcon
Attributes
ID : 8
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 125 x coordinate : 125
y coordinate : 241 y coordinate : 254
Width : 70 Width : 70
Height : 65 Height : 65
Effect : load Effect : load
@@ -197,14 +174,14 @@ Text tMainIcon
Text tMainText Text tMainText
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 111 x coordinate : 111
y coordinate : 305 y coordinate : 318
Width : 110 Width : 110
Height : 42 Height : 42
Effect : load Effect : load
@@ -227,14 +204,14 @@ Text tMainText
Text tForecast1 Text tForecast1
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 5 x coordinate : 5
y coordinate : 368 y coordinate : 377
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -257,14 +234,14 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
Attributes Attributes
ID : 11 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 2 x coordinate : 2
y coordinate : 434 y coordinate : 443
Width : 70 Width : 70
Height : 24 Height : 24
Effect : load Effect : load
@@ -287,14 +264,14 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
Attributes Attributes
ID : 12 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 23 x coordinate : 23
y coordinate : 397 y coordinate : 406
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -317,14 +294,14 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 13 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 86 x coordinate : 86
y coordinate : 369 y coordinate : 378
Width : 71 Width : 71
Height : 24 Height : 24
Effect : load Effect : load
@@ -347,14 +324,14 @@ Text tForecast2
Text tF2Icon Text tF2Icon
Attributes Attributes
ID : 14 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 103 x coordinate : 103
y coordinate : 397 y coordinate : 406
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -377,14 +354,14 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 15 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 83 x coordinate : 83
y coordinate : 434 y coordinate : 443
Width : 71 Width : 71
Height : 24 Height : 24
Effect : load Effect : load
@@ -407,14 +384,14 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 16 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 49 x coordinate : 49
y coordinate : 225 y coordinate : 233
Width : 225 Width : 225
Height : 2 Height : 2
Effect : load Effect : load
@@ -437,7 +414,7 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 18 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -467,14 +444,14 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 19 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 165 x coordinate : 165
y coordinate : 435 y coordinate : 444
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -497,14 +474,14 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 20 ID : 19
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 183 x coordinate : 183
y coordinate : 398 y coordinate : 407
Width : 40 Width : 40
Height : 33 Height : 33
Effect : load Effect : load
@@ -527,14 +504,14 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 21 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 167 x coordinate : 167
y coordinate : 370 y coordinate : 379
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -557,14 +534,14 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 22 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 247 x coordinate : 247
y coordinate : 370 y coordinate : 379
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -587,14 +564,14 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 23 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 263 x coordinate : 263
y coordinate : 398 y coordinate : 407
Width : 40 Width : 40
Height : 33 Height : 33
Effect : load Effect : load
@@ -617,14 +594,14 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 24 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 246 x coordinate : 246
y coordinate : 435 y coordinate : 444
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -647,14 +624,14 @@ Text tForecast4Val
Text tMainTextAlt Text tMainTextAlt
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 203 x coordinate : 184
y coordinate : 249 y coordinate : 262
Width : 105 Width : 105
Height : 41 Height : 41
Effect : load Effect : load
@@ -677,14 +654,14 @@ Text tMainTextAlt
Text tMainIconAlt Text tMainIconAlt
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 100 x coordinate : 44
y coordinate : 260 y coordinate : 273
Width : 100 Width : 100
Height : 65 Height : 65
Effect : load Effect : load
@@ -707,14 +684,14 @@ Text tMainIconAlt
Text tMRIcon Text tMRIcon
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 201 x coordinate : 182
y coordinate : 304 y coordinate : 317
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -737,14 +714,14 @@ Text tMRIcon
Text tMR Text tMR
Attributes Attributes
ID : 30 ID : 29
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 243 x coordinate : 224
y coordinate : 309 y coordinate : 322
Width : 61 Width : 61
Height : 20 Height : 20
Effect : load Effect : load
@@ -767,14 +744,14 @@ Text tMR
Text tNotifyHead Text tNotifyHead
Attributes Attributes
ID : 33 ID : 32
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 240 y coordinate : 253
Width : 320 Width : 320
Height : 58 Height : 58
Effect : load Effect : load
@@ -797,14 +774,14 @@ Text tNotifyHead
Text tNotifyText Text tNotifyText
Attributes Attributes
ID : 34 ID : 33
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 298 y coordinate : 311
Width : 320 Width : 320
Height : 58 Height : 58
Effect : load Effect : load
@@ -825,6 +802,66 @@ Text tNotifyText
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tIcon1
Attributes
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 8
y coordinate : 220
Width : 33
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 : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon2
Attributes
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 282
y coordinate : 220
Width : 33
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 : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -979,22 +1016,17 @@ Timer tmSerial
vis tMainIconAlt,1 vis tMainIconAlt,1
vis tMRIcon,1 vis tMRIcon,1
vis tMR,1 vis tMR,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
//move forecast values to the right
tForecast4.txt=tForecast3.txt
tForecast3.txt=tForecast2.txt
tForecast2.txt=tForecast1.txt
tForecast4Val.txt=tForecast3Val.txt
tForecast3Val.txt=tForecast2Val.txt
tForecast2Val.txt=tForecast1Val.txt
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1010,6 +1042,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -1030,8 +1064,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -1059,12 +1095,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
@@ -1150,7 +1182,7 @@ Timer tmSerial
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes

View File

@@ -475,24 +475,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -503,24 +486,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -531,24 +497,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -611,25 +560,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1

View File

@@ -1311,24 +1311,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1339,24 +1322,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1367,24 +1333,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1447,25 +1396,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -531,24 +531,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -559,24 +542,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -587,24 +553,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -667,25 +616,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type

View File

@@ -465,24 +465,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -493,24 +476,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -521,24 +487,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -601,25 +550,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -326,24 +326,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -354,24 +337,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -382,24 +348,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -463,25 +412,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode

View File

@@ -227,7 +227,7 @@ Text tStatus
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Text tCF1 Text tCF1
Attributes Attributes
@@ -804,24 +804,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -832,24 +815,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -860,24 +826,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -940,25 +889,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0

View File

@@ -209,6 +209,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC

View File

@@ -62,6 +62,12 @@ Variable (string) tTmp
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 50
Text tTime Text tTime
Attributes Attributes
Scope : local Scope : local
@@ -82,16 +88,6 @@ Text tDate
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 35
Text tSend
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 50
Text tMainIcon Text tMainIcon
Attributes Attributes
Scope : local Scope : local
@@ -312,6 +308,26 @@ Text tNotifyText
Text : Text :
Max. Text Size : 35 Max. Text Size : 35
Text tIcon1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Text tIcon2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -455,22 +471,17 @@ Timer tmSerial
vis tMainIconAlt,1 vis tMainIconAlt,1
vis tMRIcon,1 vis tMRIcon,1
vis tMR,1 vis tMR,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
//move forecast values to the right
tForecast4.txt=tForecast3.txt
tForecast3.txt=tForecast2.txt
tForecast2.txt=tForecast1.txt
tForecast4Val.txt=tForecast3Val.txt
tForecast3Val.txt=tForecast2Val.txt
tForecast2Val.txt=tForecast1Val.txt
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -486,6 +497,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -506,8 +519,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -535,12 +550,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")

Binary file not shown.

Binary file not shown.

View File

@@ -7,7 +7,7 @@ head = sharedhead + """
""" + navigation """ + navigation
print(head) print(head)
start = 3 start = 3
for i in range(1,6): for i in range(1,5):
idxstart = start + (i-1)*6 idxstart = start + (i-1)*6
item = f""" item = f"""
// get Type // get Type

View File

@@ -0,0 +1,159 @@
unicode_ranges="0000-007F," #Basic Latin
unicode_ranges+="0080-00FF," #C1 Controls and Latin-1 Supplement
unicode_ranges+="0100-017F," #Latin Extended-A
unicode_ranges+="0180-024F," #Latin Extended-B
#unicode_ranges+="0250-02AF," #IPA Extensions
#unicode_ranges+="02B0-02FF," #Spacing Modifier Letters
#unicode_ranges+="0300-036F," #Combining Diacritical Marks
unicode_ranges+="0370-03FF," #Greek/Coptic
unicode_ranges+="0400-04FF," #Cyrillic
#unicode_ranges+="0500-052F," #Cyrillic Supplement
#unicode_ranges+="0530-058F," #Armenian
unicode_ranges+="0590-05FF," #Hebrew
unicode_ranges+="0600-06FF," #Arabic
#unicode_ranges+="0700-074F," #Syriac
#unicode_ranges+="0750-077F," #Undefined
#unicode_ranges+="0780-07BF," #Thaana
#unicode_ranges+="07C0-08FF," #Undefined
#unicode_ranges+="0900-097F," #Devanagari
#unicode_ranges+="0980-09FF," #Bengali/Assamese
#unicode_ranges+="0A00-0A7F," #Gurmukhi
#unicode_ranges+="0A80-0AFF," #Gujarati
#unicode_ranges+="0B00-0B7F," #Oriya
#unicode_ranges+="0B80-0BFF," #Tamil
#unicode_ranges+="0C00-0C7F," #Telugu
#unicode_ranges+="0C80-0CFF," #Kannada
#unicode_ranges+="0D00-0DFF," #Malayalam
#unicode_ranges+="0D80-0DFF," #Sinhala
#unicode_ranges+="0E00-0E7F," #Thai
#unicode_ranges+="0E80-0EFF," #Lao
#unicode_ranges+="0F00-0FFF," #Tibetan
#unicode_ranges+="1000-109F," #Myanmar
unicode_ranges+="10A0-10FF," #Georgian
#unicode_ranges+="1100-11FF," #Hangul Jamo
#unicode_ranges+="1200-137F," #Ethiopic
#unicode_ranges+="1380-139F," #Undefined
#unicode_ranges+="13A0-13FF," #Cherokee
#unicode_ranges+="1400-167F," #Unified Canadian Aboriginal Syllabics
#unicode_ranges+="1680-169F," #Ogham
#unicode_ranges+="16A0-16FF," #Runic
#unicode_ranges+="1700-171F," #Tagalog
#unicode_ranges+="1720-173F," #Hanunoo
#unicode_ranges+="1740-175F," #Buhid
#unicode_ranges+="1760-177F," #Tagbanwa
#unicode_ranges+="1780-17FF," #Khmer
#unicode_ranges+="1800-18AF," #Mongolian
#unicode_ranges+="18B0-18FF," #Undefined
#unicode_ranges+="1900-194F," #Limbu
#unicode_ranges+="1950-197F," #Tai Le
#unicode_ranges+="1980-19DF," #Undefined
#unicode_ranges+="19E0-19FF," #Khmer Symbols
#unicode_ranges+="1A00-1CFF," #Undefined
#unicode_ranges+="1D00-1D7F," #Phonetic Extensions
#unicode_ranges+="1D80-1DFF," #Undefined
#unicode_ranges+="1E00-1EFF," #Latin Extended Additional
#unicode_ranges+="1F00-1FFF," #Greek Extended
#unicode_ranges+="2000-206F," #General Punctuation
#unicode_ranges+="2070-209F," #Superscripts and Subscripts
#unicode_ranges+="20A0-20CF," #Currency Symbols
#unicode_ranges+="20D0-20FF," #Combining Diacritical Marks for Symbols
#unicode_ranges+="2100-214F," #Letterlike Symbols
#unicode_ranges+="2150-218F," #Number Forms
#unicode_ranges+="2190-21FF," #Arrows
#unicode_ranges+="2200-22FF," #Mathematical Operators
#unicode_ranges+="2300-23FF," #Miscellaneous Technical
#unicode_ranges+="2400-243F," #Control Pictures
#unicode_ranges+="2440-245F," #Optical Character Recognition
#unicode_ranges+="2460-24FF," #Enclosed Alphanumerics
#unicode_ranges+="2500-257F," #Box Drawing
#unicode_ranges+="2580-259F," #Block Elements
#unicode_ranges+="25A0-25FF," #Geometric Shapes
#unicode_ranges+="2600-26FF," #Miscellaneous Symbols
#unicode_ranges+="2700-27BF," #Dingbats
#unicode_ranges+="27C0-27EF," #Miscellaneous Mathematical Symbols-A
#unicode_ranges+="27F0-27FF," #Supplemental Arrows-A
#unicode_ranges+="2800-28FF," #Braille Patterns
#unicode_ranges+="2900-297F," #Supplemental Arrows-B
#unicode_ranges+="2980-29FF," #Miscellaneous Mathematical Symbols-B
#unicode_ranges+="2A00-2AFF," #Supplemental Mathematical Operators
#unicode_ranges+="2B00-2BFF," #Miscellaneous Symbols and Arrows
#unicode_ranges+="2C00-2E7F," #Undefined
#unicode_ranges+="2E80-2EFF," #CJK Radicals Supplement
#unicode_ranges+="2F00-2FDF," #Kangxi Radicals
#unicode_ranges+="2FE0-2EEF," #Undefined
#unicode_ranges+="2FF0-2FFF," #Ideographic Description Characters
#unicode_ranges+="3000-303F," #CJK Symbols and Punctuation
#unicode_ranges+="3040-309F," #Hiragana
#unicode_ranges+="30A0-30FF," #Katakana
#unicode_ranges+="3100-312F," #Bopomofo
#unicode_ranges+="3130-318F," #Hangul Compatibility Jamo
#unicode_ranges+="3190-319F," #Kanbun (Kunten)
#unicode_ranges+="31A0-31BF," #Bopomofo Extended
#unicode_ranges+="31C0-31EF," #Undefined
#unicode_ranges+="31F0-31FF," #Katakana Phonetic Extensions
#unicode_ranges+="3200-32FF," #Enclosed CJK Letters and Months
#unicode_ranges+="3300-33FF," #CJK Compatibility
#unicode_ranges+="3400-4DBF," #CJK Unified Ideographs Extension A
#unicode_ranges+="4DC0-4DFF," #Yijing Hexagram Symbols
#unicode_ranges+="4E00-9FAF," #CJK Unified Ideographs
#unicode_ranges+="9FB0-9FFF," #Undefined
#unicode_ranges+="A000-A48F," #Yi Syllables
#unicode_ranges+="A490-A4CF," #Yi Radicals
#unicode_ranges+="A4D0-ABFF," #Undefined
#unicode_ranges+="AC00-D7AF," #Hangul Syllables
#unicode_ranges+="D7B0-D7FF," #Undefined
#unicode_ranges+="D800-DBFF," #High Surrogate Area
#unicode_ranges+="DC00-DFFF," #Low Surrogate Area
#unicode_ranges+="E000-F8FF," #Private Use Area
#unicode_ranges+="F900-FAFF," #CJK Compatibility Ideographs
#unicode_ranges+="FB00-FB4F," #Alphabetic Presentation Forms
#unicode_ranges+="FB50-FDFF," #Arabic Presentation Forms-A
#unicode_ranges+="FE00-FE0F," #Variation Selectors
#unicode_ranges+="FE10-FE1F," #Undefined
#unicode_ranges+="FE20-FE2F," #Combining Half Marks
#unicode_ranges+="FE30-FE4F," #CJK Compatibility Forms
#unicode_ranges+="FE50-FE6F," #Small Form Variants
#unicode_ranges+="FE70-FEFF," #Arabic Presentation Forms-B
#unicode_ranges+="FF00-FFEF," #Halfwidth and Fullwidth Forms
#unicode_ranges+="FFF0-FFFF," #Specials
#unicode_ranges+="10000-1007F," #Linear B Syllabary
#unicode_ranges+="10080-100FF," #Linear B Ideograms
#unicode_ranges+="10100-1013F," #Aegean Numbers
#unicode_ranges+="10140-102FF," #Undefined
#unicode_ranges+="10300-1032F," #Old Italic
#unicode_ranges+="10330-1034F," #Gothic
#unicode_ranges+="10380-1039F," #Ugaritic
#unicode_ranges+="10400-1044F," #Deseret
#unicode_ranges+="10450-1047F," #Shavian
#unicode_ranges+="10480-104AF," #Osmanya
#unicode_ranges+="104B0-107FF," #Undefined
#unicode_ranges+="10800-1083F," #Cypriot Syllabary
#unicode_ranges+="10840-1CFFF," #Undefined
#unicode_ranges+="1D000-1D0FF," #Byzantine Musical Symbols
#unicode_ranges+="1D100-1D1FF," #Musical Symbols
#unicode_ranges+="1D200-1D2FF," #Undefined
#unicode_ranges+="1D300-1D35F," #Tai Xuan Jing Symbols
#unicode_ranges+="1D360-1D3FF," #Undefined
#unicode_ranges+="1D400-1D7FF," #Mathematical Alphanumeric Symbols
#unicode_ranges+="1D800-1FFFF," #Undefined
#unicode_ranges+="20000-2A6DF," #CJK Unified Ideographs Extension B
#unicode_ranges+="2A6E0-2F7FF," #Undefined
#unicode_ranges+="2F800-2FA1F," #CJK Compatibility Ideographs Supplement
#unicode_ranges+="2FAB0-DFFFF," #Unused
#unicode_ranges+="E0000-E007F," #Tags
#unicode_ranges+="E0080-E00FF," #Unused
#unicode_ranges+="E0100-E01EF," #Variation Selectors Supplement
#unicode_ranges+="E01F0-EFFFF," #Unused
#unicode_ranges+="F0000-FFFFD," #Supplementary Private Use Area-A
#unicode_ranges+="FFFFE-FFFFF," #Unused
#unicode_ranges+="100000-10FFFD," #Supplementary Private Use Area-B
char_res_string = ""
for r in unicode_ranges[:-1].split(","):
start = int('0x'+r.split('-')[0], 16)
end = int('0x'+r.split('-')[1], 16)+1
print(start, end)
char_res_string += ''.join(chr(i) for i in range(start, end))
print(char_res_string)

View File

@@ -119,6 +119,10 @@ sharedfoot = """
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -146,25 +150,33 @@ navigation = """
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
""" """

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1013,24 +1013,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1050,24 +1033,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1087,24 +1053,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1168,25 +1117,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1
@@ -1283,7 +1240,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -2036,24 +2036,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -2073,24 +2056,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -2110,24 +2076,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -2191,25 +2140,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type
@@ -2939,6 +2896,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -976,24 +976,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1013,24 +996,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1050,24 +1016,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1131,25 +1080,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type
@@ -1353,6 +1310,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -895,24 +895,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -932,24 +915,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -969,24 +935,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1050,25 +999,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name
@@ -1127,7 +1084,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -597,24 +597,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -634,24 +617,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -671,24 +637,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -753,25 +702,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
@@ -914,7 +871,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -459,9 +459,9 @@ Text tStatus
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 11 x coordinate : 11
y coordinate : 200 y coordinate : 190
Width : 97 Width : 115
Height : 30 Height : 54
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -472,11 +472,11 @@ Text tStatus
Back. Color : 6371 Back. Color : 6371
Font Color : 50712 Font Color : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : top
Input Type : character Input Type : character
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Word wrap : disabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -520,7 +520,7 @@ Text tCurTempLbl
Opacity : 127 Opacity : 127
x coordinate : 13 x coordinate : 13
y coordinate : 85 y coordinate : 85
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -549,8 +549,8 @@ Text tStateLbl
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 12 x coordinate : 12
y coordinate : 162 y coordinate : 156
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -610,7 +610,7 @@ Text tALbl
Opacity : 127 Opacity : 127
x coordinate : 7 x coordinate : 7
y coordinate : 260 y coordinate : 260
Width : 67 Width : 74
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -669,8 +669,8 @@ Text tCurTemp
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 13 x coordinate : 13
y coordinate : 121 y coordinate : 119
Width : 95 Width : 115
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -1566,24 +1566,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1603,24 +1586,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1640,24 +1606,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1721,25 +1670,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name
@@ -1993,6 +1950,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -10,53 +10,53 @@ pageTest
14 Component(s) 14 Component(s)
14 Line(s) of event code 14 Line(s) of event code
14 Unique line(s) of event code 14 Unique line(s) of event code
pageStartup
19 Component(s)
154 Line(s) of event code
115 Unique line(s) of event code
cardMedia
33 Component(s)
350 Line(s) of event code
179 Unique line(s) of event code
popupNotify popupNotify
17 Component(s) 17 Component(s)
200 Line(s) of event code 203 Line(s) of event code
125 Unique line(s) of event code 127 Unique line(s) of event code
screensaver
35 Component(s)
296 Line(s) of event code
237 Unique line(s) of event code
popupLight
27 Component(s)
345 Line(s) of event code
187 Unique line(s) of event code
cardQR
30 Component(s)
363 Line(s) of event code
207 Unique line(s) of event code
popupShutter
20 Component(s)
244 Line(s) of event code
138 Unique line(s) of event code
cardGrid
42 Component(s)
439 Line(s) of event code
254 Unique line(s) of event code
cardAlarm cardAlarm
38 Component(s) 38 Component(s)
364 Line(s) of event code 362 Line(s) of event code
224 Unique line(s) of event code 227 Unique line(s) of event code
popupShutter
20 Component(s)
247 Line(s) of event code
140 Unique line(s) of event code
cardGrid
42 Component(s)
438 Line(s) of event code
258 Unique line(s) of event code
popupLight
27 Component(s)
351 Line(s) of event code
190 Unique line(s) of event code
cardMedia
33 Component(s)
348 Line(s) of event code
182 Unique line(s) of event code
screensaver
37 Component(s)
307 Line(s) of event code
245 Unique line(s) of event code
pageStartup
19 Component(s)
157 Line(s) of event code
117 Unique line(s) of event code
cardThermo cardThermo
56 Component(s) 56 Component(s)
546 Line(s) of event code 545 Line(s) of event code
290 Unique line(s) of event code 294 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1133 Line(s) of event code 1132 Line(s) of event code
491 Unique line(s) of event code 495 Unique line(s) of event code
cardQR
30 Component(s)
361 Line(s) of event code
210 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
402 Component(s) 404 Component(s)
4459 Line(s) of event code 4476 Line(s) of event code
1168 Unique line(s) of event code 1180 Unique line(s) of event code

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
@@ -568,6 +568,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -461,6 +461,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -903,6 +906,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -519,6 +519,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -690,6 +690,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -50,27 +50,34 @@ Variable (string) strCommand
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 17 ID : 16
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 25 ID : 24
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 31 ID : 30
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 32 ID : 31
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
ID : 34
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
@@ -83,10 +90,10 @@ Text tTime
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 37
y coordinate : 0 y coordinate : 0
Width : 451 Width : 376
Height : 150 Height : 154
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -114,8 +121,8 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 150 y coordinate : 154
Width : 451 Width : 450
Height : 38 Height : 38
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -135,7 +142,7 @@ Text tDate
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tSend Text tMainIcon
Attributes Attributes
ID : 7 ID : 7
Scope : local Scope : local
@@ -143,38 +150,8 @@ Text tSend
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 405
y coordinate : 2
Width : 29
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 tMainIcon
Attributes
ID : 8
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26 x coordinate : 26
y coordinate : 202 y coordinate : 206
Width : 70 Width : 70
Height : 66 Height : 66
Effect : load Effect : load
@@ -197,14 +174,14 @@ Text tMainIcon
Text tMainText Text tMainText
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 7 x coordinate : 7
y coordinate : 267 y coordinate : 271
Width : 110 Width : 110
Height : 43 Height : 43
Effect : load Effect : load
@@ -227,14 +204,14 @@ Text tMainText
Text tForecast1 Text tForecast1
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 128 x coordinate : 128
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 26 Height : 26
Effect : load Effect : load
@@ -257,14 +234,14 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
Attributes Attributes
ID : 11 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 125 x coordinate : 125
y coordinate : 276 y coordinate : 280
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -287,14 +264,14 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
Attributes Attributes
ID : 12 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 146 x coordinate : 146
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -317,14 +294,14 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 13 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 212 x coordinate : 212
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -347,14 +324,14 @@ Text tForecast2
Text tF2Icon Text tF2Icon
Attributes Attributes
ID : 14 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 228 x coordinate : 228
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -377,14 +354,14 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 15 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 212 x coordinate : 212
y coordinate : 277 y coordinate : 281
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -407,14 +384,14 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 16 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 46 x coordinate : 46
y coordinate : 195 y coordinate : 199
Width : 360 Width : 360
Height : 2 Height : 2
Effect : load Effect : load
@@ -437,14 +414,14 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 18 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 343 x coordinate : 343
y coordinate : 48 y coordinate : 49
Width : 104 Width : 104
Height : 57 Height : 57
Effect : load Effect : load
@@ -467,14 +444,14 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 19 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 292 x coordinate : 292
y coordinate : 277 y coordinate : 281
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -497,14 +474,14 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 20 ID : 19
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 309 x coordinate : 309
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -527,14 +504,14 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 21 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 293 x coordinate : 293
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -557,14 +534,14 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 22 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 374 x coordinate : 374
y coordinate : 210 y coordinate : 214
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -587,14 +564,14 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 23 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 390 x coordinate : 390
y coordinate : 239 y coordinate : 243
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -617,14 +594,14 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 24 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 374 x coordinate : 374
y coordinate : 277 y coordinate : 281
Width : 72 Width : 72
Height : 25 Height : 25
Effect : load Effect : load
@@ -647,14 +624,14 @@ Text tForecast4Val
Text tMainTextAlt Text tMainTextAlt
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 104 x coordinate : 104
y coordinate : 210 y coordinate : 214
Width : 106 Width : 106
Height : 42 Height : 42
Effect : load Effect : load
@@ -677,14 +654,14 @@ Text tMainTextAlt
Text tMainIconAlt Text tMainIconAlt
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 221 y coordinate : 225
Width : 100 Width : 100
Height : 66 Height : 66
Effect : load Effect : load
@@ -707,14 +684,14 @@ Text tMainIconAlt
Text tMRIcon Text tMRIcon
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 101 x coordinate : 101
y coordinate : 266 y coordinate : 270
Width : 40 Width : 40
Height : 35 Height : 35
Effect : load Effect : load
@@ -737,14 +714,14 @@ Text tMRIcon
Text tMR Text tMR
Attributes Attributes
ID : 30 ID : 29
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 144 x coordinate : 144
y coordinate : 270 y coordinate : 274
Width : 62 Width : 62
Height : 21 Height : 21
Effect : load Effect : load
@@ -767,14 +744,14 @@ Text tMR
Text tNotifyHead Text tNotifyHead
Attributes Attributes
ID : 33 ID : 32
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 201 y coordinate : 205
Width : 450 Width : 450
Height : 58 Height : 58
Effect : load Effect : load
@@ -797,14 +774,14 @@ Text tNotifyHead
Text tNotifyText Text tNotifyText
Attributes Attributes
ID : 34 ID : 33
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 258 y coordinate : 262
Width : 450 Width : 450
Height : 47 Height : 47
Effect : load Effect : load
@@ -825,6 +802,66 @@ Text tNotifyText
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tIcon1
Attributes
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 38
Height : 38
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 17299
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon2
Attributes
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 413
y coordinate : 0
Width : 38
Height : 38
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 17299
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 5
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -905,6 +942,9 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue dim=dimValue
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -992,9 +1032,20 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt tF2Icon.txt=tF1Icon.txt
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1010,6 +1061,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -1030,8 +1083,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -1059,12 +1114,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
@@ -1150,7 +1201,7 @@ Timer tmSerial
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes

View File

@@ -475,24 +475,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -503,24 +486,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -531,24 +497,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -611,25 +560,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text arm1 //text arm1
@@ -726,7 +683,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -1083,24 +1083,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -1111,24 +1094,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -1139,24 +1105,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -1219,25 +1168,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type
@@ -1967,6 +1924,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -531,24 +531,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -559,24 +542,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -587,24 +553,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -667,25 +616,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
// get Type // get Type
@@ -889,6 +846,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -465,24 +465,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -493,24 +476,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -521,24 +487,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -601,25 +550,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name
@@ -678,7 +635,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -326,24 +326,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -354,24 +337,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -382,24 +348,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -463,25 +412,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
@@ -624,7 +581,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue // get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -227,7 +227,7 @@ Text tStatus
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Text :
Max. Text Size : 10 Max. Text Size : 40
Text tCF1 Text tCF1
Attributes Attributes
@@ -804,24 +804,7 @@ Hotspot mSwipeNext
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bNext,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing right button if swiped on the right side of the screen
//
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="1")
{
click bNext,1
}
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
@@ -832,24 +815,7 @@ Hotspot mSwipeUp
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing up button if swiped on the top side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="2")
{
click bPrev,1
}
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
@@ -860,24 +826,7 @@ Hotspot mSwipePrev
Events Events
Touch Press Event Touch Press Event
//This thin hotspot down the edge will intercept swipes click bPrev,1
//from the bezel into the screen area before the
//Nextion register touch for any other components -
//IF the hotspot is 'layered' at the top (use the up
//arrow at the far left of the Nextion Editor Tool Bar).
//
//Calibrate how wide the edge hotspot has to be on your
//own physical device using this screen to test the
//x & y coordinates where the swipe is first detected.)
//---------------------------
//The navigation text is stored as local variable within tld.txt
//Pressing left button if swiped on the left side of the screen
//
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="1")
{
click bPrev,1
}
Timer tmSerial Timer tmSerial
Attributes Attributes
@@ -940,25 +889,33 @@ Timer tmSerial
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bPrev,0 vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt="" bPrev.txt=""
} }
if(tTmp.txt=="2") if(tTmp.txt=="2")
{ {
vis bPrev,1 vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt="" bPrev.txt=""
} }
spstr tId.txt,tTmp.txt,"|",1 spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0") if(tTmp.txt=="0")
{ {
vis bNext,0 vis bNext,0
tsw mSwipeNext,0
} }
if(tTmp.txt=="1") if(tTmp.txt=="1")
{ {
vis bNext,1 vis bNext,1
tsw mSwipeNext,1
bNext.txt="" bNext.txt=""
} }
//entity name //entity name
@@ -1212,6 +1169,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 35 Text : 36
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0
@@ -273,6 +273,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -209,6 +209,9 @@ Picture pColorWheel
sys0=sys0-pColorWheel.y sys0=sys0-pColorWheel.y
covx sys0,tTmp.txt,0,0 covx sys0,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx pColorWheel.h,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -557,6 +560,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -310,6 +310,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -405,6 +405,10 @@ Timer tmSerial
// get value // get value
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
dim=dimValueNormal
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -62,6 +62,12 @@ Variable (string) tTmp
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 50
Text tTime Text tTime
Attributes Attributes
Scope : local Scope : local
@@ -82,16 +88,6 @@ Text tDate
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 35
Text tSend
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 50
Text tMainIcon Text tMainIcon
Attributes Attributes
Scope : local Scope : local
@@ -312,6 +308,26 @@ Text tNotifyText
Text : Text :
Max. Text Size : 35 Max. Text Size : 35
Text tIcon1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Text tIcon2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 5
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -381,6 +397,9 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",1 spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,dimValue,0,0 covx tTmp.txt,dimValue,0,0
dim=dimValue dim=dimValue
// get value normal
spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,dimValueNormal,0,0
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -468,9 +487,20 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt tF2Icon.txt=tF1Icon.txt
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
} }
//tMR //tMR
spstr strCommand.txt,tMR.txt,"~",16 spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -486,6 +516,8 @@ Timer tmSerial
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco tMRIcon.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco tF1Icon.bco=tTime.bco
@@ -506,8 +538,10 @@ Timer tmSerial
covx tTmp.txt,tDate.pco,0,0 covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5 spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0 covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6 spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0 covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7 spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast1.pco,0,0 covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8 spstr strCommand.txt,tTmp.txt,"~",8
@@ -535,12 +569,8 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",19 spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,t10.bco,0,0 covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMainIconAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMainTextAlt.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",23 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")

Binary file not shown.

Binary file not shown.

1842
Nextion2Text.py Normal file

File diff suppressed because it is too large Load Diff

136
README.md
View File

@@ -309,7 +309,7 @@ nspanel-1:
entities: entities:
- entity: switch.example_item - entity: switch.example_item
name: NameOverride name: NameOverride
icon: lightbulb icon: mdi:lightbulb
- entity: light.example_item - entity: light.example_item
- entity: cover.example_item - entity: cover.example_item
- entity: input_boolean.example_item - entity: input_boolean.example_item
@@ -355,9 +355,9 @@ nspanel-1:
qrCode: "WIFI:S:test_ssid;T:WPA;P:test_pw;;" qrCode: "WIFI:S:test_ssid;T:WPA;P:test_pw;;"
entities: entities:
- entity: iText.Name.test_ssid - entity: iText.Name.test_ssid
icon: wifi icon: mdi:wifi
- entity: iText.Password.test_pw - entity: iText.Password.test_pw
icon: key icon: mdi:key
``` ```
key | optional | type | default | description key | optional | type | default | description
@@ -453,10 +453,12 @@ key | optional | type | default | description
-- | -- | -- | -- | -- -- | -- | -- | -- | --
`entity` | True | string | `weather.example` | weather entity from homeassistant `entity` | True | string | `weather.example` | weather entity from homeassistant
`weatherUnit` | True | string | `celsius` | unit for temperature, valid values are `celsius` or `fahrenheit` `weatherUnit` | True | string | `celsius` | unit for temperature, valid values are `celsius` or `fahrenheit`
`weatherOverrideForecast1` | True | complex | `None` | sensor entity from home assistant here to override the first weather forecast item on the screensaver `weatherOverrideForecast1` | True | complex | `None` | sensor entity from home assistant here to overwrite the first weather forecast item on the screensaver
`weatherOverrideForecast2` | True | complex | `None` | sensor entity from home assistant here to override the second weather forecast item on the screensaver `weatherOverrideForecast2` | True | complex | `None` | sensor entity from home assistant here to overwrite the second weather forecast item on the screensaver
`weatherOverrideForecast3` | True | complex | `None` | sensor entity from home assistant here to override the third weather forecast item on the screensaver `weatherOverrideForecast3` | True | complex | `None` | sensor entity from home assistant here to overwrite the third weather forecast item on the screensaver
`weatherOverrideForecast4` | True | complex | `None` | sensor entity from home assistant here to override the forth weather forecast item on the screensaver `weatherOverrideForecast4` | True | complex | `None` | sensor entity from home assistant here to overwrite the forth weather forecast item on the screensaver
`statusIcon1` | True | complex | `None` | status icon left to the date string, config similar to weatherOverride
`statusIcon2` | True | complex | `None` | status icon right to the date string, config similar to weatherOverride
`doubleTapToUnlock` | True | boolean | `False` | requires to tap screensaver two times `doubleTapToUnlock` | True | boolean | `False` | requires to tap screensaver two times
`alternativeLayout` | True | boolean | `False` | alternative layout with humidity `alternativeLayout` | True | boolean | `False` | alternative layout with humidity
`theme` | True | complex | | configuration for theme `theme` | True | complex | | configuration for theme
@@ -469,7 +471,7 @@ Example for the weatherOverride config options:
weatherOverrideForecast4: weatherOverrideForecast4:
entity: sensor.example_item entity: sensor.example_item
name: name name: name
icon: lightbulb icon: mdi:lightbulb
``` ```
#### Possible configuration values for screensaver theme config #### Possible configuration values for screensaver theme config
@@ -498,10 +500,22 @@ key | option | type | default | description
`tMainTextAlt` | True | list | White | `[R, G, B]` `tMainTextAlt` | True | list | White | `[R, G, B]`
`tMRIcon` | True | list | White | `[R, G, B]` `tMRIcon` | True | list | White | `[R, G, B]`
`tMR` | True | list | White | `[R, G, B]` `tMR` | True | list | White | `[R, G, B]`
`AutoWeather` | True | string | None | Set to `auto` to enable weather icons to change depending on state e.g. blue for rainy. Any custom colors in `tMainIcon` `tF1Icon` `tF2Icon` `tF3Icon` `tF4Icon` take precedence `autoWeather` | True | boolean | false | Set to `true` to enable weather icons to change depending on state e.g. blue for rainy. Any custom colors in `tMainIcon` `tF1Icon` `tF2Icon` `tF3Icon` `tF4Icon` take precedence.
If `autoWeather: true` is set. You may also overwrite the default color mapping for any valid weather state provided by homeassistant e.g. `rainy: [50, 50, 255]` or `sunny: [255, 255, 0]`
Specify colours as red green and blue values from 0-255 e.g. `[255, 0, 0]` for red or `[0, 0, 255]` for blue. These are translated internally to RGB565 (note that this has lower color depth so the colours may not appear the same). Also note that the screen has a low contrast ratio, so colors look sigificantly different at full display brightness and lowest brightness. Specify colours as red green and blue values from 0-255 e.g. `[255, 0, 0]` for red or `[0, 0, 255]` for blue. These are translated internally to RGB565 (note that this has lower color depth so the colours may not appear the same). Also note that the screen has a low contrast ratio, so colors look sigificantly different at full display brightness and lowest brightness.
Example for the theme config:
```yaml
screensaver:
theme:
autoWeather: true
```
For complex setups where you want to reuse the theme over multiple panels see the config exmaples in the appdaemon folder.
#### Schedule sleep brightness #### Schedule sleep brightness
It is possible to schedule a brightness change for the screen at specific times. It is possible to schedule a brightness change for the screen at specific times.
@@ -525,16 +539,27 @@ It is possible to schedule a brightness change for the screen at specific times.
#### Override Icons or Names #### Override Icons or Names
To override Icons or Names of entities you can configure an icon and/or name in your configuration, please see the following example. To overwrite Icons or Names of entities you can configure an icon and/or name in your configuration, please see the following example.
Only the icons listed in the [Icon Cheatsheet](https://htmlpreview.github.io/?https://github.com/joBr99/nspanel-lovelace-ui/blob/main/HMI/icon-cheatsheet.html) are useable. Only the icons listed in the [Icon Cheatsheet](https://htmlpreview.github.io/?https://github.com/joBr99/nspanel-lovelace-ui/blob/main/HMI/icon-cheatsheet.html) are useable.
```yaml ```yaml
entities: entities:
- entity: light.test_item - entity: light.test_item
name: NameOverride name: NameOverride
icon: lightbulb icon: mdi:lightbulb
``` ```
It is also possible to configure different icon overwrites per state:
```yaml
icon:
"on": mdi:lightbulb
"off": mdi:lightbulb
```
Also it is possible to configure a text or a character by using "text:" as a prefix instead of an icon. `icon: text:X`
#### Fahrenheit on cardThermo #### Fahrenheit on cardThermo
```yaml ```yaml
- type: cardThermo - type: cardThermo
@@ -590,6 +615,91 @@ You may reverse this change by entering the following in the Tasmota console of
Please note: Doing this will mean that if HomeAssistant is not working for any reason your buttons will not function correctly. Please note: Doing this will mean that if HomeAssistant is not working for any reason your buttons will not function correctly.
#### Sending Notifications to the Panel
There are two notification types, that can be triggered by sending a command over mqtt to the panel here are examples for homeassistant scripts:
<details>
<summary>Seperate Page</summary>
<br>
This is the notification used by the backend for updates, opening it requires to the following commands to the CustomSend Topic:
`pageType popupNotify`
`entityUpdateDetail~internalName~heading~headingColor~button1text~button1color~button2text~tB2Color~notificationText~textColor~sleepTimeout`
It is possible to exit from the page by sending `exitPopup`
Send Message to the Panel combined with a buzzer sound:
```yaml
nspanel_popup_notification:
alias: Popup Notification
sequence:
- service: mqtt.publish
data:
topic: cmnd/tasmota_NsPanelTerrasse/Backlog
payload: CustomSend pageType~popupNotify; CustomSend entityUpdateDetail~id~{{
title }}~65535~~~~~{{ message }}~65535~{{ timeout }}; Buzzer 2,2,2
mode: single
icon: mdi:message-badge
```
Send Message to the Panel:
```yaml
nspanel_popup_notification:
alias: Popup Notification
sequence:
- service: mqtt.publish
data:
topic: cmnd/tasmota_NsPanelTerrasse/Backlog
payload: CustomSend pageType~popupNotify; CustomSend entityUpdateDetail~id~{{
title }}~65535~~~~~{{ message }}~65535~{{ timeout }}
mode: single
icon: mdi:message-badge
```
</details>
<details>
<summary>Notification on screensaver</summary>
<br>
The screensaver can display Notifications by sending this command to the CustomSend topic: `notify~heading~text`
Send Message to the Screensaver combined with a buzzer sound:
```yaml
nspanel_screensaver_notification:
alias: Screensaver Notification
sequence:
- service: mqtt.publish
data:
topic: cmnd/tasmota_NsPanelTerrasse/Backlog
payload: CustomSend notify~{{ heading }}~{{ message }}; Buzzer 2,2,2
mode: single
icon: mdi:message-badge
```
Send Message to the Screensaver:
```yaml
nspanel_screensaver_notification:
alias: Screensaver Notification
sequence:
- service: mqtt.publish
data:
topic: cmnd/tasmota_NsPanelTerrasse/Backlog
payload: CustomSend notify~{{ heading }}~{{ message }}
mode: single
icon: mdi:message-badge
```
</details>
## How to update ## How to update
@@ -641,9 +751,11 @@ Click redownload in the menu of the app in HACS.
Select main version. Select main version.
**!!! Wait for it to load, dropdown needs to be selectable again, otherwise it will download the latest release !!!**
![hacs-main](doc-pics/hacs-main.png) ![hacs-main](doc-pics/hacs-main.png)
**Wait for it to load, dropdown needs to be selectable again** **!!! Wait for it to load, dropdown needs to be selectable again, otherwise it will download the latest release !!!**
Click download. Click download.

View File

@@ -6,7 +6,14 @@ This folder contains some example configs
Example config for appademon itself Example config for appademon itself
## apps.yaml ## apps-simple.yaml
"Simple" Example Config with all possible entity types "Simple" Example Config with all possible entity types
## screensaver-theme.yaml
Example screensaver theme configuration. All entries are commented out but you can uncomment as appropriate to enable.
## screensaver-theme-include
Exmaple for screensaver theme configuration in seperate file to reuse it on muliple nspanels

View File

@@ -5,6 +5,7 @@ appdaemon:
longitude: 4.0 longitude: 4.0
elevation: 2 elevation: 2
time_zone: Europe/Berlin time_zone: Europe/Berlin
# invalid_yaml_warnings: 1
plugins: plugins:
HASS: HASS:
type: hass type: hass

56
appdaemon/apps-theme.yaml Normal file
View File

@@ -0,0 +1,56 @@
---
nspanel-1:
module: nspanel-lovelace-ui
class: NsPanelLovelaceUIManager
config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"
screensaver:
entity: weather.k3ll3r
theme: !include /config/appdaemon/apps/screensaver-theme.yaml
#background: [220, 0, 0]
#time: [220, 0, 255]
#timeAMPM: [220, 0, 255]
#date: [220, 0, 255]
#tMainIcon: [220, 0, 255]
#tMainText: [220, 0, 255]
#tForecast1: [220, 0, 255]
#tForecast2: [220, 0, 255]
#tForecast3: [220, 0, 255]
#tForecast4: [220, 0, 255]
#tF1Icon: [220, 0, 255]
#tF2Icon: [220, 0, 255]
#tF3Icon: [220, 0, 255]
#tF4Icon: [220, 0, 255]
#tForecast1Val: [220, 0, 255]
#tForecast2Val: [220, 0, 255]
#tForecast3Val: [220, 0, 255]
#tForecast4Val: [220, 0, 255]
#bar: [220, 0, 255]
#tMRIcon: [220, 0, 255]
#tMR: [220, 0, 255]
#autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable.
#autoWeather: true
#If you have enabled autoWeather, the following options allow you to customise the colors used for autoWeather.
#clear-night: [150, 150, 100]
#cloudy: [75, 75, 75]
#exceptional: [255, 50, 50]
#fog: [150, 150, 150]
#hail: [200, 200, 200]
#lightning: [200, 200, 0]
#lightning-rainy: [200, 200, 150]
#partlycloudy: [150, 150, 150]
#pouring: [50, 50, 255]
#rainy: [100, 100, 255]
#snowy: [150, 150, 150]
#snowy-rainy: [150, 150, 255]
#sunny: [255, 255, 0]
#windy: [150, 150, 150]
#windy-variant: [255, 125, 125]
cards:
- type: cardEntities
entities:
- entity: switch.example_item

View File

@@ -0,0 +1,15 @@
---
nspanel-1:
module: nspanel-lovelace-ui
class: NsPanelLovelaceUIManager
config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"
updateMode: "auto-notify"
screensaver:
entity: weather.k3ll3r
theme: !include /config/appdaemon/apps/screensaver-theme.yaml
cards:
- type: cardEntities
entities:
- entity: switch.example_item

View File

@@ -0,0 +1,46 @@
#Uncomment by deleting the '#' and configure as you see fit.
#Colors are in the format [Red, Green, Blue] and can be numbers from 0-255
#The items shoud be self-explanatory but tMRIcon affects the humidity icon and tMR affects the humidity text.
#background: [220, 0, 0]
#time: [220, 0, 255]
#timeAMPM: [220, 0, 255]
#date: [220, 0, 255]
#tMainIcon: [220, 0, 255]
#tMainText: [220, 0, 255]
#tForecast1: [220, 0, 255]
#tForecast2: [220, 0, 255]
#tForecast3: [220, 0, 255]
#tForecast4: [220, 0, 255]
#tF1Icon: [220, 0, 255]
#tF2Icon: [220, 0, 255]
#tF3Icon: [220, 0, 255]
#tF4Icon: [220, 0, 255]
#tForecast1Val: [220, 0, 255]
#tForecast2Val: [220, 0, 255]
#tForecast3Val: [220, 0, 255]
#tForecast4Val: [220, 0, 255]
#bar: [220, 0, 255]
#tMRIcon: [220, 0, 255]
#tMR: [220, 0, 255]
#autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable.
#autoWeather: true
#If you have enabled autoWeather, the following options allow you to customise the colors used for autoWeather.
#clear-night: [150, 150, 100]
#cloudy: [75, 75, 75]
#exceptional: [255, 50, 50]
#fog: [150, 150, 150]
#hail: [200, 200, 200]
#lightning: [200, 200, 0]
#lightning-rainy: [200, 200, 150]
#partlycloudy: [150, 150, 150]
#pouring: [50, 50, 255]
#rainy: [100, 100, 255]
#snowy: [150, 150, 150]
#snowy-rainy: [150, 150, 255]
#sunny: [255, 255, 0]
#windy: [150, 150, 150]
#windy-variant: [255, 125, 125]

View File

@@ -36,7 +36,7 @@ class Card(object):
for e in self.entities: for e in self.entities:
entityIds.append(e.entityId) entityIds.append(e.entityId)
# additional keys to check # additional keys to check
add_ent_keys = ['weatherOverrideForecast1', 'weatherOverrideForecast2', 'weatherOverrideForecast3', 'weatherOverrideForecast4'] add_ent_keys = ['weatherOverrideForecast1', 'weatherOverrideForecast2', 'weatherOverrideForecast3', 'weatherOverrideForecast4', 'statusIcon1', 'statusIcon2']
for ent_key in add_ent_keys: for ent_key in add_ent_keys:
val = self.raw_config.get(ent_key) val = self.raw_config.get(ent_key)
if val is not None: if val is not None:

View File

@@ -258,7 +258,7 @@ class LuiController(object):
if button_type == "colorWheel": if button_type == "colorWheel":
self._ha_api.log(value) self._ha_api.log(value)
value = value.split('|') value = value.split('|')
color = pos_to_color(int(value[0]), int(value[1])) color = pos_to_color(int(value[0]), int(value[1]), int(value[2]))
self._ha_api.log(color) self._ha_api.log(color)
self._ha_api.get_entity(entity_id).call_service("turn_on", rgb_color=color) self._ha_api.get_entity(entity_id).call_service("turn_on", rgb_color=color)

View File

@@ -11,8 +11,9 @@ def hsv2rgb(h, s, v):
hsv = colorsys.hsv_to_rgb(h,s,v) hsv = colorsys.hsv_to_rgb(h,s,v)
return tuple(round(i * 255) for i in hsv) return tuple(round(i * 255) for i in hsv)
def pos_to_color(x, y): def pos_to_color(x, y, wh):
r = 160/2 #r = 160/2
r = wh/2
x = round((x - r) / r * 100) / 100 x = round((x - r) / r * 100) / 100
y = round((r - y) / r * 100) / 100 y = round((r - y) / r * 100) / 100

View File

@@ -6898,6 +6898,8 @@ icons = {
} }
def get_icon_id(ma_name): def get_icon_id(ma_name):
if "text:" in ma_name:
return ma_name.replace("text:","")
ma_name = ma_name.replace("mdi:","") ma_name = ma_name.replace("mdi:","")
if ma_name in icons: if ma_name in icons:
return icons[ma_name] return icons[ma_name]

View File

@@ -114,7 +114,13 @@ def map_to_mdi_name(ha_type, state=None, device_class=None, cardType=None):
def get_icon_id_ha(ha_type, state=None, device_class=None, overwrite=None): def get_icon_id_ha(ha_type, state=None, device_class=None, overwrite=None):
if overwrite is not None: if overwrite is not None:
return get_icon_id(overwrite) if type(overwrite) is str:
return get_icon_id(overwrite)
if type(overwrite) is dict:
for overwrite_state, overwrite_icon in overwrite.items():
if overwrite_state == state:
return get_icon_id(overwrite_icon)
return get_icon_id(map_to_mdi_name(ha_type, state, device_class)) return get_icon_id(map_to_mdi_name(ha_type, state, device_class))
def get_action_id_ha(ha_type, action, device_class=None, overwrite=None): def get_action_id_ha(ha_type, action, device_class=None, overwrite=None):

View File

@@ -2,6 +2,7 @@ translations = {
'af': { 'af': {
'ACTIVATE': "Aktiveer", 'ACTIVATE': "Aktiveer",
'aux_heat': "Aanvullende hitte", 'aux_heat': "Aanvullende hitte",
'away_mode': "Wegmodus",
'cooling': "Koel Af", 'cooling': "Koel Af",
'drying': "Droog Uit", 'drying': "Droog Uit",
'fan': "Waaier", 'fan': "Waaier",
@@ -20,10 +21,16 @@ translations = {
'brightness': "Helderheid", 'brightness': "Helderheid",
'color_temperature': "Kleur temperatuur", 'color_temperature': "Kleur temperatuur",
'position': "Posisie", 'position': "Posisie",
'state': "Toestand",
'currently': "Tans",
'operation': "Operasie",
'fan_mode': "Waaier modus",
'heating': "Verhit",
}, },
'ar': { 'ar': {
'ACTIVATE': "تفعيل", 'ACTIVATE': "تفعيل",
'aux_heat': "حرارة Aux", 'aux_heat': "حرارة Aux",
'away_mode': "خارج المنزل",
'cooling': "تبريد", 'cooling': "تبريد",
'drying': "تجفيف", 'drying': "تجفيف",
'fan': "مروحة", 'fan': "مروحة",
@@ -42,10 +49,16 @@ translations = {
'brightness': "السطوع", 'brightness': "السطوع",
'color_temperature': "درجة حرارة اللون", 'color_temperature': "درجة حرارة اللون",
'position': "موضع", 'position': "موضع",
'state': "الحالة",
'currently': "حاليا",
'operation': "الوضع",
'fan_mode': "وضع المروحة",
'heating': "تدفئة",
}, },
'bg': { 'bg': {
'ACTIVATE': "Активирай", 'ACTIVATE': "Активирай",
'aux_heat': "Помощен нагревател", 'aux_heat': "Помощен нагревател",
'away_mode': "Режим на отсъствие",
'cooling': "Охлаждане", 'cooling': "Охлаждане",
'drying': "Изсушаване", 'drying': "Изсушаване",
'fan': "Вентилатор", 'fan': "Вентилатор",
@@ -65,11 +78,17 @@ translations = {
'brightness': "Яркост", 'brightness': "Яркост",
'color_temperature': "Цветова температура", 'color_temperature': "Цветова температура",
'position': "Позиция", 'position': "Позиция",
'state': "Състояние",
'currently': "В момента",
'operation': "Режим",
'fan_mode': "Режим на вентилатора",
'heating': "Отопление",
}, },
'ca': { 'ca': {
'PRESS': "Prem", 'PRESS': "Prem",
'ACTIVATE': "Activar", 'ACTIVATE': "Activar",
'aux_heat': "Calefactor auxiliar", 'aux_heat': "Calefactor auxiliar",
'away_mode': "Mode absent",
'cooling': "Refredant", 'cooling': "Refredant",
'drying': "Assecant", 'drying': "Assecant",
'fan': "Ventilació", 'fan': "Ventilació",
@@ -89,11 +108,17 @@ translations = {
'brightness': "Brillantor", 'brightness': "Brillantor",
'color_temperature': "Temperatura de color", 'color_temperature': "Temperatura de color",
'position': "Posició", 'position': "Posició",
'state': "Estat",
'currently': "Actual",
'operation': "Funcionament",
'fan_mode': "Velocitat ventilador",
'heating': "Escalfant",
}, },
'cs': { 'cs': {
'PRESS': "Stisknutí", 'PRESS': "Stisknutí",
'ACTIVATE': "Aktivovat", 'ACTIVATE': "Aktivovat",
'aux_heat': "Pomocné teplo", 'aux_heat': "Pomocné teplo",
'away_mode': "Úsporný režim",
'cooling': "Chlazení", 'cooling': "Chlazení",
'drying': "Sušení", 'drying': "Sušení",
'fan': "Ventilátor", 'fan': "Ventilátor",
@@ -113,11 +138,17 @@ translations = {
'brightness': "Jas", 'brightness': "Jas",
'color_temperature': "Teplota barvy", 'color_temperature': "Teplota barvy",
'position': "Pozice", 'position': "Pozice",
'state': "Stav",
'currently': "Aktuálně",
'operation': "Provoz",
'fan_mode': "Režim ventilátoru",
'heating': "Topení",
}, },
'da': { 'da': {
'PRESS': "Tryk", 'PRESS': "Tryk",
'ACTIVATE': "Aktiver", 'ACTIVATE': "Aktiver",
'aux_heat': "Støtte-varme", 'aux_heat': "Støtte-varme",
'away_mode': "Ude af huset-modus",
'cooling': "Køling", 'cooling': "Køling",
'drying': "Tørring", 'drying': "Tørring",
'fan': "Blæser", 'fan': "Blæser",
@@ -137,11 +168,17 @@ translations = {
'brightness': "Lysstyrke", 'brightness': "Lysstyrke",
'color_temperature': "Farvetemperatur", 'color_temperature': "Farvetemperatur",
'position': "Position", 'position': "Position",
'state': "Tilstand",
'currently': "Aktuelt",
'operation': "Drifttype",
'fan_mode': "Blæsertilstand",
'heating': "Opvarmning",
}, },
'de': { 'de': {
'PRESS': "Drücken", 'PRESS': "Drücken",
'ACTIVATE': "Aktivieren", 'ACTIVATE': "Aktivieren",
'aux_heat': "Hilfswärme", 'aux_heat': "Hilfswärme",
'away_mode': "Abwesenheitsmodus",
'cooling': "Kühlung", 'cooling': "Kühlung",
'drying': "Trocknen", 'drying': "Trocknen",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -161,11 +198,17 @@ translations = {
'brightness': "Helligkeit", 'brightness': "Helligkeit",
'color_temperature': "Farbtemperatur", 'color_temperature': "Farbtemperatur",
'position': "Position", 'position': "Position",
'state': "Zustand",
'currently': "Aktuell",
'operation': "Aktion",
'fan_mode': "Ventilator-Modus",
'heating': "Heizung",
}, },
'el': { 'el': {
'PRESS': "Πατήστε", 'PRESS': "Πατήστε",
'ACTIVATE': "Ενεργοποίηση", 'ACTIVATE': "Ενεργοποίηση",
'aux_heat': "Βοηθητική θέρμανση", 'aux_heat': "Βοηθητική θέρμανση",
'away_mode': "Λειτουργία εκτός σπιτιού",
'cooling': "Ψύξη", 'cooling': "Ψύξη",
'drying': "Αφύγρανση", 'drying': "Αφύγρανση",
'fan': "Ανεμιστήρας", 'fan': "Ανεμιστήρας",
@@ -185,11 +228,17 @@ translations = {
'brightness': "Φωτεινότητα", 'brightness': "Φωτεινότητα",
'color_temperature': "Θερμοκρασία χρώματος", 'color_temperature': "Θερμοκρασία χρώματος",
'position': "Θέση", 'position': "Θέση",
'state': "Κατάσταση",
'currently': "Αυτή τη στιγμή",
'operation': "Λειτουργία",
'fan_mode': "Λειτουργία ανεμιστήρα",
'heating': "Θέρμανση",
}, },
'en': { 'en': {
'PRESS': "Press", 'PRESS': "Press",
'ACTIVATE': "Activate", 'ACTIVATE': "Activate",
'aux_heat': "Aux heat", 'aux_heat': "Aux heat",
'away_mode': "Away mode",
'cooling': "Cooling", 'cooling': "Cooling",
'drying': "Drying", 'drying': "Drying",
'fan': "Fan", 'fan': "Fan",
@@ -209,11 +258,17 @@ translations = {
'brightness': "Brightness", 'brightness': "Brightness",
'color_temperature': "Color temperature", 'color_temperature': "Color temperature",
'position': "Position", 'position': "Position",
'state': "State",
'currently': "Currently",
'operation': "Operation",
'fan_mode': "Fan mode",
'heating': "Heating",
}, },
'es': { 'es': {
'PRESS': "Pulsa", 'PRESS': "Pulsa",
'ACTIVATE': "Activar", 'ACTIVATE': "Activar",
'aux_heat': "Calor auxiliar", 'aux_heat': "Calor auxiliar",
'away_mode': "Fuera de casa",
'cooling': "Enfriando", 'cooling': "Enfriando",
'drying': "Secando", 'drying': "Secando",
'fan': "Ventilador", 'fan': "Ventilador",
@@ -233,11 +288,17 @@ translations = {
'brightness': "Brillo", 'brightness': "Brillo",
'color_temperature': "Temperatura del color", 'color_temperature': "Temperatura del color",
'position': "Posición", 'position': "Posición",
'state': "Estado",
'currently': "Actualmente",
'operation': "Modo",
'fan_mode': "Modo del ventilador",
'heating': "Calentando",
}, },
'et': { 'et': {
'PRESS': "Vajuta nuppu", 'PRESS': "Vajuta nuppu",
'ACTIVATE': "Aktiveeri", 'ACTIVATE': "Aktiveeri",
'aux_heat': "Abiküte", 'aux_heat': "Abiküte",
'away_mode': "Eemal",
'cooling': "Jahutamine", 'cooling': "Jahutamine",
'drying': "Kuivatamine", 'drying': "Kuivatamine",
'fan': "Ventilaator", 'fan': "Ventilaator",
@@ -257,10 +318,16 @@ translations = {
'brightness': "Heledus", 'brightness': "Heledus",
'color_temperature': "Värvustemperatuur", 'color_temperature': "Värvustemperatuur",
'position': "Asend", 'position': "Asend",
'state': "Olek",
'currently': "Hetkel",
'operation': "Töörežiim",
'fan_mode': "Ventilaatori režiim",
'heating': "Küte",
}, },
'fa': { 'fa': {
'ACTIVATE': "فعال سازی", 'ACTIVATE': "فعال سازی",
'aux_heat': "Aux گرما", 'aux_heat': "Aux گرما",
'away_mode': "حالت بیرون",
'cooling': "خنک کننده", 'cooling': "خنک کننده",
'drying': "خشك كردن", 'drying': "خشك كردن",
'fan': "فن", 'fan': "فن",
@@ -279,11 +346,17 @@ translations = {
'brightness': "روشنایی", 'brightness': "روشنایی",
'color_temperature': "دمای رنگ", 'color_temperature': "دمای رنگ",
'position': "موقعیت", 'position': "موقعیت",
'state': "حالت",
'currently': "در حال حاضر",
'operation': "عملیات",
'fan_mode': "حالت فن",
'heating': "گرمایش",
}, },
'fi': { 'fi': {
'PRESS': "Paina", 'PRESS': "Paina",
'ACTIVATE': "Aktivoi", 'ACTIVATE': "Aktivoi",
'aux_heat': "Lisälämpö", 'aux_heat': "Lisälämpö",
'away_mode': "Poissa kotoa -tila",
'cooling': "Jäähdytys", 'cooling': "Jäähdytys",
'drying': "Kuivaus", 'drying': "Kuivaus",
'fan': "Tuuletin", 'fan': "Tuuletin",
@@ -303,11 +376,17 @@ translations = {
'brightness': "Kirkkaus", 'brightness': "Kirkkaus",
'color_temperature': "Värilämpötila", 'color_temperature': "Värilämpötila",
'position': "Sijainti", 'position': "Sijainti",
'state': "Tila",
'currently': "Tällä hetkellä",
'operation': "Toiminto",
'fan_mode': "Tuuletustila",
'heating': "Lämmitys",
}, },
'fr': { 'fr': {
'PRESS': "Appui", 'PRESS': "Appui",
'ACTIVATE': "Activer", 'ACTIVATE': "Activer",
'aux_heat': "Chauffage d'appoint", 'aux_heat': "Chauffage d'appoint",
'away_mode': "Mode \"Absent\"",
'cooling': "Refroidissement", 'cooling': "Refroidissement",
'drying': "Séchage", 'drying': "Séchage",
'fan': "Ventilateur", 'fan': "Ventilateur",
@@ -327,11 +406,17 @@ translations = {
'brightness': "Luminosité", 'brightness': "Luminosité",
'color_temperature': "Température de couleur", 'color_temperature': "Température de couleur",
'position': "Position", 'position': "Position",
'state': "État",
'currently': "Actuellement",
'operation': "Opération",
'fan_mode': "Mode de ventilation",
'heating': "En chauffe",
}, },
'he': { 'he': {
'PRESS': "לחיצה", 'PRESS': "לחיצה",
'ACTIVATE': "הפעל", 'ACTIVATE': "הפעל",
'aux_heat': "מסייע חום", 'aux_heat': "מסייע חום",
'away_mode': "מצב לא בבית",
'cooling': "קירור", 'cooling': "קירור",
'drying': "מייבש", 'drying': "מייבש",
'fan': "מאוורר", 'fan': "מאוורר",
@@ -351,10 +436,16 @@ translations = {
'brightness': "בהירות", 'brightness': "בהירות",
'color_temperature': "טמפרטורת הצבע", 'color_temperature': "טמפרטורת הצבע",
'position': "מיקום", 'position': "מיקום",
'state': "מצב",
'currently': "כעת",
'operation': "פעולה",
'fan_mode': "מצב מאורר",
'heating': "חימום",
}, },
'hr': { 'hr': {
'ACTIVATE': "Aktivirati", 'ACTIVATE': "Aktivirati",
'aux_heat': "Pomoćno grijanje", 'aux_heat': "Pomoćno grijanje",
'away_mode': "Način rada: Odsutan",
'cooling': "Hlađenje", 'cooling': "Hlađenje",
'drying': "Sušenje", 'drying': "Sušenje",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -373,11 +464,17 @@ translations = {
'brightness': "Svjetlina", 'brightness': "Svjetlina",
'color_temperature': "Temperatura boje", 'color_temperature': "Temperatura boje",
'position': "Pozicija", 'position': "Pozicija",
'state': "Stanje",
'currently': "Trenutno",
'operation': "operacija",
'fan_mode': "Način rada s ventilatorom",
'heating': "Grijanje",
}, },
'hu': { 'hu': {
'PRESS': "Gombnyomás", 'PRESS': "Gombnyomás",
'ACTIVATE': "Aktiválás", 'ACTIVATE': "Aktiválás",
'aux_heat': "Külső hőforrás", 'aux_heat': "Külső hőforrás",
'away_mode': "Távol mód",
'cooling': "Hűtés", 'cooling': "Hűtés",
'drying': "Párátlanítás", 'drying': "Párátlanítás",
'fan': "Ventilátor", 'fan': "Ventilátor",
@@ -397,10 +494,16 @@ translations = {
'brightness': "Fényerő", 'brightness': "Fényerő",
'color_temperature': "Színhőmérséklet", 'color_temperature': "Színhőmérséklet",
'position': "Pozíció", 'position': "Pozíció",
'state': "Állapot",
'currently': "Jelenleg",
'operation': "Működés",
'fan_mode': "Ventilátor",
'heating': "Fűtés",
}, },
'hy': { 'hy': {
'ACTIVATE': "Ակտիվացնել", 'ACTIVATE': "Ակտիվացնել",
'aux_heat': "Aux ջերմությունը", 'aux_heat': "Aux ջերմությունը",
'away_mode': "հեռու ռեժիմ",
'cooling': "հովացում", 'cooling': "հովացում",
'drying': "Չորացում", 'drying': "Չորացում",
'fan': "Երկրպագու", 'fan': "Երկրպագու",
@@ -418,11 +521,17 @@ translations = {
'brightness': "Պայծառություն", 'brightness': "Պայծառություն",
'color_temperature': "Գունային ջերմաստիճան", 'color_temperature': "Գունային ջերմաստիճան",
'position': "Դիրք", 'position': "Դիրք",
'state': "Պետություն",
'currently': "Ներկայումս",
'operation': "Գործողություն",
'fan_mode': "Երկրպագուների ռեժիմ",
'heating': "Տաքացում",
}, },
'id': { 'id': {
'PRESS': "Tekan", 'PRESS': "Tekan",
'ACTIVATE': "Aktifkan", 'ACTIVATE': "Aktifkan",
'aux_heat': "Pemanasan tambahan", 'aux_heat': "Pemanasan tambahan",
'away_mode': "Mode keluar rumah",
'cooling': "Mendinginkan", 'cooling': "Mendinginkan",
'drying': "Mengeringkan", 'drying': "Mengeringkan",
'fan': "Kipas", 'fan': "Kipas",
@@ -442,10 +551,16 @@ translations = {
'brightness': "Kecerahan", 'brightness': "Kecerahan",
'color_temperature': "Temperatur warna", 'color_temperature': "Temperatur warna",
'position': "Posisi", 'position': "Posisi",
'state': "Status",
'currently': "Saat ini",
'operation': "Operasi",
'fan_mode': "Mode kipas",
'heating': "Memanaskan",
}, },
'is': { 'is': {
'PRESS': "Ýttu á", 'PRESS': "Ýttu á",
'ACTIVATE': "Virkja", 'ACTIVATE': "Virkja",
'away_mode': "Fjarverandi hamur",
'cooling': "Kæling", 'cooling': "Kæling",
'drying': "Þurrkun", 'drying': "Þurrkun",
'fan': "Vifta", 'fan': "Vifta",
@@ -465,11 +580,17 @@ translations = {
'brightness': "Birtustig", 'brightness': "Birtustig",
'color_temperature': "Litastig", 'color_temperature': "Litastig",
'position': "Staðsetning", 'position': "Staðsetning",
'state': "Staða",
'currently': "Er núna",
'operation': "Aðgerð",
'fan_mode': "Viftuhamur",
'heating': "Kynding",
}, },
'it': { 'it': {
'PRESS': "Premi", 'PRESS': "Premi",
'ACTIVATE': "Attiva", 'ACTIVATE': "Attiva",
'aux_heat': "Riscaldamento ausiliario", 'aux_heat': "Riscaldamento ausiliario",
'away_mode': "Modalità assente",
'cooling': "Raffreddamento", 'cooling': "Raffreddamento",
'drying': "Deumidificazione", 'drying': "Deumidificazione",
'fan': "Ventilatore", 'fan': "Ventilatore",
@@ -489,10 +610,16 @@ translations = {
'brightness': "Luminosità", 'brightness': "Luminosità",
'color_temperature': "Temperatura colore", 'color_temperature': "Temperatura colore",
'position': "Apertura", 'position': "Apertura",
'state': "Stato",
'currently': "Attualmente",
'operation': "Operazione",
'fan_mode': "Ventilazione",
'heating': "Riscaldamento",
}, },
'lb': { 'lb': {
'ACTIVATE': "Aktivéieren", 'ACTIVATE': "Aktivéieren",
'aux_heat': "Zousätzlech Heizung", 'aux_heat': "Zousätzlech Heizung",
'away_mode': "Modus Keen Doheem",
'cooling': "Ofkillen", 'cooling': "Ofkillen",
'drying': "Dréchnen", 'drying': "Dréchnen",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -511,9 +638,15 @@ translations = {
'brightness': "Hellegkeet", 'brightness': "Hellegkeet",
'color_temperature': "Faarf Temperatur", 'color_temperature': "Faarf Temperatur",
'position': "Positioun", 'position': "Positioun",
'state': "Zoustand",
'currently': "Momentan",
'operation': "Aktioun",
'fan_mode': "Ventilatioun Modus",
'heating': "Hëtzen",
}, },
'lt': { 'lt': {
'ACTIVATE': "Suaktyvinti", 'ACTIVATE': "Suaktyvinti",
'away_mode': "Išvykimo režimas",
'cooling': "Aušinimas", 'cooling': "Aušinimas",
'drying': "Džiovinimas", 'drying': "Džiovinimas",
'fan': "Ventiliatorius", 'fan': "Ventiliatorius",
@@ -532,10 +665,16 @@ translations = {
'brightness': "Ryškumas", 'brightness': "Ryškumas",
'color_temperature': "Spalvos temperatūra", 'color_temperature': "Spalvos temperatūra",
'position': "Padėtis", 'position': "Padėtis",
'state': "Būsena",
'currently': "Šiuo metu",
'operation': "Operacija",
'fan_mode': "Ventiliatoriaus režimas",
'heating': "Šildymas",
}, },
'lv': { 'lv': {
'ACTIVATE': "Aktivizēt", 'ACTIVATE': "Aktivizēt",
'aux_heat': "Ārējais sildītājs", 'aux_heat': "Ārējais sildītājs",
'away_mode': "Prombūtnes režīms",
'cooling': "Dzesēšana", 'cooling': "Dzesēšana",
'drying': "Žāvēšana", 'drying': "Žāvēšana",
'fan': "Ventilators", 'fan': "Ventilators",
@@ -553,11 +692,17 @@ translations = {
'brightness': "Spilgtums", 'brightness': "Spilgtums",
'color_temperature': "Krāsu temperatūra", 'color_temperature': "Krāsu temperatūra",
'position': "Pozīcija", 'position': "Pozīcija",
'state': "Stāvoklis",
'currently': "Pašlaik",
'operation': "Darbība",
'fan_mode': "Ventilatora režīms",
'heating': "Sildīšana",
}, },
'nb': { 'nb': {
'PRESS': "trykk", 'PRESS': "trykk",
'ACTIVATE': "Aktiver", 'ACTIVATE': "Aktiver",
'aux_heat': "Aux varme", 'aux_heat': "Aux varme",
'away_mode': "Bortemodus",
'cooling': "Kjøling", 'cooling': "Kjøling",
'drying': "Tørking", 'drying': "Tørking",
'fan': "Vifte", 'fan': "Vifte",
@@ -577,11 +722,17 @@ translations = {
'brightness': "Lysstyrke", 'brightness': "Lysstyrke",
'color_temperature': "Fargetemperatur", 'color_temperature': "Fargetemperatur",
'position': "Posisjon", 'position': "Posisjon",
'state': "Tilstand",
'currently': "Er nå",
'operation': "Operasjon",
'fan_mode': "Viftemodus",
'heating': "Oppvarming",
}, },
'nl': { 'nl': {
'PRESS': "Klik", 'PRESS': "Klik",
'ACTIVATE': "Activeren", 'ACTIVATE': "Activeren",
'aux_heat': "Extra warmte", 'aux_heat': "Extra warmte",
'away_mode': "Afwezigheidsmodus",
'cooling': "Koelen", 'cooling': "Koelen",
'drying': "Ontvochtigen", 'drying': "Ontvochtigen",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -601,10 +752,16 @@ translations = {
'brightness': "Helderheid", 'brightness': "Helderheid",
'color_temperature': "Kleurtemperatuur", 'color_temperature': "Kleurtemperatuur",
'position': "Positie", 'position': "Positie",
'state': "Staat",
'currently': "Momenteel",
'operation': "Werking",
'fan_mode': "Ventilatormodus",
'heating': "Verwarmen",
}, },
'nn': { 'nn': {
'ACTIVATE': "Aktiver", 'ACTIVATE': "Aktiver",
'aux_heat': "Aux-varme", 'aux_heat': "Aux-varme",
'away_mode': "Bortemodus",
'cooling': "Nedkjøling", 'cooling': "Nedkjøling",
'drying': "Tørkar", 'drying': "Tørkar",
'fan': "Vifte", 'fan': "Vifte",
@@ -624,11 +781,17 @@ translations = {
'brightness': "Lysstyrke", 'brightness': "Lysstyrke",
'color_temperature': "Fargetemperatur", 'color_temperature': "Fargetemperatur",
'position': "Posisjon", 'position': "Posisjon",
'state': "Tilstand",
'currently': "Akkurat no",
'operation': "Operasjon",
'fan_mode': "Viftemodus",
'heating': "Oppvarming",
}, },
'pl': { 'pl': {
'PRESS': "Naciśnij", 'PRESS': "Naciśnij",
'ACTIVATE': "Aktywuj", 'ACTIVATE': "Aktywuj",
'aux_heat': "Zewnętrznie podłączone źródło", 'aux_heat': "Zewnętrznie podłączone źródło",
'away_mode': "Tryb poza domem",
'cooling': "chłodzenie", 'cooling': "chłodzenie",
'drying': "osuszanie", 'drying': "osuszanie",
'fan': "wentylator", 'fan': "wentylator",
@@ -648,11 +811,17 @@ translations = {
'brightness': "Jasność", 'brightness': "Jasność",
'color_temperature': "Temperatura barwy", 'color_temperature': "Temperatura barwy",
'position': "Pozycja", 'position': "Pozycja",
'state': "Stan",
'currently': "Obecnie",
'operation': "Tryb pracy",
'fan_mode': "Tryb nawiewu",
'heating': "grzanie",
}, },
'pt': { 'pt': {
'PRESS': "Pressione", 'PRESS': "Pressione",
'ACTIVATE': "Ativar", 'ACTIVATE': "Ativar",
'aux_heat': "Calor auxiliar", 'aux_heat': "Calor auxiliar",
'away_mode': "Modo ausente",
'cooling': "Resfriar", 'cooling': "Resfriar",
'drying': "Secagem", 'drying': "Secagem",
'fan': "Ventoinha", 'fan': "Ventoinha",
@@ -671,10 +840,16 @@ translations = {
'brightness': "Brilho", 'brightness': "Brilho",
'color_temperature': "Temperatura de cor", 'color_temperature': "Temperatura de cor",
'position': "Posição", 'position': "Posição",
'state': "Estado",
'currently': "Atualmente",
'operation': "Operação",
'fan_mode': "Modo ventilar",
'heating': "Aquecimento",
}, },
'ro': { 'ro': {
'ACTIVATE': "Activați", 'ACTIVATE': "Activați",
'aux_heat': "Încălzire auxiliară", 'aux_heat': "Încălzire auxiliară",
'away_mode': "Mod plecat",
'cooling': "Racește", 'cooling': "Racește",
'drying': "Usucă", 'drying': "Usucă",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -694,11 +869,17 @@ translations = {
'brightness': "Luminozitate", 'brightness': "Luminozitate",
'color_temperature': "Temperatură de culoare", 'color_temperature': "Temperatură de culoare",
'position': "Poziţie", 'position': "Poziţie",
'state': "Status",
'currently': "În prezent",
'operation': "Operație",
'fan_mode': "Mod ventilator",
'heating': "Încălzește",
}, },
'ru': { 'ru': {
'PRESS': "Нажать", 'PRESS': "Нажать",
'ACTIVATE': "Активировать", 'ACTIVATE': "Активировать",
'aux_heat': "Дополнительный нагрев", 'aux_heat': "Дополнительный нагрев",
'away_mode': "Режим \"не дома\"",
'cooling': "Охлаждение", 'cooling': "Охлаждение",
'drying': "Осушение", 'drying': "Осушение",
'fan': "Вентиляция", 'fan': "Вентиляция",
@@ -718,10 +899,16 @@ translations = {
'brightness': "Яркость", 'brightness': "Яркость",
'color_temperature': "Цветовая температура", 'color_temperature': "Цветовая температура",
'position': "Положение", 'position': "Положение",
'state': "Состояние",
'currently': "Сейчас",
'operation': "Режим работы",
'fan_mode': "Режим вентиляции",
'heating': "Обогрев",
}, },
'sk': { 'sk': {
'ACTIVATE': "Aktivovať", 'ACTIVATE': "Aktivovať",
'aux_heat': "Prídavné kúrenie", 'aux_heat': "Prídavné kúrenie",
'away_mode': "Režim neprítomnosti",
'cooling': "Chladenie", 'cooling': "Chladenie",
'drying': "Sušenie", 'drying': "Sušenie",
'fan': "Ventilátor", 'fan': "Ventilátor",
@@ -741,11 +928,17 @@ translations = {
'brightness': "Jas", 'brightness': "Jas",
'color_temperature': "Teplota farby", 'color_temperature': "Teplota farby",
'position': "Poloha", 'position': "Poloha",
'state': "Stav",
'currently': "Aktuálne",
'operation': "Prevádzka",
'fan_mode': "Režim ventilátora",
'heating': "Kúrenie",
}, },
'sl': { 'sl': {
'PRESS': "Pritisnite", 'PRESS': "Pritisnite",
'ACTIVATE': "Aktiviraj", 'ACTIVATE': "Aktiviraj",
'aux_heat': "Dodatna toplota", 'aux_heat': "Dodatna toplota",
'away_mode': "Način odsotnosti",
'cooling': "Hlajenje", 'cooling': "Hlajenje",
'drying': "Sušenje", 'drying': "Sušenje",
'fan': "Ventilator", 'fan': "Ventilator",
@@ -764,11 +957,17 @@ translations = {
'brightness': "Svetlost", 'brightness': "Svetlost",
'color_temperature': "Temperatura barve", 'color_temperature': "Temperatura barve",
'position': "Položaj", 'position': "Položaj",
'state': "Stanje",
'currently': "Trenutno",
'operation': "Delovanje",
'fan_mode': "Način ventilatorja",
'heating': "Ogrevanje",
}, },
'sv': { 'sv': {
'PRESS': "Tryck", 'PRESS': "Tryck",
'ACTIVATE': "Aktivera", 'ACTIVATE': "Aktivera",
'aux_heat': "Underhållsvärme", 'aux_heat': "Underhållsvärme",
'away_mode': "Bortaläge",
'cooling': "Kyler", 'cooling': "Kyler",
'drying': "Avfuktar", 'drying': "Avfuktar",
'fan': "Fläkt", 'fan': "Fläkt",
@@ -788,11 +987,17 @@ translations = {
'brightness': "Ljusstyrka", 'brightness': "Ljusstyrka",
'color_temperature': "Färgtemperatur", 'color_temperature': "Färgtemperatur",
'position': "Position", 'position': "Position",
'state': "Tillstånd",
'currently': "Nuvarande",
'operation': "Driftläge",
'fan_mode': "Fläktläge",
'heating': "Värmer",
}, },
'th': { 'th': {
'PRESS': "กด", 'PRESS': "กด",
'ACTIVATE': "กระตุ้น", 'ACTIVATE': "กระตุ้น",
'aux_heat': "ความร้อน Aux", 'aux_heat': "ความร้อน Aux",
'away_mode': "โหมดไม่อยู่บ้าน",
'cooling': "โหมดเย็น", 'cooling': "โหมดเย็น",
'drying': "โหมดแห้ง", 'drying': "โหมดแห้ง",
'fan': "พัดลม", 'fan': "พัดลม",
@@ -810,11 +1015,17 @@ translations = {
'brightness': "ความสว่าง", 'brightness': "ความสว่าง",
'color_temperature': "อุณหภูมิสี", 'color_temperature': "อุณหภูมิสี",
'position': "ตำแหน่ง", 'position': "ตำแหน่ง",
'state': "สถานะ",
'currently': "ในขณะนี้",
'operation': "การทำงาน",
'fan_mode': "โหมดของพัดลม",
'heating': "โหมดอบอุ่น",
}, },
'tr': { 'tr': {
'PRESS': "Basınız", 'PRESS': "Basınız",
'ACTIVATE': "Etkinleştir", 'ACTIVATE': "Etkinleştir",
'aux_heat': "Yardımcı ısı", 'aux_heat': "Yardımcı ısı",
'away_mode': "Dışarıda modu",
'cooling': "Soğutma", 'cooling': "Soğutma",
'drying': "Kurutma", 'drying': "Kurutma",
'fan': "Fan", 'fan': "Fan",
@@ -834,11 +1045,17 @@ translations = {
'brightness': "Parlaklık", 'brightness': "Parlaklık",
'color_temperature': "Renk sıcaklığı", 'color_temperature': "Renk sıcaklığı",
'position': "Pozisyon", 'position': "Pozisyon",
'state': "Durum",
'currently': "Şu an",
'operation': "İşlem",
'fan_mode': "Fan modu",
'heating': "Isıtma",
}, },
'uk': { 'uk': {
'PRESS': "Натисніть", 'PRESS': "Натисніть",
'ACTIVATE': "Активувати", 'ACTIVATE': "Активувати",
'aux_heat': "Додатковий нагрів", 'aux_heat': "Додатковий нагрів",
'away_mode': "Режим \"Не вдома\"",
'cooling': "Охолодження", 'cooling': "Охолодження",
'drying': "Осушення", 'drying': "Осушення",
'fan': "Вентилятор", 'fan': "Вентилятор",
@@ -857,10 +1074,16 @@ translations = {
'brightness': "Яскравість", 'brightness': "Яскравість",
'color_temperature': "Кольорова температура", 'color_temperature': "Кольорова температура",
'position': "Положення", 'position': "Положення",
'state': "Статус",
'currently': "В даний час",
'operation': "Режим",
'fan_mode': "Режим вентиляції",
'heating': "Нагрівання",
}, },
'vi': { 'vi': {
'ACTIVATE': "Kích hoạt", 'ACTIVATE': "Kích hoạt",
'aux_heat': "Nhiệt phụ trợ", 'aux_heat': "Nhiệt phụ trợ",
'away_mode': "Chế độ đi vắng",
'cooling': "Làm mát", 'cooling': "Làm mát",
'drying': "Làm khô", 'drying': "Làm khô",
'fan': "Quạt", 'fan': "Quạt",
@@ -879,13 +1102,26 @@ translations = {
'brightness': "Độ sáng", 'brightness': "Độ sáng",
'color_temperature': "Nhiệt độ màu", 'color_temperature': "Nhiệt độ màu",
'position': "Vị trí", 'position': "Vị trí",
'state': "Trạng thái",
'currently': "Hiện tại",
'operation': "Chế độ hoạt động",
'fan_mode': "Chế độ quạt",
'heating': "Làm ấm",
}, },
} }
def get_translation(locale, input): def lookup(locale, inputstr):
locale = locale.split("_")[0] locale = locale.split("_")[0]
en_fallback_res = translations.get("en").get(input, input) en_fallback_res = translations.get("en").get(inputstr, inputstr)
if locale in translations: if locale in translations:
return translations.get(locale).get(input, en_fallback_res) return translations.get(locale).get(inputstr, en_fallback_res)
else: else:
return en_fallback_res return en_fallback_res
def get_translation(locale, inputstr):
inputstr = inputstr.replace("heat", "heating").replace("dry", "drying").replace("cool", "cooling").replace("fan_only", "fan")
if inputstr == "heating_cooling":
return f'{lookup(locale, "heating")}/{lookup(locale, "cooling")}'
return lookup(locale, inputstr)

View File

@@ -122,15 +122,27 @@ class LuiPagesGen(object):
down = f"{entity.state} {unit_of_measurement}" down = f"{entity.state} {unit_of_measurement}"
weather_res+=f"~{up}~{icon}~{down}" weather_res+=f"~{up}~{icon}~{down}"
altLayout = "" altLayout = "~~"
if self._config._config_screensaver.raw_config.get("alternativeLayout", False): if self._config._config_screensaver.raw_config.get("alternativeLayout", False):
altLayout = f"~{get_icon_id('water-percent')}~{we.attributes.humidity} %" altLayout = f"~{get_icon_id('water-percent')}~{we.attributes.humidity} %"
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}{altLayout}") # status icons
status_res = ""
for i in range(1,3):
statusIcon = self._config._config_screensaver.raw_config.get(f"statusIcon{i}")
if statusIcon is not None:
icon = statusIcon.get("icon")
entity = self._ha_api.get_entity(statusIcon.get("entity"))
entityType = statusIcon.get("entity").split(".")[0]
icon = get_icon_id_ha(entityType, state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon)
color = self.get_entity_color(entity)
status_res += f"~{icon}~{color}"
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}{altLayout}{status_res}")
# send color if configured in screensaver # send color if configured in screensaver
if theme is not None: if theme is not None:
if not ("AutoWeather" in theme and theme["AutoWeather"] == "auto"): if not ("autoWeather" in theme and theme["autoWeather"]):
state = None state = None
self._send_mqtt_msg(get_screensaver_color_output(theme=theme, state=state)) self._send_mqtt_msg(get_screensaver_color_output(theme=theme, state=state))
@@ -250,7 +262,7 @@ class LuiPagesGen(object):
command += self.generate_entities_item(item, cardType) command += self.generate_entities_item(item, cardType)
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_thermo_page(self, navigation, entity, temp_unit): def generate_thermo_page(self, navigation, title, entity, temp_unit):
item = entity.entityId item = entity.entityId
if(temp_unit == "celsius"): if(temp_unit == "celsius"):
@@ -265,11 +277,16 @@ class LuiPagesGen(object):
command = f"entityUpd~Not found~{navigation}~{item}~check~220~apps.yaml~150~300~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Please~your~~" command = f"entityUpd~Not found~{navigation}~{item}~check~220~apps.yaml~150~300~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Please~your~~"
else: else:
entity = self._ha_api.get_entity(item) entity = self._ha_api.get_entity(item)
heading = entity.attributes.friendly_name heading = title if title != "unknown" else entity.attributes.friendly_name
current_temp = get_attr_safe(entity, "current_temperature", "") current_temp = get_attr_safe(entity, "current_temperature", "")
dest_temp = int(get_attr_safe(entity, "temperature", 0)*10) dest_temp = int(get_attr_safe(entity, "temperature", 0)*10)
status = get_attr_safe(entity, "hvac_action", "") status = get_attr_safe(entity, "hvac_action", "")
status = get_translation(self._locale,status) state_value = ""
if status != "":
state_value += f"{get_translation(self._locale, status)}\r\n("
state_value += f"{get_translation(self._locale, entity.state)}"
if status != "":
state_value += ")"
min_temp = int(get_attr_safe(entity, "min_temp", 0)*10) min_temp = int(get_attr_safe(entity, "min_temp", 0)*10)
max_temp = int(get_attr_safe(entity, "max_temp", 0)*10) max_temp = int(get_attr_safe(entity, "max_temp", 0)*10)
step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10) step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10)
@@ -278,7 +295,7 @@ class LuiPagesGen(object):
for mode in hvac_modes: for mode in hvac_modes:
icon_id = get_icon_id('alert-circle-outline') icon_id = get_icon_id('alert-circle-outline')
color_on = 64512 color_on = 64512
if mode == "auto": if mode in ["auto", "heat_cool"]:
icon_id = get_icon_id("calendar-sync") icon_id = get_icon_id("calendar-sync")
color_on = 1024 color_on = 1024
if mode == "heat": if mode == "heat":
@@ -305,16 +322,20 @@ class LuiPagesGen(object):
padding_len = 8-len_hvac_modes padding_len = 8-len_hvac_modes
icon_res = icon_res + "~"*4*padding_len icon_res = icon_res + "~"*4*padding_len
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~Currently~State~Action~{temperature_unit_icon}" currently_translation = get_translation(self._locale, "currently")
state_translation = get_translation(self._locale, "state")
action_translation = get_translation(self._locale, "operation")
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{state_value}~{min_temp}~{max_temp}~{step_temp}{icon_res}~{currently_translation}~{state_translation}~{action_translation}~{temperature_unit_icon}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_media_page(self, navigation, entity): def generate_media_page(self, navigation, title, entity):
item = entity.entityId item = entity.entityId
if not self._ha_api.entity_exists(item): if not self._ha_api.entity_exists(item):
command = f"entityUpd~Not found~{navigation}~{item}~{get_icon_id('alert-circle-outline')}~Please check your~apps.yaml in AppDaemon~~0~{get_icon_id('alert-circle-outline')}~~~disable" command = f"entityUpd~Not found~{navigation}~{item}~{get_icon_id('alert-circle-outline')}~Please check your~apps.yaml in AppDaemon~~0~{get_icon_id('alert-circle-outline')}~~~disable"
else: else:
entity = self._ha_api.get_entity(item) entity = self._ha_api.get_entity(item)
heading = entity.attributes.friendly_name heading = title if title != "unknown" else entity.attributes.friendly_name
icon = get_icon_id('speaker-off') icon = get_icon_id('speaker-off')
title = get_attr_safe(entity, "media_title", "") title = get_attr_safe(entity, "media_title", "")
author = get_attr_safe(entity, "media_artist", "") author = get_attr_safe(entity, "media_artist", "")
@@ -338,7 +359,7 @@ class LuiPagesGen(object):
if entity.state == "off": if entity.state == "off":
onoffbutton = 1374 onoffbutton = 1374
else: else:
onoffbutton = rgb_dec565([255,255,255]) onoffbutton = rgb_dec565([255,152,0])
command = f"entityUpd~{heading}~{navigation}~{item}~{icon}~{title}~{author}~{volume}~{iconplaypause}~{source}~{speakerlist[:200]}~{onoffbutton}" command = f"entityUpd~{heading}~{navigation}~{item}~{icon}~{title}~{author}~{volume}~{iconplaypause}~{source}~{speakerlist[:200]}~{onoffbutton}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
@@ -347,7 +368,7 @@ class LuiPagesGen(object):
if not self._ha_api.entity_exists(item): if not self._ha_api.entity_exists(item):
command = f"entityUpd~{item}~{navigation}~Not found~Not found~Check your~Check your~apps.~apps.~yaml~yaml~0~~0" command = f"entityUpd~{item}~{navigation}~Not found~Not found~Check your~Check your~apps.~apps.~yaml~yaml~0~~0"
else: else:
entity = self._ha_api.get_entity(item) entity = self._ha_api.get_entity(item)
icon = get_icon_id("shield-off") icon = get_icon_id("shield-off")
color = rgb_dec565([255,255,255]) color = rgb_dec565([255,255,255])
supported_modes = [] supported_modes = []
@@ -429,9 +450,9 @@ class LuiPagesGen(object):
return return
if card.cardType == "cardThermo": if card.cardType == "cardThermo":
temp_unit = card.raw_config.get("temperatureUnit", "celsius") temp_unit = card.raw_config.get("temperatureUnit", "celsius")
self.generate_thermo_page(navigation, card.entity, temp_unit) self.generate_thermo_page(navigation, card.title, card.entity, temp_unit)
if card.cardType == "cardMedia": if card.cardType == "cardMedia":
self.generate_media_page(navigation, card.entity) self.generate_media_page(navigation, card.title, card.entity)
if card.cardType == "cardAlarm": if card.cardType == "cardAlarm":
self.generate_alarm_page(navigation, card.entity) self.generate_alarm_page(navigation, card.entity)
if card.cardType == "screensaver": if card.cardType == "screensaver":

View File

@@ -22,8 +22,6 @@ default_screensaver_color_mapping = {
"tForecast3Val": "65535", "tForecast3Val": "65535",
"tForecast4Val": "65535", "tForecast4Val": "65535",
"bar": "65535", "bar": "65535",
"tMainIconAlt": "65535",
"tMainTextAlt": "65535",
"tMRIcon": "65535", "tMRIcon": "65535",
"tMR": "65535" "tMR": "65535"
} }
@@ -61,11 +59,13 @@ def map_color(key, theme, state=None):
# Use Autocolouring for weather # Use Autocolouring for weather
elif state is not None: elif state is not None:
if key in ["tMainIcon", "tF1Icon", "tF2Icon", "tF3Icon", "tF4Icon"]: if key in ["tMainIcon", "tF1Icon", "tF2Icon", "tF3Icon", "tF4Icon"]:
config_color = map_weather_icon_color(key=key, state=state) config_color = map_weather_icon_color(key=key, theme=theme, state=state)
return config_color return config_color
def map_weather_icon_color(key, state): def map_weather_icon_color(key, theme, state):
if state[key] in default_weather_icon_color_mapping: if key in state and state[key] in theme:
config_color = rgb_dec565(theme[state[key]])
elif key in state and state[key] in default_weather_icon_color_mapping:
config_color = default_weather_icon_color_mapping[state[key]] config_color = default_weather_icon_color_mapping[state[key]]
else: else:
config_color = "65535" config_color = "65535"

View File

@@ -24,8 +24,8 @@ class NsPanelLovelaceUIManager(hass.Hass):
controller = LuiController(self, cfg, send_mqtt_msg) controller = LuiController(self, cfg, send_mqtt_msg)
desired_display_firmware_version = 34 desired_display_firmware_version = 36
version = "v2.8.1" version = "v2.9.0"
model = cfg.get("model") model = cfg.get("model")
if model == "us-l": if model == "us-l":

7
ignore-id.py Normal file
View File

@@ -0,0 +1,7 @@
attributes = {
"id": {
"ignore": True,
"name": "ID",
"struct": "i",
}
}

Some files were not shown because too many files have changed in this diff Show More