Merge pull request #1 from joBr99/main

This branch is 131 commits behind the upstream - fetch upstream not possible
This commit is contained in:
Armilar
2022-06-09 11:02:53 +02:00
committed by GitHub
213 changed files with 197920 additions and 5502 deletions

2
.github/CODEOWNERS vendored
View File

@@ -1,2 +1,2 @@
* @joBr99 * @joBr99
/ioBroker @britzelpuf /ioBroker @britzelpuf @Armilar

View File

@@ -2,7 +2,7 @@
name: Feature request name: Feature request
about: "[Feature Request] Suggest an idea for this project" about: "[Feature Request] Suggest an idea for this project"
title: "[Feature Request] " title: "[Feature Request] "
labels: enhancement labels:
assignees: '' assignees: ''
--- ---

View File

@@ -75,6 +75,7 @@ jobs:
continue-on-error: true continue-on-error: true
run: | run: |
find -name "**.txt" find -name "**.txt"
rm Nextion2Text.py*
- uses: stefanzweifel/git-auto-commit-action@v4 - uses: stefanzweifel/git-auto-commit-action@v4
with: with:

View File

@@ -37,11 +37,11 @@ wake screen:
`wake` `wake`
set brightness of screensaver: set brightness of screensaver and active-brightness:
`dimmode~0 - (screen off)` `dimmode~0~100 - (screen off)`
`dimmode~100 - (screen on with full brightness)` `dimmode~100~100 - (screen on with full brightness)`
set current time: set current time:
@@ -111,7 +111,7 @@ The following message can be used to update the content on the cardEntities Page
### popupShutter Page ### popupShutter Page
`entityUpdateDetail~*ignored*~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown~iconUpStatus~iconStopStatus~iconDownStatus `entityUpdateDetail~*ignored*~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown~iconUpStatus~iconStopStatus~iconDownStatus~textTilt~iconTiltLeft~iconTiltStop~iconTiltRight~iconTiltLeftStatus~iconTiltStopStatus~iconTiltLeftStatus`
`entityUpdateDetail~1~77` `entityUpdateDetail~1~77`
@@ -129,7 +129,10 @@ The following message can be used to update the content on the cardEntities Page
### cardMedia Page ### cardMedia Page
`entityUpd~*heading*~*navigation*~*internalNameEntiy*~*icon*~*title*~*author*~*volume*~*playpauseicon*~currentSpeaker~speakerList-seperated-by-?` onoffbtn has to be`disable` to disable the on off btn
tIconBtnEntityName is the entiy name used in the button event for pressing the upper left icon
`entityUpd~*heading*~*navigation*~*internalNameEntiy*~*icon*~*title*~*author*~*volume*~*playpauseicon*~currentSpeaker~speakerList-seperated-by-?~onoffbtn~tIconBtnEntityName`
### cardAlarm Page ### cardAlarm 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-29 21:20:55.128409486 +0000 --- HMI/n2t-out/Program.s.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-05-29 21:20:55.900415426 +0000 +++ HMI/US/landscape/n2t-out/Program.s.txt 2022-06-08 20:00:08.089056883 +0000
@@ -11,6 +11,4 @@ @@ -11,6 +11,4 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -8,96 +8,9 @@ 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
--- HMI/n2t-out/cardQR.txt 2022-05-29 21:20:55.128409486 +0000
+++ HMI/US/landscape/n2t-out/cardQR.txt 2022-05-29 21:20:55.904415457 +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/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-29 21:20:55.128409486 +0000 --- HMI/n2t-out/pageStartup.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-05-29 21:20:55.900415426 +0000 +++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-06-08 20:00:08.089056883 +0000
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
recmod=1 recmod=1
bauds=115200 bauds=115200
@@ -107,69 +20,3 @@ 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

@@ -20,6 +20,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -40,6 +41,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -93,6 +95,13 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
ID : 39
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
ID : 2 ID : 2
@@ -111,7 +120,7 @@ Text tTmp
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 0 Font ID : 6
Back. Color : 65535 Back. Color : 65535
Font Color : 0 Font Color : 0
Horizontal Alignment : center Horizontal Alignment : center
@@ -141,7 +150,7 @@ Text tInstruction
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 0 Font ID : 6
Back. Color : 65535 Back. Color : 65535
Font Color : 0 Font Color : 0
Horizontal Alignment : center Horizontal Alignment : center
@@ -171,7 +180,7 @@ Text tId
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 0 Font ID : 6
Back. Color : 65535 Back. Color : 65535
Font Color : 0 Font Color : 0
Horizontal Alignment : center Horizontal Alignment : center
@@ -191,7 +200,7 @@ Text tCode
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 : 107 x coordinate : 108
y coordinate : 16 y coordinate : 16
Width : 192 Width : 192
Height : 49 Height : 49
@@ -201,7 +210,7 @@ Text tCode
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 2 Font ID : 1
Back. Color : 10565 Back. Color : 10565
Font Color : 40179 Font Color : 40179
Horizontal Alignment : center Horizontal Alignment : center
@@ -221,7 +230,7 @@ Text tIcon
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 : 315 x coordinate : 316
y coordinate : 16 y coordinate : 16
Width : 64 Width : 64
Height : 49 Height : 49
@@ -253,8 +262,8 @@ Picture p0
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 0 y coordinate : 0
Width : 480 Width : 479
Height : 320 Height : 319
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -268,7 +277,7 @@ Button bNext
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 : 406 x coordinate : 407
y coordinate : 16 y coordinate : 16
Width : 50 Width : 50
Height : 50 Height : 50
@@ -315,7 +324,7 @@ Button bPrev
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 : 24 x coordinate : 25
y coordinate : 16 y coordinate : 16
Width : 50 Width : 50
Height : 50 Height : 50
@@ -369,7 +378,7 @@ Button b0
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 : 40 x coordinate : 41
y coordinate : 94 y coordinate : 94
Width : 75 Width : 75
Height : 50 Height : 50
@@ -380,7 +389,7 @@ Button b0
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -407,7 +416,7 @@ Button b1
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 : 132 x coordinate : 133
y coordinate : 94 y coordinate : 94
Width : 75 Width : 75
Height : 50 Height : 50
@@ -418,7 +427,7 @@ Button b1
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -445,7 +454,7 @@ Button b2
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 : 224 x coordinate : 225
y coordinate : 93 y coordinate : 93
Width : 75 Width : 75
Height : 50 Height : 50
@@ -456,7 +465,7 @@ Button b2
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -483,7 +492,7 @@ Button b3
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 : 40 x coordinate : 41
y coordinate : 152 y coordinate : 152
Width : 75 Width : 75
Height : 50 Height : 50
@@ -494,7 +503,7 @@ Button b3
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -521,7 +530,7 @@ Button b4
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 : 132 x coordinate : 133
y coordinate : 152 y coordinate : 152
Width : 75 Width : 75
Height : 50 Height : 50
@@ -532,7 +541,7 @@ Button b4
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -559,7 +568,7 @@ Button b5
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 : 224 x coordinate : 225
y coordinate : 152 y coordinate : 152
Width : 75 Width : 75
Height : 50 Height : 50
@@ -570,7 +579,7 @@ Button b5
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -597,7 +606,7 @@ Button b6
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 : 40 x coordinate : 41
y coordinate : 210 y coordinate : 210
Width : 75 Width : 75
Height : 50 Height : 50
@@ -608,7 +617,7 @@ Button b6
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -635,7 +644,7 @@ Button b7
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 : 132 x coordinate : 133
y coordinate : 210 y coordinate : 210
Width : 75 Width : 75
Height : 50 Height : 50
@@ -646,7 +655,7 @@ Button b7
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -673,7 +682,7 @@ Button b8
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 : 224 x coordinate : 225
y coordinate : 210 y coordinate : 210
Width : 75 Width : 75
Height : 50 Height : 50
@@ -684,7 +693,7 @@ Button b8
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -711,7 +720,7 @@ Button b9
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 : 131 x coordinate : 41
y coordinate : 266 y coordinate : 266
Width : 75 Width : 75
Height : 50 Height : 50
@@ -722,7 +731,65 @@ Button b9
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 2 Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
// event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 134
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 1
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -741,44 +808,6 @@ Button b9
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" tCode.txt=tCode.txt+"0"
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 224
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 2
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Button arm1 Button arm1
Attributes Attributes
ID : 24 ID : 24
@@ -787,7 +816,7 @@ Button arm1
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 : 315 x coordinate : 316
y coordinate : 91 y coordinate : 91
Width : 141 Width : 141
Height : 50 Height : 50
@@ -798,7 +827,7 @@ Button arm1
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -841,7 +870,7 @@ Button arm3
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 : 315 x coordinate : 316
y coordinate : 210 y coordinate : 210
Width : 140 Width : 140
Height : 50 Height : 50
@@ -852,7 +881,7 @@ Button arm3
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -895,7 +924,7 @@ Button arm2
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 : 315 x coordinate : 316
y coordinate : 152 y coordinate : 152
Width : 141 Width : 141
Height : 50 Height : 50
@@ -906,7 +935,7 @@ Button arm2
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -949,7 +978,7 @@ Button arm4
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 : 315 x coordinate : 316
y coordinate : 266 y coordinate : 266
Width : 141 Width : 141
Height : 50 Height : 50
@@ -960,7 +989,7 @@ Button arm4
Style : border Style : border
Border Color : 6371 Border Color : 6371
Border Width : 2 Border Width : 2
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -995,6 +1024,44 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
ID : 38
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 225
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 35 ID : 35
@@ -1025,7 +1092,7 @@ Hotspot mSwipeUp
Opacity : 127 Opacity : 127
x coordinate : 12 x coordinate : 12
y coordinate : 0 y coordinate : 0
Width : 450 Width : 426
Height : 9 Height : 9
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -1199,6 +1266,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -1213,6 +1281,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -1224,6 +1293,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -1240,7 +1318,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

@@ -20,6 +20,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
@@ -2896,6 +2897,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

@@ -20,7 +20,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1
@@ -1310,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

@@ -20,6 +20,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -56,6 +57,13 @@ Variable (int32) vaSpeakerPos
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) vaMenu
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 50
Text tSend Text tSend
Attributes Attributes
ID : 2 ID : 2
@@ -443,6 +451,24 @@ Text tIcon
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Events
Touch Release Event
if(vaMenu.txt!="")
{
tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text t1 Text t1
Attributes Attributes
ID : 22 ID : 22
@@ -1068,6 +1094,8 @@ Timer tmSerial
vis t5,1 vis t5,1
covx tTmp.txt,t5.pco,0,0 covx tTmp.txt,t5.pco,0,0
} }
//tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",12
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -1084,7 +1112,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

@@ -20,6 +20,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -37,6 +38,8 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -82,35 +85,42 @@ Variable (string) tInstruction
Variable (string) entn1 Variable (string) entn1
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) entn2 Variable (string) entn2
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) type1 Variable (string) type1
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) type2 Variable (string) type2
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
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
@@ -126,7 +136,7 @@ Text tEntity1
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : left Horizontal Alignment : left
@@ -140,7 +150,7 @@ Text tEntity1
Text tIcon1 Text tIcon1
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
@@ -170,7 +180,7 @@ Text tIcon1
Text tEntity2 Text tEntity2
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
@@ -186,7 +196,7 @@ Text tEntity2
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : left Horizontal Alignment : left
@@ -200,7 +210,7 @@ Text tEntity2
Text tIcon2 Text tIcon2
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
@@ -230,7 +240,7 @@ Text tIcon2
Text tHeading Text tHeading
Attributes Attributes
ID : 25 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -246,7 +256,7 @@ Text tHeading
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : center
@@ -268,32 +278,13 @@ Picture p0
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 0 y coordinate : 0
Width : 480 Width : 479
Height : 320 Height : 319
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Picture ID : 0 Picture ID : 0
QR Code qr0
Attributes
ID : 17
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Logo overlay : no
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
ID : 3 ID : 3
@@ -397,7 +388,7 @@ Button bPrev
Button bText1 Button bText1
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
@@ -412,7 +403,7 @@ Button bText1
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -444,7 +435,7 @@ Button bText1
Button bText2 Button bText2
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
@@ -459,7 +450,7 @@ Button bText2
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Font ID : 0 Font ID : 6
Back. Color : 6371 Back. Color : 6371
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823 Back. Color (Pressed) : 14823
@@ -505,7 +496,7 @@ Dual-state Button btOnOff1
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Fill : image Fill : image
Font ID : 0 Font ID : 6
Background Picture ID (Unpressed) : 1 Background Picture ID (Unpressed) : 1
Back. Picture ID (Pressed) : 2 Back. Picture ID (Pressed) : 2
Horizontal Alignment : center Horizontal Alignment : center
@@ -536,7 +527,7 @@ Dual-state Button btOnOff1
Dual-state Button btOnOff2 Dual-state Button btOnOff2
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
@@ -550,7 +541,7 @@ Dual-state Button btOnOff2
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Fill : image Fill : image
Font ID : 0 Font ID : 6
Background Picture ID (Unpressed) : 1 Background Picture ID (Unpressed) : 1
Back. Picture ID (Pressed) : 2 Back. Picture ID (Pressed) : 2
Horizontal Alignment : center Horizontal Alignment : center
@@ -609,7 +600,7 @@ Hotspot mSwipeUp
Opacity : 127 Opacity : 127
x coordinate : 12 x coordinate : 12
y coordinate : 0 y coordinate : 0
Width : 454 Width : 450
Height : 9 Height : 9
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -639,6 +630,38 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
ID : 29
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Hotspot m1
Attributes
ID : 30
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 143
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 5 ID : 5
@@ -732,7 +755,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -855,6 +878,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -871,7 +904,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

@@ -20,6 +20,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -28,9 +29,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -124,28 +122,28 @@ Variable (string) va7
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 46 ID : 43
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 47 ID : 44
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 48 ID : 45
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) tSend Variable (string) tSend
Attributes Attributes
ID : 49 ID : 46
Scope : local Scope : local
Text : Text :
Max. Text Size: 100 Max. Text Size: 100
@@ -300,99 +298,9 @@ XFloat xTempDest2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
XFloat xTempMin2
Attributes
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 246
y coordinate : 69
Width : 50
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax2
Attributes
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 246
y coordinate : 91
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep2
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 247
y coordinate : 179
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
ID : 52 ID : 49
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -602,7 +510,7 @@ Text tCF2
Text tALbl Text tALbl
Attributes Attributes
ID : 50 ID : 47
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -632,7 +540,7 @@ Text tALbl
Text tCF Text tCF
Attributes Attributes
ID : 54 ID : 51
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -662,7 +570,7 @@ Text tCF
Text tCurTemp Text tCurTemp
Attributes Attributes
ID : 55 ID : 52
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1242,10 +1150,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1300,10 +1211,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1338,7 +1252,7 @@ Dual-state Button bUp2
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712 Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512 Font Color (Pressed) : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
State : unpressed State : unpressed
@@ -1350,16 +1264,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1408,16 +1325,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1434,7 +1354,7 @@ Dual-state Button bDown2
Dual-state Button btUp Dual-state Button btUp
Attributes Attributes
ID : 51 ID : 48
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1492,7 +1412,7 @@ Dual-state Button btUp
Dual-state Button btDown Dual-state Button btDown
Attributes Attributes
ID : 53 ID : 50
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1950,6 +1870,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
popupNotify cardMedia
17 Component(s) 34 Component(s)
200 Line(s) of event code 363 Line(s) of event code
125 Unique line(s) of event code 195 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
154 Line(s) of event code 157 Line(s) of event code
115 Unique line(s) of event code 117 Unique line(s) of event code
cardThermo
56 Component(s)
542 Line(s) of event code
292 Unique line(s) of event code
popupShutter
20 Component(s)
244 Line(s) of event code
138 Unique line(s) of event code
cardQR
30 Component(s)
359 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 cardGrid
42 Component(s) 42 Component(s)
435 Line(s) of event code 439 Line(s) of event code
256 Unique line(s) of event code 259 Unique line(s) of event code
cardAlarm cardQR
38 Component(s) 32 Component(s)
360 Line(s) of event code 374 Line(s) of event code
226 Unique line(s) of event code 218 Unique line(s) of event code
cardMedia popupNotify
33 Component(s) 17 Component(s)
346 Line(s) of event code 204 Line(s) of event code
181 Unique line(s) of event code 128 Unique line(s) of event code
popupShutter
25 Component(s)
330 Line(s) of event code
162 Unique line(s) of event code
screensaver screensaver
37 Component(s) 38 Component(s)
305 Line(s) of event code 319 Line(s) of event code
244 Unique line(s) of event code 253 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1129 Line(s) of event code 1133 Line(s) of event code
493 Unique line(s) of event code 496 Unique line(s) of event code
popupLight
27 Component(s)
352 Line(s) of event code
191 Unique line(s) of event code
cardThermo
53 Component(s)
555 Line(s) of event code
292 Unique line(s) of event code
cardAlarm
40 Component(s)
392 Line(s) of event code
239 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
404 Component(s) 412 Component(s)
4446 Line(s) of event code 4642 Line(s) of event code
1177 Unique line(s) of event code 1232 Unique line(s) of event code

View File

@@ -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

@@ -20,6 +20,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
@@ -906,6 +907,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

@@ -20,6 +20,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0
@@ -519,6 +520,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

@@ -20,15 +20,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -47,18 +51,39 @@ Page popupShutter
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) entn Variable (string) entn
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
ID : 17
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
ID : 2 ID : 2
@@ -68,7 +93,7 @@ Text tEntity
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 80 x coordinate : 80
y coordinate : 94 y coordinate : 48
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -98,7 +123,7 @@ Text tIcon1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 27 x coordinate : 27
y coordinate : 108 y coordinate : 63
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -149,106 +174,16 @@ Text tSend
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTmp
Attributes
ID : 6
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 421
y coordinate : 277
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 15
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 115
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tPosHeading Text tPosHeading
Attributes Attributes
ID : 17 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 : 79 x coordinate : 79
y coordinate : 164 y coordinate : 122
Width : 100 Width : 100
Height : 30 Height : 30
Effect : load Effect : load
@@ -260,7 +195,7 @@ Text tPosHeading
Font ID : 0 Font ID : 0
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : left
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Position Text : Position
@@ -271,14 +206,14 @@ Text tPosHeading
Text tInfo1 Text tInfo1
Attributes Attributes
ID : 19 ID : 16
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 : 80 x coordinate : 80
y coordinate : 122 y coordinate : 76
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -299,6 +234,36 @@ Text tInfo1
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTiltHeading
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 79
y coordinate : 231
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 15
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -309,8 +274,8 @@ Picture p0
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 0 y coordinate : 0
Width : 480 Width : 479
Height : 320 Height : 319
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -318,14 +283,58 @@ Picture p0
Slider hPosition Slider hPosition
Attributes Attributes
ID : 16 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 : 80 x coordinate : 79
y coordinate : 194 y coordinate : 152
Width : 335
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID : 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTilt
Attributes
ID : 21
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 79
y coordinate : 261
Width : 335 Width : 335
Height : 43 Height : 43
Effect : load Effect : load
@@ -409,14 +418,14 @@ Button b0
Button bDown1 Button bDown1
Attributes Attributes
ID : 13 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 : 408 x coordinate : 401
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -456,14 +465,14 @@ Button bDown1
Button bStop1 Button bStop1
Attributes Attributes
ID : 14 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 : 356 x coordinate : 349
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -503,14 +512,14 @@ Button bStop1
Button bUp1 Button bUp1
Attributes Attributes
ID : 15 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 : 304 x coordinate : 297
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -548,9 +557,150 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 297
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
ID : 23
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 349
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
ID : 24
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 401
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes
@@ -570,7 +720,7 @@ Timer tmSleep
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -684,12 +834,57 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
// 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")
{ {
@@ -780,7 +975,7 @@ Timer tmSerial
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 7 ID : 6
Scope: local Scope: local
Value: 0 Value: 0

View File

@@ -91,9 +91,9 @@ Text tTime
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 52 x coordinate : 52
y coordinate : 0 y coordinate : 18
Width : 376 Width : 376
Height : 154 Height : 112
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -121,23 +121,23 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 15 x coordinate : 15
y coordinate : 154 y coordinate : 162
Width : 450 Width : 450
Height : 38 Height : 32
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 2 Font ID : 1
Back. Color : 0 Back. Color : 0
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : bottom
Input Type : character Input Type : character
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -810,7 +810,7 @@ Text tIcon1
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 : 8 x coordinate : 15
y coordinate : 0 y coordinate : 0
Width : 38 Width : 38
Height : 38 Height : 38
@@ -840,7 +840,7 @@ Text tIcon2
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 : 434 x coordinate : 428
y coordinate : 0 y coordinate : 0
Width : 38 Width : 38
Height : 38 Height : 38
@@ -862,6 +862,36 @@ Text tIcon2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTimeAdd
Attributes
ID : 37
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 15
y coordinate : 130
Width : 450
Height : 32
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -942,6 +972,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")
{ {
@@ -953,6 +986,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -1007,7 +1041,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -1043,6 +1077,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1072,6 +1114,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -1114,6 +1157,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
{ {

View File

@@ -12,6 +12,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -32,6 +33,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -78,6 +80,12 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
Scope : local Scope : local
@@ -325,12 +333,32 @@ Button b9
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : 0 Text :
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" // event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10 Button b10
Attributes Attributes
@@ -339,12 +367,12 @@ Button b10
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : CLR Text : 0
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt="" tCode.txt=tCode.txt+"0"
Button arm1 Button arm1
Attributes Attributes
@@ -466,6 +494,20 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : CLR
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -642,6 +684,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -656,6 +699,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -667,6 +711,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -683,7 +736,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

@@ -12,6 +12,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
@@ -1924,6 +1925,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

@@ -12,7 +12,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1
@@ -846,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

@@ -12,6 +12,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -44,6 +45,12 @@ Variable (int32) vaSpeakerPos
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) vaMenu
Attributes
Scope : local
Text :
Max. Text Size: 50
Text tSend Text tSend
Attributes Attributes
Scope : local Scope : local
@@ -211,6 +218,24 @@ Text tIcon
Text : Text :
Max. Text Size : 10 Max. Text Size : 10
Events
Touch Release Event
if(vaMenu.txt!="")
{
tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text t1 Text t1
Attributes Attributes
Scope : local Scope : local
@@ -619,6 +644,8 @@ Timer tmSerial
vis t5,1 vis t5,1
covx tTmp.txt,t5.pco,0,0 covx tTmp.txt,t5.pco,0,0
} }
//tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",12
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -635,7 +662,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

@@ -12,6 +12,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -29,6 +30,8 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -90,6 +93,12 @@ Variable (string) type2
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
Attributes Attributes
Scope : local Scope : local
@@ -147,15 +156,6 @@ Picture p0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
QR Code qr0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
Scope : local Scope : local
@@ -350,6 +350,20 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Hotspot m1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Timer tmSerial Timer tmSerial
Attributes Attributes
Scope : local Scope : local
@@ -442,7 +456,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -565,6 +579,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -581,7 +605,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

@@ -12,6 +12,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -20,9 +21,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -173,33 +171,6 @@ XFloat xTempDest2
Associated Keyboard : none Associated Keyboard : none
Value : 0 Value : 0
XFloat xTempMin2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempMax2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempStep2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
Scope : local Scope : local
@@ -599,10 +570,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -635,10 +609,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -663,16 +640,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -699,16 +679,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1169,6 +1152,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

@@ -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

@@ -12,6 +12,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
@@ -560,6 +561,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

@@ -12,6 +12,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0
@@ -310,6 +311,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

@@ -12,15 +12,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -49,6 +53,24 @@ Variable (string) entn
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
Scope : local Scope : local
@@ -79,36 +101,6 @@ Text tSend
Text : newtxt Text : newtxt
Max. Text Size : 100 Max. Text Size : 100
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tInstruction
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tId
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tPosHeading Text tPosHeading
Attributes Attributes
Scope : local Scope : local
@@ -129,6 +121,16 @@ Text tInfo1
Text : Text :
Max. Text Size : 40 Max. Text Size : 40
Text tTiltHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 15
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -165,6 +167,35 @@ Slider hPosition
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Slider hTilt
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0 Button b0
Attributes Attributes
Scope : local Scope : local
@@ -265,6 +296,81 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
Scope : local Scope : local
@@ -399,12 +505,57 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
// 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

@@ -86,7 +86,7 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Text tMainIcon Text tMainIcon
Attributes Attributes
@@ -328,6 +328,16 @@ Text tIcon2
Text : Text :
Max. Text Size : 5 Max. Text Size : 5
Text tTimeAdd
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -397,6 +407,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")
{ {
@@ -408,6 +421,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -462,7 +476,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -498,6 +512,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -527,6 +549,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -569,6 +592,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.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-29 21:20:55.128409486 +0000 --- HMI/n2t-out/Program.s.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-29 21:20:55.500412348 +0000 +++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-08 20:00:07.521016838 +0000
@@ -11,6 +11,6 @@ @@ -11,6 +11,6 @@
// dim value // dim value
int dimValue=40 int dimValue=40
@@ -10,25 +10,10 @@ 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-29 21:20:55.128409486 +0000 --- HMI/n2t-out/cardEntities.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-29 21:20:55.500412348 +0000 +++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-08 20:00:07.521016838 +0000
@@ -62,6 +62,16 @@ @@ -63,6 +63,16 @@
vis bText4,0 vis bText4,0
vis hSlider4,0 vis hSlider4,0
vis nNum4,0 vis nNum4,0
@@ -45,7 +30,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -119,6 +129,18 @@ @@ -120,6 +130,18 @@
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
@@ -64,7 +49,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Number nNum1 Number nNum1
Attributes Attributes
Scope : local Scope : local
@@ -155,6 +177,15 @@ @@ -156,6 +178,15 @@
Associated Keyboard : none Associated Keyboard : none
Value : 0 Value : 0
@@ -80,7 +65,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Text tHeading Text tHeading
Attributes Attributes
Scope : local Scope : local
@@ -285,6 +316,26 @@ @@ -286,6 +317,26 @@
Text : Text :
Max. Text Size : 50 Max. Text Size : 50
@@ -107,7 +92,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -404,6 +455,34 @@ @@ -405,6 +456,34 @@
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
@@ -142,7 +127,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Button bDown1 Button bDown1
Attributes Attributes
Scope : local Scope : local
@@ -861,6 +940,106 @@ @@ -862,6 +941,106 @@
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
@@ -249,7 +234,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Dual-state Button btOnOff1 Dual-state Button btOnOff1
Attributes Attributes
Scope : local Scope : local
@@ -969,6 +1148,33 @@ @@ -970,6 +1149,33 @@
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
@@ -283,7 +268,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
Hotspot mSpecial Hotspot mSpecial
Attributes Attributes
Scope : local Scope : local
@@ -1074,6 +1280,28 @@ @@ -1075,6 +1281,28 @@
page popupLight page popupLight
} }
@@ -312,7 +297,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
@@ -1849,6 +2077,169 @@ @@ -1850,6 +2078,169 @@
covx tTmp.txt,sys0,0,0 covx tTmp.txt,sys0,0,0
hSlider4.maxval=sys0 hSlider4.maxval=sys0
} }
@@ -482,87 +467,59 @@ 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 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/n2t-out/cardMedia.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-05-29 21:20:55.500412348 +0000 +++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-06-08 20:00:07.521016838 +0000
@@ -635,10 +635,7 @@ @@ -45,12 +45,6 @@
// get value Scope: local
spstr strCommand.txt,tTmp.txt,"~",1 Value: 0
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
--- 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
@@ -34,7 +34,7 @@
Attributes
Scope : local
Text :
- Max. Text Size: 275
+ Max. Text Size: 270
Variable (string) entn -Variable (string) vaMenu
- Attributes
- Scope : local
- Text :
- Max. Text Size: 50
-
Text tSend
Attributes Attributes
@@ -581,10 +581,7 @@ Scope : local
// get value @@ -218,24 +212,6 @@
spstr strCommand.txt,tTmp.txt,"~",1 Text :
covx tTmp.txt,dimValue,0,0 Max. Text Size : 10
- // get value normal
- spstr strCommand.txt,tTmp.txt,"~",2 - Events
- covx tTmp.txt,dimValueNormal,0,0 - Touch Release Event
- dim=dimValueNormal - if(vaMenu.txt!="")
+ dim=dimValue - {
- tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
- //send calc crc
- btlen tSend.txt,sys0
- crcrest 1,0xffff // reset CRC
- crcputh 55 bb
- crcputs sys0,2
- crcputs tSend.txt,0
- //send cmd
- printh 55 bb
- prints sys0,2
- prints tSend.txt,0
- prints crcval,2
- }
-
Text t1
Attributes
Scope : local
@@ -644,8 +620,6 @@
vis t5,1
covx tTmp.txt,t5.pco,0,0
}
- //tIconBtnEntityName
- spstr strCommand.txt,vaMenu.txt,"~",12
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="time")
{
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-29 21:20:55.128409486 +0000 --- HMI/n2t-out/pageStartup.txt 2022-06-08 20:00:07.004980492 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-05-29 21:20:55.500412348 +0000 +++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-08 20:00:07.525017120 +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
@@ -581,92 +538,3 @@ 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,157 +1,63 @@
+++ HMI/US/portrait/diff-eu-version.txt 2022-05-29 21:20:55.512412440 +0000 +++ HMI/US/portrait/diff-eu-version.txt 2022-06-08 20:00:07.557019374 +0000
+--- HMI/n2t-out/Program.s.txt 2022-05-29 21:20:55.128409486 +0000 +--- HMI/n2t-out/Program.s.txt 2022-06-08 20:00:07.004980492 +0000
++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-05-29 21:20:55.500412348 +0000 ++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-08 20:00:07.521016838 +0000
+diff -bur HMI/n2t-out/cardAlarm.txt HMI/US/portrait/n2t-out/cardAlarm.txt +--- HMI/n2t-out/cardEntities.txt 2022-06-08 20:00:07.004980492 +0000
+--- HMI/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.128409486 +0000 ++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-08 20:00:07.521016838 +0000
++++ HMI/US/portrait/n2t-out/cardAlarm.txt 2022-05-29 21:20:55.500412348 +0000 +@@ -63,6 +63,16 @@
+@@ -683,10 +683,7 @@ +@@ -120,6 +130,18 @@
+ // get value +@@ -156,6 +178,15 @@
+ spstr strCommand.txt,tTmp.txt,"~",1 +@@ -286,6 +317,26 @@
+ covx tTmp.txt,dimValue,0,0 +@@ -405,6 +456,34 @@
+- // get value normal +@@ -862,6 +941,106 @@
+- spstr strCommand.txt,tTmp.txt,"~",2 +@@ -970,6 +1149,33 @@
+- covx tTmp.txt,dimValueNormal,0,0 +@@ -1075,6 +1281,28 @@
+- dim=dimValueNormal +@@ -1850,6 +2078,169 @@
++ dim=dimValue
+ }
+ if(tInstruction.txt=="timeout")
+ {
+--- HMI/n2t-out/cardEntities.txt 2022-05-29 21:20:55.128409486 +0000
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-05-29 21:20:55.500412348 +0000
+@@ -1849,6 +2077,169 @@
+@@ -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 +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/n2t-out/cardMedia.txt 2022-06-08 20:00:07.004980492 +0000
++++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-05-29 21:20:55.500412348 +0000 ++++ HMI/US/portrait/n2t-out/cardMedia.txt 2022-06-08 20:00:07.521016838 +0000
+@@ -635,10 +635,7 @@ +@@ -45,12 +45,6 @@
+ // get value + Scope: local
+ spstr strCommand.txt,tTmp.txt,"~",1 + Value: 0
+ covx tTmp.txt,dimValue,0,0 +
+- // get value normal +-Variable (string) vaMenu
+- spstr strCommand.txt,tTmp.txt,"~",2 +- Attributes
+- covx tTmp.txt,dimValueNormal,0,0 +- Scope : local
+- dim=dimValueNormal +- Text :
++ dim=dimValue +- Max. Text Size: 50
+ } +-
+ if(tInstruction.txt=="timeout") + Text tSend
+ { + Scope : local
+--- HMI/n2t-out/cardQR.txt 2022-05-29 21:20:55.128409486 +0000 +@@ -218,24 +212,6 @@
++++ HMI/US/portrait/n2t-out/cardQR.txt 2022-05-29 21:20:55.500412348 +0000 + Text :
+@@ -581,10 +581,7 @@ + Max. Text Size : 10
+ // get value +- Events
+ spstr strCommand.txt,tTmp.txt,"~",1 +- Touch Release Event
+ covx tTmp.txt,dimValue,0,0 +- if(vaMenu.txt!="")
+- // get value normal +- {
+- spstr strCommand.txt,tTmp.txt,"~",2 +- tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
+- covx tTmp.txt,dimValueNormal,0,0 +- //send calc crc
+- dim=dimValueNormal +- btlen tSend.txt,sys0
++ dim=dimValue +- crcrest 1,0xffff // reset CRC
+ } +- crcputh 55 bb
+ if(tInstruction.txt=="timeout") +- crcputs sys0,2
+ { +- crcputs tSend.txt,0
+diff -bur HMI/n2t-out/cardThermo.txt HMI/US/portrait/n2t-out/cardThermo.txt +- //send cmd
+--- HMI/n2t-out/cardThermo.txt 2022-05-29 21:20:55.128409486 +0000 +- printh 55 bb
++++ HMI/US/portrait/n2t-out/cardThermo.txt 2022-05-29 21:20:55.500412348 +0000 +- prints sys0,2
+@@ -1169,10 +1169,6 @@ +- prints tSend.txt,0
+ // get value +- prints crcval,2
+ spstr strCommand.txt,tTmp.txt,"~",1 +- }
+ covx tTmp.txt,dimValue,0,0 +-
+- // get value normal + Text t1
+- spstr strCommand.txt,tTmp.txt,"~",2 + Scope : local
+- covx tTmp.txt,dimValueNormal,0,0 +@@ -644,8 +620,6 @@
+- dim=dimValueNormal + vis t5,1
+ } + covx tTmp.txt,t5.pco,0,0
+ if(tInstruction.txt=="timeout") + }
+ { +- //tIconBtnEntityName
+--- HMI/n2t-out/pageStartup.txt 2022-05-29 21:20:55.128409486 +0000 +- spstr strCommand.txt,vaMenu.txt,"~",12
++++ 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") + if(tInstruction.txt=="time")
+ { + {
+--- HMI/n2t-out/screensaver.txt 2022-05-29 21:20:55.128409486 +0000 +--- HMI/n2t-out/pageStartup.txt 2022-06-08 20:00:07.004980492 +0000
++++ HMI/US/portrait/n2t-out/screensaver.txt 2022-05-29 21:20:55.500412348 +0000 ++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-08 20:00:07.525017120 +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

@@ -20,6 +20,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -40,6 +41,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -93,6 +95,13 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
ID : 39
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
ID : 2 ID : 2
@@ -711,7 +720,65 @@ Button b9
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 : 24
y coordinate : 424
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
// event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 117
y coordinate : 424 y coordinate : 424
Width : 75 Width : 75
Height : 50 Height : 50
@@ -741,44 +808,6 @@ Button b9
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" tCode.txt=tCode.txt+"0"
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 209
y coordinate : 424
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 0
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Button arm1 Button arm1
Attributes Attributes
ID : 24 ID : 24
@@ -995,6 +1024,44 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
ID : 38
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 209
y coordinate : 424
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 0
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 35 ID : 35
@@ -1199,6 +1266,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -1213,6 +1281,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -1224,6 +1293,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -1240,7 +1318,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

@@ -20,6 +20,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
@@ -3480,6 +3481,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

@@ -20,7 +20,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1
@@ -1310,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

@@ -20,6 +20,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -1084,7 +1085,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

@@ -20,6 +20,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -37,13 +38,15 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
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
@@ -61,64 +64,71 @@ Variable (string) tSend
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 11 ID : 14
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 12 ID : 15
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 13 ID : 16
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) entn1 Variable (string) entn1
Attributes Attributes
ID : 23 ID : 25
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) entn2 Variable (string) entn2
Attributes Attributes
ID : 24 ID : 26
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) type1 Variable (string) type1
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) type2 Variable (string) type2
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
ID : 30
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
Attributes Attributes
ID : 15 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 : 112 x coordinate : 82
y coordinate : 292 y coordinate : 295
Width : 170 Width : 163
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -140,14 +150,14 @@ Text tEntity1
Text tIcon1 Text tIcon1
Attributes Attributes
ID : 16 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 : 60 x coordinate : 25
y coordinate : 291 y coordinate : 294
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -170,15 +180,15 @@ Text tIcon1
Text tEntity2 Text tEntity2
Attributes Attributes
ID : 19 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 : 113 x coordinate : 83
y coordinate : 388 y coordinate : 394
Width : 170 Width : 165
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -200,14 +210,14 @@ Text tEntity2
Text tIcon2 Text tIcon2
Attributes Attributes
ID : 20 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 : 61 x coordinate : 26
y coordinate : 387 y coordinate : 393
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -230,7 +240,7 @@ Text tIcon2
Text tHeading Text tHeading
Attributes Attributes
ID : 22 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -238,7 +248,7 @@ Text tHeading
Opacity : 127 Opacity : 127
x coordinate : 66 x coordinate : 66
y coordinate : 26 y coordinate : 26
Width : 189 Width : 184
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -246,7 +256,7 @@ Text tHeading
Fill : solid color Fill : solid color
Style : flat Style : flat
Associated Keyboard : none Associated Keyboard : none
Font ID : 2 Font ID : 1
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : center
@@ -275,25 +285,6 @@ Picture p0
Effect Time : 300 Effect Time : 300
Picture ID : 0 Picture ID : 0
QR Code qr0
Attributes
ID : 14
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 68
y coordinate : 78
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Logo overlay : no
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
ID : 3 ID : 3
@@ -397,15 +388,15 @@ Button bPrev
Button bText1 Button bText1
Attributes Attributes
ID : 17 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 : 61 x coordinate : 84
y coordinate : 339 y coordinate : 342
Width : 214 Width : 212
Height : 30 Height : 30
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -444,14 +435,14 @@ Button bText1
Button bText2 Button bText2
Attributes Attributes
ID : 21 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 : 63 x coordinate : 80
y coordinate : 434 y coordinate : 439
Width : 213 Width : 213
Height : 30 Height : 30
Effect : load Effect : load
@@ -497,8 +488,8 @@ Dual-state Button btOnOff1
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 : 225 x coordinate : 249
y coordinate : 330 y coordinate : 285
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -536,14 +527,14 @@ Dual-state Button btOnOff1
Dual-state Button btOnOff2 Dual-state Button btOnOff2
Attributes Attributes
ID : 18 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 : 226 x coordinate : 251
y coordinate : 425 y coordinate : 382
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -581,7 +572,7 @@ Dual-state Button btOnOff2
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 25 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -590,7 +581,7 @@ Hotspot mSwipeNext
x coordinate : 311 x coordinate : 311
y coordinate : 5 y coordinate : 5
Width : 9 Width : 9
Height : 470 Height : 475
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -601,16 +592,16 @@ Hotspot mSwipeNext
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
ID : 26 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 : 10 x coordinate : 12
y coordinate : 0 y coordinate : 0
Width : 300 Width : 295
Height : 9 Height : 10
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -621,7 +612,7 @@ Hotspot mSwipeUp
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
ID : 27 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -630,7 +621,7 @@ Hotspot mSwipePrev
x coordinate : 0 x coordinate : 0
y coordinate : 5 y coordinate : 5
Width : 9 Width : 9
Height : 470 Height : 475
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -639,6 +630,38 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
ID : 29
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 57
y coordinate : 77
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Hotspot m1
Attributes
ID : 31
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 57
y coordinate : 144
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 5 ID : 5
@@ -732,7 +755,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -855,6 +878,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -871,7 +904,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

@@ -20,6 +20,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -28,9 +29,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -124,28 +122,28 @@ Variable (string) va7
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 43 ID : 40
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 44 ID : 41
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 45 ID : 42
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) tSend Variable (string) tSend
Attributes Attributes
ID : 46 ID : 43
Scope : local Scope : local
Text : Text :
Max. Text Size: 100 Max. Text Size: 100
@@ -300,99 +298,9 @@ XFloat xTempDest2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
XFloat xTempMin2
Attributes
ID : 40
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 110
y coordinate : 178
Width : 50
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax2
Attributes
ID : 41
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 110
y coordinate : 200
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep2
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 111
y coordinate : 288
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
ID : 49 ID : 46
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -602,7 +510,7 @@ Text tCF2
Text tALbl Text tALbl
Attributes Attributes
ID : 47 ID : 44
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -632,7 +540,7 @@ Text tALbl
Text tCF Text tCF
Attributes Attributes
ID : 51 ID : 48
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -662,7 +570,7 @@ Text tCF
Text tCurTemp Text tCurTemp
Attributes Attributes
ID : 52 ID : 49
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1242,10 +1150,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1300,10 +1211,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1350,16 +1264,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1408,16 +1325,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1434,7 +1354,7 @@ Dual-state Button bDown2
Dual-state Button btUp Dual-state Button btUp
Attributes Attributes
ID : 48 ID : 45
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1492,7 +1412,7 @@ Dual-state Button btUp
Dual-state Button btDown Dual-state Button btDown
Attributes Attributes
ID : 50 ID : 47
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1550,7 +1470,7 @@ Dual-state Button btDown
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 53 ID : 50
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1570,7 +1490,7 @@ Hotspot mSwipeNext
Hotspot mSwipeUp Hotspot mSwipeUp
Attributes Attributes
ID : 54 ID : 51
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1590,7 +1510,7 @@ Hotspot mSwipeUp
Hotspot mSwipePrev Hotspot mSwipePrev
Attributes Attributes
ID : 55 ID : 52
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1950,6 +1870,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

@@ -2,10 +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 popupShutter
38 Component(s) 25 Component(s)
360 Line(s) of event code 330 Line(s) of event code
226 Unique line(s) of event code 162 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 +14,49 @@ 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
popupNotify
17 Component(s)
200 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 popupLight
27 Component(s) 27 Component(s)
348 Line(s) of event code 352 Line(s) of event code
188 Unique line(s) of event code 191 Unique line(s) of event code
cardQR cardQR
30 Component(s) 32 Component(s)
359 Line(s) of event code 374 Line(s) of event code
209 Unique line(s) of event code 218 Unique line(s) of event code
cardMedia popupNotify
33 Component(s) 17 Component(s)
346 Line(s) of event code 204 Line(s) of event code
181 Unique line(s) of event code 128 Unique line(s) of event code
cardThermo cardThermo
56 Component(s) 53 Component(s)
542 Line(s) of event code 555 Line(s) of event code
292 Unique line(s) of event code 292 Unique line(s) of event code
pageStartup
19 Component(s)
154 Line(s) of event code
115 Unique line(s) of event code
popupShutter
20 Component(s)
244 Line(s) of event code
138 Unique line(s) of event code
screensaver screensaver
37 Component(s) 38 Component(s)
290 Line(s) of event code 319 Line(s) of event code
229 Unique line(s) of event code 253 Unique line(s) of event code
cardEntities cardEntities
77 Component(s) 77 Component(s)
1359 Line(s) of event code 1363 Line(s) of event code
578 Unique line(s) of event code 581 Unique line(s) of event code
cardGrid
42 Component(s)
439 Line(s) of event code
259 Unique line(s) of event code
cardMedia
33 Component(s)
349 Line(s) of event code
183 Unique line(s) of event code
cardAlarm
40 Component(s)
392 Line(s) of event code
239 Unique line(s) of event code
pageStartup
19 Component(s)
157 Line(s) of event code
117 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
416 Component(s) 423 Component(s)
4661 Line(s) of event code 4858 Line(s) of event code
1234 Unique line(s) of event code 1292 Unique line(s) of event code

View File

@@ -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

@@ -20,6 +20,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
@@ -906,6 +907,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

@@ -20,6 +20,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0
@@ -519,6 +520,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

@@ -20,15 +20,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -47,18 +51,39 @@ Page popupShutter
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) entn Variable (string) entn
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
ID : 17
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
ID : 2 ID : 2
@@ -67,8 +92,8 @@ Text tEntity
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 : 60 x coordinate : 68
y coordinate : 21 y coordinate : 48
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -97,8 +122,8 @@ Text tIcon1
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 : 11 x coordinate : 15
y coordinate : 35 y coordinate : 63
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -129,7 +154,7 @@ Text tSend
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 0 y coordinate : 0
Width : 300 Width : 72
Height : 22 Height : 22
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -149,106 +174,16 @@ Text tSend
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTmp
Attributes
ID : 6
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 283
y coordinate : 411
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 5
y coordinate : 411
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 105
y coordinate : 411
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tPosHeading Text tPosHeading
Attributes Attributes
ID : 17 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 : 106 x coordinate : 11
y coordinate : 273 y coordinate : 183
Width : 100 Width : 100
Height : 30 Height : 30
Effect : load Effect : load
@@ -260,7 +195,7 @@ Text tPosHeading
Font ID : 0 Font ID : 0
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : left
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Position Text : Position
@@ -271,14 +206,14 @@ Text tPosHeading
Text tInfo1 Text tInfo1
Attributes Attributes
ID : 19 ID : 16
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 : 68
y coordinate : 51 y coordinate : 76
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -299,6 +234,36 @@ Text tInfo1
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTiltHeading
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 11
y coordinate : 335
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 15
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -318,15 +283,59 @@ Picture p0
Slider hPosition Slider hPosition
Attributes Attributes
ID : 16 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 : 35 x coordinate : 12
y coordinate : 304 y coordinate : 213
Width : 250 Width : 300
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID : 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTilt
Attributes
ID : 21
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 365
Width : 300
Height : 43 Height : 43
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -368,8 +377,8 @@ Button b0
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 : 266 x coordinate : 264
y coordinate : 14 y coordinate : 8
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -409,16 +418,16 @@ Button b0
Button bDown1 Button bDown1
Attributes Attributes
ID : 13 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 : 199 x coordinate : 251
y coordinate : 156 y coordinate : 138
Width : 70 Width : 60
Height : 70 Height : 60
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -456,16 +465,16 @@ Button bDown1
Button bStop1 Button bStop1
Attributes Attributes
ID : 14 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 : 125 x coordinate : 188
y coordinate : 156 y coordinate : 138
Width : 70 Width : 60
Height : 70 Height : 60
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -503,16 +512,16 @@ Button bStop1
Button bUp1 Button bUp1
Attributes Attributes
ID : 15 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 : 51 x coordinate : 125
y coordinate : 156 y coordinate : 138
Width : 70 Width : 60
Height : 70 Height : 60
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -548,9 +557,150 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 125
y coordinate : 291
Width : 60
Height : 60
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
ID : 23
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 187
y coordinate : 291
Width : 60
Height : 60
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
ID : 24
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 249
y coordinate : 291
Width : 60
Height : 60
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes
@@ -570,7 +720,7 @@ Timer tmSleep
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -684,12 +834,57 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
// 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")
{ {
@@ -780,7 +975,7 @@ Timer tmSerial
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 7 ID : 6
Scope: local Scope: local
Value: 0 Value: 0

View File

@@ -93,7 +93,7 @@ Text tTime
x coordinate : 0 x coordinate : 0
y coordinate : 0 y coordinate : 0
Width : 320 Width : 320
Height : 150 Height : 129
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -121,9 +121,9 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 180 y coordinate : 195
Width : 320 Width : 320
Height : 36 Height : 32
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -137,7 +137,7 @@ Text tDate
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -151,7 +151,7 @@ Text tMainIcon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 125 x coordinate : 125
y coordinate : 254 y coordinate : 261
Width : 70 Width : 70
Height : 65 Height : 65
Effect : load Effect : load
@@ -181,7 +181,7 @@ Text tMainText
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 111 x coordinate : 111
y coordinate : 318 y coordinate : 325
Width : 110 Width : 110
Height : 42 Height : 42
Effect : load Effect : load
@@ -211,7 +211,7 @@ Text tForecast1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 5 x coordinate : 5
y coordinate : 377 y coordinate : 384
Width : 71 Width : 71
Height : 25 Height : 25
Effect : load Effect : load
@@ -241,7 +241,7 @@ Text tForecast1Val
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 2 x coordinate : 2
y coordinate : 443 y coordinate : 450
Width : 70 Width : 70
Height : 24 Height : 24
Effect : load Effect : load
@@ -271,7 +271,7 @@ Text tF1Icon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 23 x coordinate : 23
y coordinate : 406 y coordinate : 413
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -301,7 +301,7 @@ Text tForecast2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 86 x coordinate : 86
y coordinate : 378 y coordinate : 385
Width : 71 Width : 71
Height : 24 Height : 24
Effect : load Effect : load
@@ -331,7 +331,7 @@ Text tF2Icon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 103 x coordinate : 103
y coordinate : 406 y coordinate : 413
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -361,7 +361,7 @@ Text tForecast2Val
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 83 x coordinate : 83
y coordinate : 443 y coordinate : 450
Width : 71 Width : 71
Height : 24 Height : 24
Effect : load Effect : load
@@ -391,7 +391,7 @@ Text t10
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 49 x coordinate : 49
y coordinate : 233 y coordinate : 240
Width : 225 Width : 225
Height : 2 Height : 2
Effect : load Effect : load
@@ -421,7 +421,7 @@ Text tAMPM
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 105 x coordinate : 105
y coordinate : 122 y coordinate : 108
Width : 103 Width : 103
Height : 57 Height : 57
Effect : load Effect : load
@@ -451,7 +451,7 @@ Text tForecast3Val
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 165 x coordinate : 165
y coordinate : 444 y coordinate : 451
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -481,7 +481,7 @@ Text tF3Icon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 183 x coordinate : 183
y coordinate : 407 y coordinate : 414
Width : 40 Width : 40
Height : 33 Height : 33
Effect : load Effect : load
@@ -511,7 +511,7 @@ Text tForecast3
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 167 x coordinate : 167
y coordinate : 379 y coordinate : 386
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -541,7 +541,7 @@ Text tForecast4
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 247 x coordinate : 247
y coordinate : 379 y coordinate : 386
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -571,7 +571,7 @@ Text tF4Icon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 263 x coordinate : 263
y coordinate : 407 y coordinate : 414
Width : 40 Width : 40
Height : 33 Height : 33
Effect : load Effect : load
@@ -601,7 +601,7 @@ Text tForecast4Val
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 246 x coordinate : 246
y coordinate : 444 y coordinate : 451
Width : 70 Width : 70
Height : 23 Height : 23
Effect : load Effect : load
@@ -631,7 +631,7 @@ Text tMainTextAlt
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 184 x coordinate : 184
y coordinate : 262 y coordinate : 269
Width : 105 Width : 105
Height : 41 Height : 41
Effect : load Effect : load
@@ -661,7 +661,7 @@ Text tMainIconAlt
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 44 x coordinate : 44
y coordinate : 273 y coordinate : 280
Width : 100 Width : 100
Height : 65 Height : 65
Effect : load Effect : load
@@ -691,7 +691,7 @@ Text tMRIcon
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 182 x coordinate : 182
y coordinate : 317 y coordinate : 324
Width : 40 Width : 40
Height : 34 Height : 34
Effect : load Effect : load
@@ -721,7 +721,7 @@ Text tMR
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 224 x coordinate : 224
y coordinate : 322 y coordinate : 329
Width : 61 Width : 61
Height : 20 Height : 20
Effect : load Effect : load
@@ -751,7 +751,7 @@ Text tNotifyHead
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 253 y coordinate : 257
Width : 320 Width : 320
Height : 58 Height : 58
Effect : load Effect : load
@@ -781,7 +781,7 @@ Text tNotifyText
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 311 y coordinate : 315
Width : 320 Width : 320
Height : 58 Height : 58
Effect : load Effect : load
@@ -811,7 +811,7 @@ Text tIcon1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 8 x coordinate : 8
y coordinate : 220 y coordinate : 227
Width : 33 Width : 33
Height : 30 Height : 30
Effect : load Effect : load
@@ -841,7 +841,7 @@ Text tIcon2
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 282 x coordinate : 282
y coordinate : 220 y coordinate : 227
Width : 33 Width : 33
Height : 30 Height : 30
Effect : load Effect : load
@@ -862,6 +862,36 @@ Text tIcon2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTimeAdd
Attributes
ID : 37
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 163
Width : 320
Height : 32
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -871,9 +901,9 @@ Picture p0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 1 y coordinate : 0
Width : 319 Width : 320
Height : 479 Height : 480
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -942,6 +972,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")
{ {
@@ -953,6 +986,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -1007,7 +1041,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -1016,6 +1050,22 @@ 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
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
@@ -1027,6 +1077,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1056,6 +1114,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -1098,6 +1157,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
{ {

View File

@@ -12,6 +12,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -32,6 +33,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -78,6 +80,12 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
Scope : local Scope : local
@@ -325,12 +333,32 @@ Button b9
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : 0 Text :
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" // event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10 Button b10
Attributes Attributes
@@ -339,12 +367,12 @@ Button b10
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : CLR Text : 0
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt="" tCode.txt=tCode.txt+"0"
Button arm1 Button arm1
Attributes Attributes
@@ -466,6 +494,20 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : CLR
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -642,6 +684,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -656,6 +699,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -667,6 +711,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -683,7 +736,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

@@ -12,6 +12,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
@@ -2315,6 +2316,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

@@ -12,7 +12,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1
@@ -846,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

@@ -12,6 +12,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -635,7 +636,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

@@ -12,6 +12,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -29,12 +30,14 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand 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
@@ -90,6 +93,12 @@ Variable (string) type2
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
Attributes Attributes
Scope : local Scope : local
@@ -147,15 +156,6 @@ Picture p0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
QR Code qr0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
Scope : local Scope : local
@@ -350,6 +350,20 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Hotspot m1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Timer tmSerial Timer tmSerial
Attributes Attributes
Scope : local Scope : local
@@ -442,7 +456,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -565,6 +579,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
@@ -581,7 +605,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

@@ -12,6 +12,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -20,9 +21,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -173,33 +171,6 @@ XFloat xTempDest2
Associated Keyboard : none Associated Keyboard : none
Value : 0 Value : 0
XFloat xTempMin2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempMax2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempStep2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
Scope : local Scope : local
@@ -599,10 +570,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -635,10 +609,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -663,16 +640,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -699,16 +679,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1169,6 +1152,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

@@ -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

@@ -12,6 +12,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
@@ -560,6 +561,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

@@ -12,6 +12,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0
@@ -310,6 +311,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

@@ -12,15 +12,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -49,6 +53,24 @@ Variable (string) entn
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
Scope : local Scope : local
@@ -79,36 +101,6 @@ Text tSend
Text : newtxt Text : newtxt
Max. Text Size : 100 Max. Text Size : 100
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tInstruction
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tId
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tPosHeading Text tPosHeading
Attributes Attributes
Scope : local Scope : local
@@ -129,6 +121,16 @@ Text tInfo1
Text : Text :
Max. Text Size : 40 Max. Text Size : 40
Text tTiltHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 15
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -165,6 +167,35 @@ Slider hPosition
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Slider hTilt
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0 Button b0
Attributes Attributes
Scope : local Scope : local
@@ -265,6 +296,81 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
Scope : local Scope : local
@@ -399,12 +505,57 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
// 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

@@ -86,7 +86,7 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Text tMainIcon Text tMainIcon
Attributes Attributes
@@ -328,6 +328,16 @@ Text tIcon2
Text : Text :
Max. Text Size : 5 Max. Text Size : 5
Text tTimeAdd
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -397,6 +407,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")
{ {
@@ -408,6 +421,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -462,7 +476,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -471,6 +485,22 @@ 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
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
@@ -482,6 +512,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -511,6 +549,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -553,6 +592,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
{ {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
HMI/fonts/charout.txt Normal file
View File

@@ -0,0 +1 @@
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃDŽDždžLJLjljNJNjnjǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǢǣǤǥǦǧǨǩǪǫǬǭǮǯǰDZDzdzǴǵǶǷǸǹǺǻǼǽǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏͰͱͲͳʹ͵Ͷͷ͸͹ͺͻͼͽ;Ϳ΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҅҆҇҈҉ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿ԰ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖ՗՘ՙ՚՛՜՝՞՟ՠաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևֈ։֊֋֌֍֎֏֐ְֱֲֳִֵֶַָֹֺֻּֽ֑֖֛֢֣֤֥֦֧֪֚֭֮֒֓֔֕֗֘֙֜֝֞֟֠֡֨֩֫֬֯־ֿ׀ׁׂ׃ׅׄ׆ׇ׈׉׊׋׌׍׎׏אבגדהוזחטיךכלםמןנסעףפץצקרשת׫׬׭׮ׯװױײ׳״׵׶׷׸׹׺׻׼׽׾׿؀؁؂؃؄؅؆؇؈؉؊؋،؍؎؏ؘؙؚؐؑؒؓؔؕؖؗ؛؜؝؞؟ؠءآأؤإئابةتثجحخدذرزسشصضطظعغػؼؽؾؿـفقكلمنهوىيًٌٍَُِّْٕٖٜٟٓٔٗ٘ٙٚٛٝٞ٠١٢٣٤٥٦٧٨٩٪٫٬٭ٮٯٰٱٲٳٴٵٶٷٸٹٺٻټٽپٿڀځڂڃڄڅچڇڈډڊڋڌڍڎڏڐڑڒړڔڕږڗژڙښڛڜڝڞڟڠڡڢڣڤڥڦڧڨکڪګڬڭڮگڰڱڲڳڴڵڶڷڸڹںڻڼڽھڿۀہۂۃۄۅۆۇۈۉۊۋیۍێۏېۑےۓ۔ەۖۗۘۙۚۛۜ۝۞ۣ۟۠ۡۢۤۥۦۧۨ۩۪ۭ۫۬ۮۯ۰۱۲۳۴۵۶۷۸۹ۺۻۼ۽۾ۿ฀กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู฻฼฽฾฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛๜๝๞๟๠๡๢๣๤๥๦๧๨๩๪๫๬๭๮๯๰๱๲๳๴๵๶๷๸๹๺๻๼๽๾๿ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ჆Ⴧ჈჉჊჋჌Ⴭ჎჏აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶჷჸჹჺ჻ჼჽჾჿḀḁḂḃḄḅḆḇḈḉḊḋḌḍḎḏḐḑḒḓḔḕḖḗḘḙḚḛḜḝḞḟḠḡḢḣḤḥḦḧḨḩḪḫḬḭḮḯḰḱḲḳḴḵḶḷḸḹḺḻḼḽḾḿṀṁṂṃṄṅṆṇṈṉṊṋṌṍṎṏṐṑṒṓṔṕṖṗṘṙṚṛṜṝṞṟṠṡṢṣṤṥṦṧṨṩṪṫṬṭṮṯṰṱṲṳṴṵṶṷṸṹṺṻṼṽṾṿẀẁẂẃẄẅẆẇẈẉẊẋẌẍẎẏẐẑẒẓẔẕẖẗẘẙẚẛẜẝẞẟẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặẸẹẺẻẼẽẾếỀềỂểỄễỆệỈỉỊịỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợỤụỦủỨứỪừỬửỮữỰựỲỳỴỵỶỷỸỹỺỻỼỽỾỿ卧房室客厅洗手间阳台厨灯壁镜前后左右东南西北中空调风扇橱柜控温湿度网关串夜落地阅读水泵一二三四五六七八九十百年月日周星期播放窗帘门开高低家在电暖气器摄像头扫人机组群冷热模式时分秒大小上下多少主书层制浴臥廳間陽廚燈鏡後東調風櫥櫃溫濕網關閱讀簾門開電氣攝頭掃機組熱時書層略闲定戒当色置辅离亮激义自位清行状过送按活条态警速码假除密锁解件运闭接连触发断异启常干润鎖離狀出目外斷態輔用運判閉碼助啟執轉閒 未乾潤全線量險確危發觸異安燥已偵無連測有正

323
HMI/fonts/gen-chars.py Normal file
View File

@@ -0,0 +1,323 @@
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 -> broken in powershell
unicode_ranges+="0590-05FF," #Hebrew -> broken in powershell
unicode_ranges+="0600-06FF," #Arabic -> broken in powershell
#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))
# picked chars from chinese
# simple
char_res_string += "卧房室客厅洗手间阳台厨灯壁镜前后左右东南西北中空调风扇橱柜控温湿度网关串夜落地阅读水泵一二三四五六七八九十百年月日周星期播放窗帘门开高低家在电暖气器摄像头扫人机组群冷热模式时分秒大小上下多少主书层制浴"
# trad
char_res_string += "臥廳間陽廚燈鏡後東調風櫥櫃溫濕網關閱讀簾門開電氣攝頭掃機組熱時書層"
# chars that were missing simple
char_res_string += "略闲定戒当色置辅离亮激义自位清行状过送按活条态警速码假除密锁解件运"
# binary sensors
char_res_string += "闭接连触发断异启常干润"
# chars mising trad
char_res_string += "鎖離狀出目外斷態輔用運判閉碼助啟執轉閒"
# binary sensors
char_res_string += " 未乾潤全線量險確危發觸異安燥已偵無連測有正"
# misc
char_res_string += ""
print("Out: ")
#print(char_res_string)
with open("charout.txt", "wb") as text_file:
text_file.write(char_res_string.encode('utf8'))
# check if translations.py is covered
#with open("test", 'r') as f: # open in readonly mode
# unique_chars = set(f.read())
# #unique_chars = json.dumps(json.load(f))
# len(unique_chars)
# print(len(unique_chars))
# #print(''.join(sorted(unique_chars)))
# for char in unique_chars:
# if char not in char_res_string:
# print(f"char {char} missing")
import os
import glob
import json
def lookup(path_frontend_file, path_backend_file, lookupstr):
if not (os.path.exists(path_frontend_file) and os.path.exists(path_backend_file)):
return "error_fnf"
with open(path_frontend_file, 'r') as f, open(path_backend_file, 'r') as b:
translations = { "frontend": json.load(f), "backend": json.load(b)}
res = translations
for k in lookupstr.split("."):
if k in res:
res = res[k]
if type(res) is not str:
res = "error_tnf"
return res
used_items = [
"frontend.ui.card.button.press",
"frontend.ui.card.button.press",
"frontend.ui.card.scene.activate",
"frontend.ui.card.script.run",
"frontend.ui.card.lock.lock",
"frontend.ui.card.lock.unlock",
"frontend.ui.card.climate.currently",
"frontend.ui.panel.config.devices.entities.state",
"frontend.ui.card.climate.operation",
"frontend.ui.card.light.brightness",
"frontend.ui.card.light.color_temperature",
"frontend.ui.card.light.position",
"frontend.state_attributes.climate.hvac_action.cooling"
"frontend.state_attributes.climate.hvac_action.drying"
"frontend.state_attributes.climate.hvac_action.fan"
"frontend.state_attributes.climate.hvac_action.heating"
"frontend.state_attributes.climate.hvac_action.idle"
"frontend.state_attributes.climate.hvac_action.off"
"backend.component.climate.state._.off"
"backend.component.climate.state._.heat"
"backend.component.climate.state._.cool"
"backend.component.climate.state._.heat_cool"
"backend.component.climate.state._.auto"
"backend.component.climate.state._.dry"
"backend.component.climate.state._.fan_only"
"backend.component.climate.state._.heat"
"frontend.ui.card.alarm_control_panel.arm_home"
"frontend.ui.card.alarm_control_panel.arm_away"
"frontend.ui.card.alarm_control_panel.arm_night"
"frontend.ui.card.alarm_control_panel.arm_vacation"
"frontend.ui.card.alarm_control_panel.disarm"
"backend.component.binary_sensor.state._.off",
"backend.component.binary_sensor.state.battery.off",
"backend.component.binary_sensor.state.cold.off",
"backend.component.binary_sensor.state.connectivity.off",
"backend.component.binary_sensor.state.door.off",
"backend.component.binary_sensor.state.garage_door.off",
"backend.component.binary_sensor.state.gas.off",
"backend.component.binary_sensor.state.heat.off",
"backend.component.binary_sensor.state.lock.off",
"backend.component.binary_sensor.state.moisture.off",
"backend.component.binary_sensor.state.motion.off",
"backend.component.binary_sensor.state.occupancy.off",
"backend.component.binary_sensor.state.opening.off",
"backend.component.binary_sensor.state.presence.off",
"backend.component.binary_sensor.state.problem.off",
"backend.component.binary_sensor.state.safety.off",
"backend.component.binary_sensor.state.smoke.off",
"backend.component.binary_sensor.state.sound.off",
"backend.component.binary_sensor.state.vibration.off",
"backend.component.binary_sensor.state.window.off",
"backend.component.binary_sensor.state._.on",
"backend.component.binary_sensor.state.battery.on",
"backend.component.binary_sensor.state.cold.on",
"backend.component.binary_sensor.state.connectivity.on",
"backend.component.binary_sensor.state.door.on",
"backend.component.binary_sensor.state.garage_door.on",
"backend.component.binary_sensor.state.gas.on",
"backend.component.binary_sensor.state.heat.on",
"backend.component.binary_sensor.state.lock.on",
"backend.component.binary_sensor.state.moisture.on",
"backend.component.binary_sensor.state.motion.on",
"backend.component.binary_sensor.state.occupancy.on",
"backend.component.binary_sensor.state.opening.on",
"backend.component.binary_sensor.state.presence.on",
"backend.component.binary_sensor.state.problem.on",
"backend.component.binary_sensor.state.safety.on",
"backend.component.binary_sensor.state.smoke.on",
"backend.component.binary_sensor.state.sound.on",
"backend.component.binary_sensor.state.vibration.on",
"backend.component.binary_sensor.state.window.on",
]
for filename in glob.glob("../../apps/nspanel-lovelace-ui/luibackend/translations/frontend/*.json"):
if "te.json" in filename:
continue
if "ko.json" in filename:
continue
if "ja.json" in filename:
continue
# if "hi.json" in filename:
# continue
if "vi.json" in filename:
continue
if "ta.json" in filename:
continue
chars_used = ""
path_frontend_file = filename
path_backend_file = filename.replace("frontend", "backend")
for i in used_items:
chars_used += lookup(path_frontend_file, path_backend_file, i)
chars_used_set = set(chars_used)
summary = ""
for char in chars_used_set:
if char not in char_res_string:
print(f"char {char} from {filename} missing")
summary += char
if "" != summary:
print(f"Summary: {summary}")

View File

@@ -20,6 +20,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -40,6 +41,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -93,6 +95,13 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
ID : 39
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
ID : 2 ID : 2
@@ -711,7 +720,65 @@ Button b9
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 : 25
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
// event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 118
y coordinate : 266 y coordinate : 266
Width : 75 Width : 75
Height : 50 Height : 50
@@ -741,44 +808,6 @@ Button b9
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" tCode.txt=tCode.txt+"0"
Button b10
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 209
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 2
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Button arm1 Button arm1
Attributes Attributes
ID : 24 ID : 24
@@ -995,6 +1024,44 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
ID : 38
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 209
y coordinate : 266
Width : 75
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : border
Border Color : 6371
Border Width : 2
Font ID : 2
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 1374
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : CLR
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
ID : 35 ID : 35
@@ -1199,6 +1266,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -1213,6 +1281,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -1224,6 +1293,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -20,6 +20,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0

View File

@@ -20,7 +20,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1

View File

@@ -20,6 +20,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -56,6 +57,13 @@ Variable (int32) vaSpeakerPos
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) vaMenu
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 50
Text tSend Text tSend
Attributes Attributes
ID : 2 ID : 2
@@ -443,6 +451,24 @@ Text tIcon
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Events
Touch Release Event
if(vaMenu.txt!="")
{
tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text t1 Text t1
Attributes Attributes
ID : 22 ID : 22
@@ -1068,6 +1094,8 @@ Timer tmSerial
vis t5,1 vis t5,1
covx tTmp.txt,t5.pco,0,0 covx tTmp.txt,t5.pco,0,0
} }
//tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",12
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -20,6 +20,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -37,6 +38,8 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -82,35 +85,42 @@ Variable (string) tInstruction
Variable (string) entn1 Variable (string) entn1
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) entn2 Variable (string) entn2
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) type1 Variable (string) type1
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) type2 Variable (string) type2
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
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
@@ -140,7 +150,7 @@ Text tEntity1
Text tIcon1 Text tIcon1
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
@@ -170,7 +180,7 @@ Text tIcon1
Text tEntity2 Text tEntity2
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
@@ -200,7 +210,7 @@ Text tEntity2
Text tIcon2 Text tIcon2
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
@@ -230,7 +240,7 @@ Text tIcon2
Text tHeading Text tHeading
Attributes Attributes
ID : 25 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -275,25 +285,6 @@ Picture p0
Effect Time : 300 Effect Time : 300
Picture ID : 0 Picture ID : 0
QR Code qr0
Attributes
ID : 17
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 13
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Logo overlay : no
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
ID : 3 ID : 3
@@ -397,7 +388,7 @@ Button bPrev
Button bText1 Button bText1
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
@@ -444,7 +435,7 @@ Button bText1
Button bText2 Button bText2
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
@@ -536,7 +527,7 @@ Dual-state Button btOnOff1
Dual-state Button btOnOff2 Dual-state Button btOnOff2
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
@@ -639,6 +630,38 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
ID : 29
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 13
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Hotspot m1
Attributes
ID : 30
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 128
y coordinate : 91
Width : 200
Height : 200
Effect : load
Effect Priority : 0
Effect Time : 300
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 5 ID : 5
@@ -732,7 +755,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -855,6 +878,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -20,6 +20,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -28,9 +29,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -124,28 +122,28 @@ Variable (string) va7
Variable (string) tInstruction Variable (string) tInstruction
Attributes Attributes
ID : 46 ID : 43
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 47 ID : 44
Scope : local Scope : local
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) tTmp Variable (string) tTmp
Attributes Attributes
ID : 48 ID : 45
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) tSend Variable (string) tSend
Attributes Attributes
ID : 49 ID : 46
Scope : local Scope : local
Text : Text :
Max. Text Size: 100 Max. Text Size: 100
@@ -300,99 +298,9 @@ XFloat xTempDest2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
XFloat xTempMin2
Attributes
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 231
y coordinate : 69
Width : 50
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempMax2
Attributes
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 231
y coordinate : 91
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempStep2
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 232
y coordinate : 179
Width : 45
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Value : 0
Significant digits left : 0
Significant digits right : 1
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
ID : 52 ID : 49
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -602,7 +510,7 @@ Text tCF2
Text tALbl Text tALbl
Attributes Attributes
ID : 50 ID : 47
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -632,7 +540,7 @@ Text tALbl
Text tCF Text tCF
Attributes Attributes
ID : 54 ID : 51
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -662,7 +570,7 @@ Text tCF
Text tCurTemp Text tCurTemp
Attributes Attributes
ID : 55 ID : 52
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1242,10 +1150,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1300,10 +1211,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -1338,7 +1252,7 @@ Dual-state Button bUp2
Back. Picture ID (Pressed) : 65535 Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 6371 Back. Color (Pressed) : 6371
Font Color (Unpressed) : 50712 Font Color (Unpressed) : 50712
Font Color (Pressed) : 64512 Font Color (Pressed) : 50712
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
State : unpressed State : unpressed
@@ -1350,16 +1264,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1408,16 +1325,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -1434,7 +1354,7 @@ Dual-state Button bDown2
Dual-state Button btUp Dual-state Button btUp
Attributes Attributes
ID : 51 ID : 48
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1492,7 +1412,7 @@ Dual-state Button btUp
Dual-state Button btDown Dual-state Button btDown
Attributes Attributes
ID : 53 ID : 50
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0

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
cardQR
32 Component(s)
374 Line(s) of event code
218 Unique line(s) of event code
popupNotify popupNotify
17 Component(s) 17 Component(s)
203 Line(s) of event code 204 Line(s) of event code
127 Unique line(s) of event code 128 Unique line(s) of event code
cardAlarm
38 Component(s)
362 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 popupLight
27 Component(s) 27 Component(s)
351 Line(s) of event code 352 Line(s) of event code
190 Unique line(s) of event code 191 Unique line(s) of event code
cardMedia cardMedia
33 Component(s) 34 Component(s)
348 Line(s) of event code 363 Line(s) of event code
182 Unique line(s) of event code 195 Unique line(s) of event code
screensaver
37 Component(s)
307 Line(s) of event code
245 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
157 Line(s) of event code 157 Line(s) of event code
117 Unique line(s) of event code 117 Unique line(s) of event code
popupShutter
25 Component(s)
330 Line(s) of event code
162 Unique line(s) of event code
cardGrid
42 Component(s)
439 Line(s) of event code
259 Unique line(s) of event code
cardAlarm
40 Component(s)
392 Line(s) of event code
239 Unique line(s) of event code
cardThermo cardThermo
56 Component(s) 53 Component(s)
545 Line(s) of event code 555 Line(s) of event code
294 Unique line(s) of event code 292 Unique line(s) of event code
screensaver
38 Component(s)
319 Line(s) of event code
253 Unique line(s) of event code
cardEntities cardEntities
65 Component(s) 65 Component(s)
1132 Line(s) of event code 1133 Line(s) of event code
495 Unique line(s) of event code 496 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)
404 Component(s) 412 Component(s)
4476 Line(s) of event code 4643 Line(s) of event code
1180 Unique line(s) of event code 1233 Unique line(s) of event code

View File

@@ -20,6 +20,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id

View File

@@ -20,6 +20,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0

View File

@@ -20,15 +20,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -47,18 +51,39 @@ Page popupShutter
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) entn Variable (string) entn
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
ID : 17
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
ID : 2 ID : 2
@@ -68,7 +93,7 @@ Text tEntity
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 65 x coordinate : 65
y coordinate : 94 y coordinate : 48
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -98,7 +123,7 @@ Text tIcon1
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 12 x coordinate : 12
y coordinate : 108 y coordinate : 63
Width : 45 Width : 45
Height : 30 Height : 30
Effect : load Effect : load
@@ -149,106 +174,16 @@ Text tSend
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTmp
Attributes
ID : 6
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 277
Width : 34
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tId
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 290
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 65535
Font Color : 0
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tPosHeading Text tPosHeading
Attributes Attributes
ID : 17 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 : 64 x coordinate : 64
y coordinate : 164 y coordinate : 122
Width : 100 Width : 100
Height : 30 Height : 30
Effect : load Effect : load
@@ -260,7 +195,7 @@ Text tPosHeading
Font ID : 0 Font ID : 0
Back. Color : 6371 Back. Color : 6371
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : left
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : Position Text : Position
@@ -271,14 +206,14 @@ Text tPosHeading
Text tInfo1 Text tInfo1
Attributes Attributes
ID : 19 ID : 16
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 : 65 x coordinate : 65
y coordinate : 122 y coordinate : 76
Width : 195 Width : 195
Height : 30 Height : 30
Effect : load Effect : load
@@ -299,6 +234,36 @@ Text tInfo1
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTiltHeading
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 64
y coordinate : 231
Width : 100
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 15
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -318,14 +283,58 @@ Picture p0
Slider hPosition Slider hPosition
Attributes Attributes
ID : 16 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 : 65 x coordinate : 64
y coordinate : 194 y coordinate : 152
Width : 335
Height : 43
Effect : load
Effect Priority : 0
Effect Time : 300
Direction : horizontal
Fill : image
Cursor width : auto
Cursor height : 255
Back. Picture ID : 5
Slided Back. Picture ID : 4
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Slider hTilt
Attributes
ID : 21
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 64
y coordinate : 261
Width : 335 Width : 335
Height : 43 Height : 43
Effect : load Effect : load
@@ -409,14 +418,14 @@ Button b0
Button bDown1 Button bDown1
Attributes Attributes
ID : 13 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 : 393 x coordinate : 386
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -456,14 +465,14 @@ Button bDown1
Button bStop1 Button bStop1
Attributes Attributes
ID : 14 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 : 341 x coordinate : 334
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -503,14 +512,14 @@ Button bStop1
Button bUp1 Button bUp1
Attributes Attributes
ID : 15 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 : 289 x coordinate : 282
y coordinate : 96 y coordinate : 95
Width : 50 Width : 50
Height : 50 Height : 50
Effect : load Effect : load
@@ -548,9 +557,150 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
ID : 22
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 282
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
ID : 23
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 334
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
ID : 24
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 386
y coordinate : 205
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 65535
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : 
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes
@@ -570,7 +720,7 @@ Timer tmSleep
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -684,6 +834,47 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -784,7 +975,7 @@ Timer tmSerial
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 7 ID : 6
Scope: local Scope: local
Value: 0 Value: 0

View File

@@ -91,9 +91,9 @@ Text tTime
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 37 x coordinate : 37
y coordinate : 0 y coordinate : 18
Width : 376 Width : 376
Height : 154 Height : 112
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -121,9 +121,9 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 0
y coordinate : 154 y coordinate : 162
Width : 450 Width : 450
Height : 38 Height : 32
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
Effect Time : 300 Effect Time : 300
@@ -134,10 +134,10 @@ Text tDate
Back. Color : 0 Back. Color : 0
Font Color : 65535 Font Color : 65535
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : bottom
Input Type : character Input Type : character
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
@@ -862,6 +862,36 @@ Text tIcon2
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0
Text tTimeAdd
Attributes
ID : 37
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 130
Width : 450
Height : 32
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0 Picture p0
Attributes Attributes
ID : 1 ID : 1
@@ -956,6 +986,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -1010,7 +1041,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -1046,6 +1077,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -1075,6 +1114,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -1117,6 +1157,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
{ {

View File

@@ -12,6 +12,7 @@ Page cardAlarm
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -32,6 +33,7 @@ Page cardAlarm
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
vis bPrev,0 vis bPrev,0
vis bNext,0 vis bNext,0
@@ -78,6 +80,12 @@ Variable (string) va4
Text : Text :
Max. Text Size: 20 Max. Text Size: 20
Variable (string) vaAddBtn
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tTmp Text tTmp
Attributes Attributes
Scope : local Scope : local
@@ -325,12 +333,32 @@ Button b9
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : 0 Text :
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt=tCode.txt+"0" // event,buttonPress2,entn,arm1,tCode
tSend.txt="event,buttonPress2,"
if(vaAddBtn.txt!="")
{
tSend.txt+=vaAddBtn.txt+",button"
}else
{
tSend.txt+=entn.txt+",opnSensorNotify"
}
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
tCode.txt=""
Button b10 Button b10
Attributes Attributes
@@ -339,12 +367,12 @@ Button b10
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
State : unpressed State : unpressed
Text : CLR Text : 0
Max. Text Size : 10 Max. Text Size : 10
Events Events
Touch Press Event Touch Press Event
tCode.txt="" tCode.txt=tCode.txt+"0"
Button arm1 Button arm1
Attributes Attributes
@@ -466,6 +494,20 @@ Button arm4
prints crcval,2 prints crcval,2
tCode.txt="" tCode.txt=""
Button b11
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : CLR
Max. Text Size : 10
Events
Touch Press Event
tCode.txt=""
Hotspot mSwipeNext Hotspot mSwipeNext
Attributes Attributes
Scope : local Scope : local
@@ -642,6 +684,7 @@ Timer tmSerial
vis b8,1 vis b8,1
vis b9,1 vis b9,1
vis b10,1 vis b10,1
vis b11,1
vis tCode,1 vis tCode,1
}else }else
{ {
@@ -656,6 +699,7 @@ Timer tmSerial
vis b8,0 vis b8,0
vis b9,0 vis b9,0
vis b10,0 vis b10,0
vis b11,0
vis tCode,0 vis tCode,0
} }
//flashing status //flashing status
@@ -667,6 +711,15 @@ Timer tmSerial
{ {
tmFlash.en=0 tmFlash.en=0
} }
// extra button
spstr strCommand.txt,b9.txt,"~",15
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -12,6 +12,7 @@ Page cardEntities
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//wup=cardEntities //wup=cardEntities
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0

View File

@@ -12,7 +12,7 @@ Page cardGrid
Events Events
Preinitialize Event Preinitialize Event
//wup=cardEntities dim=dimValueNormal
//remove background & activate reparse mode //remove background & activate reparse mode
vis p0,0 vis p0,0
recmod=1 recmod=1

View File

@@ -12,6 +12,7 @@ Page cardMedia
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -44,6 +45,12 @@ Variable (int32) vaSpeakerPos
Scope: local Scope: local
Value: 0 Value: 0
Variable (string) vaMenu
Attributes
Scope : local
Text :
Max. Text Size: 50
Text tSend Text tSend
Attributes Attributes
Scope : local Scope : local
@@ -211,6 +218,24 @@ Text tIcon
Text : Text :
Max. Text Size : 10 Max. Text Size : 10
Events
Touch Release Event
if(vaMenu.txt!="")
{
tSend.txt="event,buttonPress2,"+vaMenu.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
Text t1 Text t1
Attributes Attributes
Scope : local Scope : local
@@ -619,6 +644,8 @@ Timer tmSerial
vis t5,1 vis t5,1
covx tTmp.txt,t5.pco,0,0 covx tTmp.txt,t5.pco,0,0
} }
//tIconBtnEntityName
spstr strCommand.txt,vaMenu.txt,"~",12
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -12,6 +12,7 @@ Page cardQR
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -29,6 +30,8 @@ Page cardQR
vis tIcon2,0 vis tIcon2,0
vis tEntity2,0 vis tEntity2,0
vis bText2,0 vis bText2,0
tsw m0,0
tsw m1,0
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -90,6 +93,12 @@ Variable (string) type2
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) vaQR
Attributes
Scope : local
Text :
Max. Text Size: 80
Text tEntity1 Text tEntity1
Attributes Attributes
Scope : local Scope : local
@@ -147,15 +156,6 @@ Picture p0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
QR Code qr0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Text :
Max. Text Size : 100
Button bNext Button bNext
Attributes Attributes
Scope : local Scope : local
@@ -350,6 +350,20 @@ Hotspot mSwipePrev
Touch Press Event Touch Press Event
click bPrev,1 click bPrev,1
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Hotspot m1
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Timer tmSerial Timer tmSerial
Attributes Attributes
Scope : local Scope : local
@@ -442,7 +456,7 @@ Timer tmSerial
bNext.txt="" bNext.txt=""
} }
//text qrcode //text qrcode
spstr strCommand.txt,qr0.txt,"~",3 spstr strCommand.txt,vaQR.txt,"~",3
// get Type // get Type
spstr strCommand.txt,type1.txt,"~",4 spstr strCommand.txt,type1.txt,"~",4
// get internal name // get internal name
@@ -565,6 +579,16 @@ Timer tmSerial
// get Text (optional Value) // get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15 spstr strCommand.txt,bText2.txt,"~",15
} }
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

View File

@@ -12,6 +12,7 @@ Page cardThermo
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tInstruction,0 vis tInstruction,0
@@ -20,9 +21,6 @@ Page cardThermo
vis xTempMin1,0 vis xTempMin1,0
vis xTempMax1,0 vis xTempMax1,0
vis xTempStep1,0 vis xTempStep1,0
vis xTempMin2,0
vis xTempMax2,0
vis xTempStep2,0
//tEntity.txt=tHeading.txt //tEntity.txt=tHeading.txt
// disable all buttons // disable all buttons
vis bt0,0 vis bt0,0
@@ -173,33 +171,6 @@ XFloat xTempDest2
Associated Keyboard : none Associated Keyboard : none
Value : 0 Value : 0
XFloat xTempMin2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempMax2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempStep2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempDest XFloat xTempDest
Attributes Attributes
Scope : local Scope : local
@@ -599,10 +570,13 @@ Dual-state Button btUp1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -635,10 +609,13 @@ Dual-state Button btDown1
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdHigh," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0 covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,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
@@ -663,16 +640,19 @@ Dual-state Button bUp2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val<xTempMax2.val) if(xTempDest2.val<xTempMax1.val)
{ {
xTempDest2.val=xTempDest2.val+xTempStep2.val xTempDest2.val=xTempDest2.val+xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc
@@ -699,16 +679,19 @@ Dual-state Button bDown2
Events Events
Touch Press Event Touch Press Event
if(xTempDest2.val>xTempMin2.val) if(xTempDest2.val>xTempMin1.val)
{ {
xTempDest2.val=xTempDest2.val-xTempStep2.val xTempDest2.val=xTempDest2.val-xTempStep1.val
} }
// event,buttonPress2,entn,tempUpd,X // event,buttonPress2,entn,tempUpd,X
//craft command //craft command
tSend.txt="event,buttonPress2," tSend.txt="event,buttonPress2,"
tSend.txt+=entn.txt+"," tSend.txt+=entn.txt+","
tSend.txt+="tempUpdLow," tSend.txt+="tempUpdHighLow,"
//convert temperature //convert temperature
covx xTempDest1.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
tSend.txt+="|"
covx xTempDest2.val,tTmp.txt,0,0 covx xTempDest2.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt tSend.txt+=tTmp.txt
//send calc crc //send calc crc

View File

@@ -12,6 +12,7 @@ Page popupLight
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id

View File

@@ -12,6 +12,7 @@ Page popupNotify
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tTmp,0

View File

@@ -12,15 +12,19 @@ Page popupShutter
Events Events
Preinitialize Event Preinitialize Event
dim=dimValueNormal
//get entitiy name //get entitiy name
tEntity.txt=pageIcons.tTmp1.txt tEntity.txt=pageIcons.tTmp1.txt
//get entity id //get entity id
entn.txt=pageIcons.tTmp2.txt entn.txt=pageIcons.tTmp2.txt
vis p0,0 vis p0,0
vis tSend,0 vis tSend,0
vis tTmp,0 vis tPosHeading,0
vis tInstruction,0 vis hPosition,0
vis tId,0 vis hTilt,0
vis bTLeft,0
vis bTStop,0
vis bTRight,0
//page open event //page open event
// event,pageOpenDetail,typeOfPage,tEntityName // event,pageOpenDetail,typeOfPage,tEntityName
// craft command // craft command
@@ -49,6 +53,24 @@ Variable (string) entn
Text : Text :
Max. Text Size: 80 Max. Text Size: 80
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tId
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) tTmp
Attributes
Scope : local
Text :
Max. Text Size: 10
Text tEntity Text tEntity
Attributes Attributes
Scope : local Scope : local
@@ -79,36 +101,6 @@ Text tSend
Text : newtxt Text : newtxt
Max. Text Size : 100 Max. Text Size : 100
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tInstruction
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tId
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tPosHeading Text tPosHeading
Attributes Attributes
Scope : local Scope : local
@@ -129,6 +121,16 @@ Text tInfo1
Text : Text :
Max. Text Size : 40 Max. Text Size : 40
Text tTiltHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 15
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -165,6 +167,35 @@ Slider hPosition
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Slider hTilt
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Lower range limit : 0
Events
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button b0 Button b0
Attributes Attributes
Scope : local Scope : local
@@ -265,6 +296,81 @@ Button bUp1
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
Button bTLeft
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTStop
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bTRight
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Timer tmSleep Timer tmSleep
Attributes Attributes
Scope : local Scope : local
@@ -399,6 +505,47 @@ Timer tmSerial
tsw bDown1,1 tsw bDown1,1
bDown1.pco=65535 bDown1.pco=65535
} }
// set tTiltHeading (localization)
spstr strCommand.txt,tTiltHeading.txt,"~",11
// set icon bUp
spstr strCommand.txt,tTmp.txt,"~",15
if(tTmp.txt=="disable")
{
tsw bTLeft,0
spstr strCommand.txt,bTLeft.txt,"~",12
bTLeft.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTLeft.txt,"~",12
tsw bTLeft,1
bTLeft.pco=65535
}
// set icon bStop
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt=="disable")
{
tsw bTStop,0
spstr strCommand.txt,bTStop.txt,"~",13
bTStop.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTStop.txt,"~",13
tsw bTStop,1
bTStop.pco=65535
}
// set icon bDown
spstr strCommand.txt,tTmp.txt,"~",9
if(tTmp.txt=="disable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,0
bTRight.pco=27501
}else if(tTmp.txt=="enable")
{
spstr strCommand.txt,bTRight.txt,"~",14
tsw bTRight,1
bTRight.pco=65535
}
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -86,7 +86,7 @@ Text tDate
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : Tuesday, 08. March 2022 Text : Tuesday, 08. March 2022
Max. Text Size : 35 Max. Text Size : 40
Text tMainIcon Text tMainIcon
Attributes Attributes
@@ -328,6 +328,16 @@ Text tIcon2
Text : Text :
Max. Text Size : 5 Max. Text Size : 5
Text tTimeAdd
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0 Picture p0
Attributes Attributes
Scope : local Scope : local
@@ -411,6 +421,7 @@ Timer tmSerial
{ {
vis tAMPM,0 vis tAMPM,0
} }
spstr strCommand.txt,tTimeAdd.txt,"~",2
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
@@ -465,7 +476,7 @@ Timer tmSerial
//alternative layout //alternative layout
//tMRIcon //tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15 spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!="") if(tMRIcon.txt!=""&&p0.w!=320)
{ {
//value for tMRIcon, activate alternative layout //value for tMRIcon, activate alternative layout
vis tMainIcon,0 vis tMainIcon,0
@@ -501,6 +512,14 @@ Timer tmSerial
spstr strCommand.txt,tIcon2.txt,"~",19 spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20 spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0 covx tTmp.txt,tIcon2.pco,0,0
if(tNotifyHead.txt!="")
{
ref tNotifyHead
}
if(tNotifyText.txt!="")
{
ref tNotifyText
}
} }
if(tInstruction.txt=="color") if(tInstruction.txt=="color")
{ {
@@ -530,6 +549,7 @@ Timer tmSerial
tForecast4.bco=tTime.bco tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco tF4Icon.bco=tTime.bco
tTimeAdd.bco=tTime.bco
spstr strCommand.txt,tTmp.txt,"~",2 spstr strCommand.txt,tTmp.txt,"~",2
covx tTmp.txt,tTime.pco,0,0 covx tTmp.txt,tTime.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",3 spstr strCommand.txt,tTmp.txt,"~",3
@@ -572,6 +592,8 @@ Timer tmSerial
covx tTmp.txt,tMRIcon.pco,0,0 covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21 spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0 covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tTimeAdd.pco,0,0
} }
if(tInstruction.txt=="notify") if(tInstruction.txt=="notify")
{ {

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -377,12 +377,15 @@ key | optional | type | default | description
`updateMode` | True | string | `auto-notify` | Update Mode; Possible values: "auto", "auto-notify", "manual" `updateMode` | True | string | `auto-notify` | Update Mode; Possible values: "auto", "auto-notify", "manual"
`model` | True | string | `eu` | Model; Possible values: "eu", "us-l" and "us-p" `model` | True | string | `eu` | Model; Possible values: "eu", "us-l" and "us-p"
`sleepTimeout` | True | integer | `20` | Timeout for the screen to enter screensaver, to disable screensaver use 0 `sleepTimeout` | True | integer | `20` | Timeout for the screen to enter screensaver, to disable screensaver use 0
`sleepBrightness` | True | integer/complex | `20` | Brightness for the screen to enter screensaver, see example below for complex/scheduled config. `sleepBrightness` | True | integer/complex | `20` | Brightness for the screen on the screensaver, see example below for complex/scheduled config.
`screenBrightness` | True | integer/complex | `100` | Brightness for the screen during usage, config format is the same as sleepBrightness.
`sleepTracking` | True | string | None | Forces screensaver brightness to 0 in case entity state is not_home or off, can be a group, person or device_tracker entity. `sleepTracking` | True | string | None | Forces screensaver brightness to 0 in case entity state is not_home or off, can be a group, person or device_tracker entity.
`sleepOverride` | True | complex | None | Allows overriding of the sleepBrightness if entity state is on, true or home. Overrides sleepBrightness but sleepTracking takes precedence.
`locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization. `locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization.
`dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields `dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
`timeFormat` | True | string | `%H:%M` | Time Format on screensaver. Substring after `?` is displayed in a seperate smaller textbox. Useful for 12h time format with AM/PM <pre>`"%I:%M ?%p"`</pre> `timeFormat` | True | string | `%H:%M` | Time Format on screensaver. Substring after `?` is displayed in a seperate smaller textbox. Useful for 12h time format with AM/PM <pre>`"%I:%M ?%p"`</pre>
`dateAdditonalTemplate` | True | string | `" - {{ states('sun.sun') }}"` | Addional Text dispayed after Date, can contain Homeassistant Templates `dateAdditonalTemplate` | True | string | `""` | Addional Text dispayed after Date, can contain a Homeassistant Template Example `" - {{ states('sun.sun') }}"`
`timeAdditonalTemplate` | True | string | `""` | Addional Text dispayed below Time, can contain a Homeassistant Template
`dateFormat` | True | string | `%A, %d. %B %Y` | date format used if babel is not installed `dateFormat` | True | string | `%A, %d. %B %Y` | date format used if babel is not installed
`cards` | False | complex | | configuration for cards that are displayed on panel `cards` | False | complex | | configuration for cards that are displayed on panel
`screensaver` | True | complex | | configuration for screensaver `screensaver` | True | complex | | configuration for screensaver
@@ -441,10 +444,45 @@ key | optional | type | default | description
key | optional | type | default | description key | optional | type | default | description
-- | -- | -- | -- | -- -- | -- | -- | -- | --
`type` | False | string | `None` | Used by navigate items `type` | False | string | `None` | Used by navigate items
`entities` | False | complex | `None` | contains entities of the card, applys only to cardEntities and cardGrid `entities` | False | complex | `None` | contains entities of the card, only valid on cardEntities and cardGrid and cardQR
`title` | True | string | `None` | Title of the Page `title` | True | string | `None` | Title of the Page
`entity` | False | string | `None` | contains the entity of the current card, valid for cardThermo, cardAlarm and cardMedia `entity` | False | string | `None` | contains the entity of the current card, valid for cardThermo, cardAlarm and cardMedia
`key` | True | string | `None` | Used by navigate items `key` | True | string | `None` | Used by navigate items
`mediaControl` | True | string | `None` | Only valid on cardMedia, contains the action executed on pressing the top left media icon. (useful to navigate to a hidden card or start a script)
`alarmControl` | True | complex | `None` | Only valid on cardAlarm, contains the action executed on pressing the left bottom icon, by default this button is used to show a list of open sensors on a failed attempt to arm.
#### Possible configuration values for entities key
key | optional | type | default | description
-- | -- | -- | -- | --
`entity` | False | string | `None` | name of ha entity
`name` | True | string | `None` | Used to override names
`icon` | True | string | `None` | Used to override icons
`color` | True | array | `None` | Overwrite color of entity `color: [255, 0, 0]`
`state` | True | string | `None` | Only displayed if Entity state is equal to this value
`state_not` | True | string | `None` | Only displayed if Entity state is unequal to this value
`status` | True | string | `None` | Only valid for navigate items, adds a entity to track state for the icon
##### Override Icons or Names
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.
```yaml
entities:
- entity: light.test_item
name: NameOverride
icon: mdi:lightbulb
```
It is also possible to configure different icon overwrites per state:
```yaml
icon:
"on": mdi:lightbulb
"off": mdi:lightbulb
```
#### Possible configuration values for screensaver config #### Possible configuration values for screensaver config
@@ -536,27 +574,23 @@ It is possible to schedule a brightness change for the screen at specific times.
value: 0 value: 0
``` ```
`sleepTracking` overrides this setting and sets the brightness to 0 if the state of the configured Home Assistant entity is `off` or `not_home`. You may also use a [Home Assistant group](https://www.home-assistant.io/integrations/group) to track multiple entities.
#### Override Icons or Names `sleepOverride` overrides sleepBrightness but does not take precedence over sleepTracking. This is useful if, for example, you want your NSPanel to be brighter than usual if your light is on or if you want to override a panel dimming if you are in the room.
To overwrite Icons or Names of entities you can configure an icon and/or name in your configuration, please see the following example. The following example configuration does nothing during the day but at night, if the bedroom light is on the NSPanel brightness will be 20 instead of 0.
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: sleepBrightness:
- entity: light.test_item - time: "sunrise"
name: NameOverride value: 20
icon: mdi:lightbulb - time: "sunset"
value: 0
sleepOverride:
entity: light.bedroomlight
brightness: 20
``` ```
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` Also it is possible to configure a text or a character by using "text:" as a prefix instead of an icon. `icon: text:X`
@@ -761,12 +795,12 @@ Click download.
2. Restart AppDaemon 2. Restart AppDaemon
3. Flash current Development Firmware in Tasmota Console. 3. Flash current Development Firmware in Tasmota Console. DO NOT USE THIS URL (only if you are on main/dev)
`FlashNextion http://nspanel.pky.eu/lui.tft` `FlashNextion http://nspanel.pky.eu/lui.tft` DO NOT USE THIS URL (only if you are on main/dev)
Development happens in the EU version, so it is possible that the US Version isn't up to date with the current development version of the EU firmware, the lastet US versions are still downloadable with the following links: Development happens in the EU version, so it is possible that the US Version isn't up to date with the current development version of the EU firmware, the lastet US versions are still downloadable with the following links:
`FlashNextion http://nspanel.pky.eu/lui-us-l.tft` `FlashNextion http://nspanel.pky.eu/lui-us-l.tft` DO NOT USE THIS URL (only if you are on main/dev)
`FlashNextion http://nspanel.pky.eu/lui-us-p.tft` `FlashNextion http://nspanel.pky.eu/lui-us-p.tft` DO NOT USE THIS URL (only if you are on main/dev)

View File

@@ -3,12 +3,14 @@ class Entity(object):
if type(entity_input_config) is not dict: if type(entity_input_config) is not dict:
#self._ha_api.log("Config error, not a dict check your entity configs") #self._ha_api.log("Config error, not a dict check your entity configs")
self.entityId = "error" self.entityId = "error"
self.nameOverride = None
self.iconOverride = None
else: else:
self.entityId = entity_input_config.get("entity", "unknown") self.entityId = entity_input_config.get("entity", "unknown")
self.nameOverride = entity_input_config.get("name") self.nameOverride = entity_input_config.get("name")
self.iconOverride = entity_input_config.get("icon") self.iconOverride = entity_input_config.get("icon")
self.colorOverride = entity_input_config.get("color")
self.status = entity_input_config.get("status")
self.condState = entity_input_config.get("state")
self.condStateNot = entity_input_config.get("state_not")
class Card(object): class Card(object):
def __init__(self, card_input_config, pos=None): def __init__(self, card_input_config, pos=None):
@@ -32,11 +34,16 @@ class Card(object):
entityIds = [] entityIds = []
if self.entity is not None: if self.entity is not None:
entityIds.append(self.entity.entityId) entityIds.append(self.entity.entityId)
if self.entity.status is not None:
entityIds.append(self.entity.status)
else: else:
for e in self.entities: for e in self.entities:
entityIds.append(e.entityId) entityIds.append(e.entityId)
if e.status is not None:
entityIds.append(e.status)
# additional keys to check # additional keys to check
add_ent_keys = ['weatherOverrideForecast1', 'weatherOverrideForecast2', 'weatherOverrideForecast3', 'weatherOverrideForecast4', 'statusIcon1', 'statusIcon2'] add_ent_keys = ['weatherOverrideForecast1', 'weatherOverrideForecast2', 'weatherOverrideForecast3', 'weatherOverrideForecast4', 'statusIcon1', 'statusIcon2', 'alarmControl']
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:
@@ -67,11 +74,14 @@ class LuiBackendConfig(object):
'model': "eu", 'model': "eu",
'sleepTimeout': 20, 'sleepTimeout': 20,
'sleepBrightness': 20, 'sleepBrightness': 20,
'screenBrightness': 100,
'sleepTracking': None, 'sleepTracking': None,
'sleepOverride': None,
'locale': "en_US", 'locale': "en_US",
'timeFormat': "%H:%M", 'timeFormat': "%H:%M",
'dateFormatBabel': "full", 'dateFormatBabel': "full",
'dateAdditonalTemplate': "", 'dateAdditonalTemplate': "",
'timeAdditonalTemplate': "",
'dateFormat': "%A, %d. %B %Y", 'dateFormat': "%A, %d. %B %Y",
'cards': [{ 'cards': [{
'type': 'cardEntities', 'type': 'cardEntities',

View File

@@ -30,23 +30,35 @@ class LuiController(object):
# register callbacks # register callbacks
self.register_callbacks() self.register_callbacks()
# calculate current brightness
self.current_screensaver_brightness = self.calc_current_brightness(self._config.get("sleepBrightness"))
self.current_screen_brightness = self.calc_current_brightness(self._config.get("screenBrightness"))
# register callbacks for each time # register callbacks for each time
if type(self._config.get("sleepBrightness")) == list: if type(self._config.get("sleepBrightness")) == list:
for index, timeset in enumerate(self._config.get("sleepBrightness")): for index, timeset in enumerate(self._config.get("sleepBrightness")):
self._ha_api.run_daily(self.update_screensaver_brightness, timeset["time"], value=timeset["value"]) self._ha_api.run_daily(self.update_screensaver_brightness, timeset["time"], ssbr=timeset["value"], sbr=self.current_screen_brightness)
# calculate current brightness
self.current_screensaver_brightness = self.calc_current_screensaver_brightness()
# call update_screensaver_brightness on changes of entity configured in brightnessScreensaverTracking # call update_screensaver_brightness on changes of entity configured in sleepTracking
bst = self._config.get("sleepTracking") bst = self._config.get("sleepTracking")
if bst is not None and self._ha_api.entity_exists(bst): if bst is not None and self._ha_api.entity_exists(bst):
self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=bst) self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=bst)
# register callback for state changes on tracked value # call update_screensaver_brightness on entity configured in sleepOverride
sleepOverride = self._config.get("sleepOverride")
if sleepOverride is not None and type(sleepOverride) is dict and sleepOverride["entity"] is not None and sleepOverride["brightness"] is not None and self._ha_api.entity_exists(sleepOverride["entity"]):
self._ha_api.log(f"Configuring Sleep Override. Config is {sleepOverride}")
self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=sleepOverride["entity"])
# register callback for state changes on tracked value (for input_number) - sleepBrightness
sleep_brightness_config = self._config.get("sleepBrightness") sleep_brightness_config = self._config.get("sleepBrightness")
if type(sleep_brightness_config) == str and self._ha_api.entity_exists(sleep_brightness_config): if type(sleep_brightness_config) == str and self._ha_api.entity_exists(sleep_brightness_config):
self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=sleep_brightness_config) self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=sleep_brightness_config)
# register callback for state changes on tracked value (for input_number) - screenBrightness
screen_brightness_config = self._config.get("screenBrightness")
if type(screen_brightness_config) == str and self._ha_api.entity_exists(screen_brightness_config):
self._ha_api.listen_state(self.update_screensaver_brightness_state_callback, entity_id=screen_brightness_config)
def startup(self): def startup(self):
self._ha_api.log(f"Startup Event") self._ha_api.log(f"Startup Event")
@@ -59,7 +71,7 @@ class LuiController(object):
self._send_mqtt_msg(f"timeout~{timeout}") self._send_mqtt_msg(f"timeout~{timeout}")
# set current screensaver brightness # set current screensaver brightness
self.update_screensaver_brightness(kwargs={"value": self.current_screensaver_brightness}) self.update_screensaver_brightness(kwargs={"ssbr": self.current_screensaver_brightness, "sbr": self.current_screen_brightness})
# send panel to screensaver # send panel to screensaver
self._pages_gen.render_card(self._current_card) self._pages_gen.render_card(self._current_card)
@@ -67,22 +79,43 @@ class LuiController(object):
def update_screensaver_brightness_state_callback(self, entity, attribute, old, new, kwargs): def update_screensaver_brightness_state_callback(self, entity, attribute, old, new, kwargs):
if type(self._config.get("sleepBrightness")) == str: if type(self._config.get("sleepBrightness")) == str:
self.current_screensaver_brightness = self.calc_current_screensaver_brightness() self.current_screensaver_brightness = self.calc_current_brightness(self._config.get("sleepBrightness"))
self.update_screensaver_brightness(kwargs={"value": self.current_screensaver_brightness}) self.current_screen_brightness = self.calc_current_brightness(self._config.get("screenBrightness"))
self.update_screensaver_brightness(kwargs={"ssbr": self.current_screensaver_brightness, "sbr": self.current_screen_brightness})
def update_screensaver_brightness(self, kwargs): def update_screensaver_brightness(self, kwargs):
bst = self._config.get("sleepTracking") bst = self._config.get("sleepTracking")
brightness = 0 sleepOverride = self._config.get("sleepOverride")
if bst is not None and self._ha_api.entity_exists(bst) and self._ha_api.get_entity(bst).state in ["not_home", "off"]: sOEntity = None
brightness = 0 sOBrightness = None
else: if sleepOverride is not None and type(sleepOverride) is dict:
self.current_screensaver_brightness = kwargs['value'] sOEntity = sleepOverride["entity"]
brightness = kwargs['value'] sOBrightness = sleepOverride["brightness"]
self._send_mqtt_msg(f"dimmode~{brightness}")
def calc_current_screensaver_brightness(self): sleepBrightness = 0
brightness = self.calc_current_brightness(self._config.get("screenBrightness"))
if bst is not None and self._ha_api.entity_exists(bst) and self._ha_api.get_entity(bst).state in ["not_home", "off"]:
self._ha_api.log(f"sleepTracking setting brightness to 0")
sleepBrightness = 0
elif sOEntity is not None and sOBrightness is not None and self._ha_api.entity_exists(sOEntity) and self._ha_api.get_entity(sOEntity).state in ["on", "true", "home"]:
self._ha_api.log(f"sleepOverride setting brightness to {sOBrightness}")
sleepBrightness = sOBrightness
else:
self.current_screensaver_brightness = kwargs['ssbr']
sleepBrightness = self.current_screensaver_brightness
self.current_screen_brightness = kwargs['sbr']
brightness = self.current_screen_brightness
# same value for both values will break sleep timer of the firmware
if sleepBrightness==brightness:
sleepBrightness = sleepBrightness-1
self._send_mqtt_msg(f"dimmode~{sleepBrightness}~{brightness}")
def calc_current_brightness(self, sleep_brightness_config):
current_screensaver_brightness = 20 current_screensaver_brightness = 20
sleep_brightness_config = self._config.get("sleepBrightness") #sleep_brightness_config = self._config.get("sleepBrightness")
# set brightness of screensaver # set brightness of screensaver
if type(sleep_brightness_config) == int: if type(sleep_brightness_config) == int:
current_screensaver_brightness = sleep_brightness_config current_screensaver_brightness = sleep_brightness_config
@@ -266,9 +299,22 @@ class LuiController(object):
if button_type == "tempUpd": if button_type == "tempUpd":
temp = int(value)/10 temp = int(value)/10
self._ha_api.get_entity(entity_id).call_service("set_temperature", temperature=temp) self._ha_api.get_entity(entity_id).call_service("set_temperature", temperature=temp)
if button_type == "tempUpdHighLow":
value = value.split("|")
temp_high = int(value[0])/10
temp_low = int(value[1])/10
self._ha_api.get_entity(entity_id).call_service("set_temperature", target_temp_high=temp_high, target_temp_low=temp_low)
if button_type == "hvac_action": if button_type == "hvac_action":
self._ha_api.get_entity(entity_id).call_service("set_hvac_mode", hvac_mode=value) self._ha_api.get_entity(entity_id).call_service("set_hvac_mode", hvac_mode=value)
# for alarm page # for alarm page
if button_type in ["disarm", "arm_home", "arm_away", "arm_night", "arm_vacation"]: if button_type in ["disarm", "arm_home", "arm_away", "arm_night", "arm_vacation"]:
self._ha_api.get_entity(entity_id).call_service(f"alarm_{button_type}", code=value) self._ha_api.get_entity(entity_id).call_service(f"alarm_{button_type}", code=value)
if button_type == "opnSensorNotify":
msg = ""
entity = self._ha_api.get_entity(entity_id)
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
for e in entity.attributes.open_sensors:
msg += f"- {self._ha_api.get_entity(e).attributes.friendly_name}\n"
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")

View File

@@ -109,6 +109,8 @@ def map_to_mdi_name(ha_type, state=None, device_class=None, cardType=None):
return sensor_mapping_off[device_class] if device_class in sensor_mapping_off else "alert-circle-outline" return sensor_mapping_off[device_class] if device_class in sensor_mapping_off else "alert-circle-outline"
else: else:
return sensor_mapping[device_class] if device_class in sensor_mapping else "alert-circle-outline" return sensor_mapping[device_class] if device_class in sensor_mapping else "alert-circle-outline"
elif ha_type == "alarm-arm-fail":
return "progress-alert"
else: else:
return "alert-circle-outline" return "alert-circle-outline"

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,9 @@ class LuiPagesGen(object):
self._locale = config.get("locale") self._locale = config.get("locale")
self._send_mqtt_msg = send_mqtt_msg self._send_mqtt_msg = send_mqtt_msg
def get_entity_color(self, entity): def get_entity_color(self, entity, overwrite=None):
if overwrite is not None:
return rgb_dec565(overwrite)
attr = entity.attributes attr = entity.attributes
default_color_on = rgb_dec565([253, 216, 53]) default_color_on = rgb_dec565([253, 216, 53])
default_color_off = rgb_dec565([68, 115, 158]) default_color_off = rgb_dec565([68, 115, 158])
@@ -40,7 +42,9 @@ class LuiPagesGen(object):
def update_time(self, kwargs): def update_time(self, kwargs):
time = datetime.datetime.now().strftime(self._config.get("timeFormat")) time = datetime.datetime.now().strftime(self._config.get("timeFormat"))
self._send_mqtt_msg(f"time~{time}") addTemplate = self._config.get("timeAdditonalTemplate")
addTimeText = self._ha_api.render_template(addTemplate)
self._send_mqtt_msg(f"time~{time}~{addTimeText}")
def update_date(self, kwargs): def update_date(self, kwargs):
global babel_spec global babel_spec
@@ -146,10 +150,11 @@ class LuiPagesGen(object):
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))
def generate_entities_item(self, entity, cardType): def generate_entities_item(self, item, cardType):
entityId = entity.entityId entityId = item.entityId
icon = entity.iconOverride icon = item.iconOverride
name = entity.nameOverride colorOverride = item.colorOverride
name = item.nameOverride
# type of the item is the string before the "." in the entityId # type of the item is the string before the "." in the entityId
entityType = entityId.split(".")[0] entityType = entityId.split(".")[0]
@@ -161,9 +166,16 @@ class LuiPagesGen(object):
page_search_res = self._config.searchCard(entityId) page_search_res = self._config.searchCard(entityId)
if page_search_res is not None: if page_search_res is not None:
name = name if name is not None else page_search_res.title name = name if name is not None else page_search_res.title
text = get_translation(self._locale,"PRESS") text = get_translation(self._locale, "frontend.ui.card.button.press")
icon_id = get_icon_id(icon) if icon is not None else get_icon_id("gesture-tap-button") icon_id = get_icon_id(icon) if icon is not None else get_icon_id("gesture-tap-button")
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}" if item.status is not None and self._ha_api.entity_exists(item.status):
status_entity = self._ha_api.get_entity(item.status)
icon_color = self.get_entity_color(status_entity)
if item.status.startswith("sensor") and cardType == "cardGrid":
icon_id = status_entity.state
else:
icon_color = 17299
return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}"
else: else:
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~" return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~"
if entityType == "iText": if entityType == "iText":
@@ -176,6 +188,12 @@ class LuiPagesGen(object):
# HA Entities # HA Entities
entity = self._ha_api.get_entity(entityId) entity = self._ha_api.get_entity(entityId)
# check state for if a condition is defined
if item.condState is not None and item.condState == entity.state:
return ""
if item.condStateNot is not None and item.condState != entity.state:
return ""
name = name if name is not None else entity.attributes.friendly_name name = name if name is not None else entity.attributes.friendly_name
if entityType == "cover": if entityType == "cover":
@@ -203,42 +221,42 @@ class LuiPagesGen(object):
return f"~shutter~{entityId}~{icon_id}~17299~{name}~{icon_up}|{icon_stop}|{icon_down}|{status}" return f"~shutter~{entityId}~{icon_id}~17299~{name}~{icon_up}|{icon_stop}|{icon_down}|{status}"
if entityType in "light": if entityType in "light":
switch_val = 1 if entity.state == "on" else 0 switch_val = 1 if entity.state == "on" else 0
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity, overwrite=colorOverride)
icon_id = get_icon_id_ha("light", overwrite=icon) icon_id = get_icon_id_ha("light", overwrite=icon)
return f"~{entityType}~{entityId}~{icon_id}~{icon_color}~{name}~{switch_val}" return f"~{entityType}~{entityId}~{icon_id}~{icon_color}~{name}~{switch_val}"
if entityType in ["switch", "input_boolean", "automation"]: if entityType in ["switch", "input_boolean", "automation"]:
switch_val = 1 if entity.state == "on" else 0 switch_val = 1 if entity.state == "on" else 0
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity, overwrite=colorOverride)
icon_id = get_icon_id_ha(entityType, state=entity.state, overwrite=icon) icon_id = get_icon_id_ha(entityType, state=entity.state, overwrite=icon)
return f"~switch~{entityId}~{icon_id}~{icon_color}~{name}~{switch_val}" return f"~switch~{entityId}~{icon_id}~{icon_color}~{name}~{switch_val}"
if entityType in ["sensor", "binary_sensor"]: if entityType in ["sensor", "binary_sensor"]:
device_class = entity.attributes.get("device_class", "") device_class = entity.attributes.get("device_class", "")
unit_of_measurement = entity.attributes.get("unit_of_measurement", "") unit_of_measurement = entity.attributes.get("unit_of_measurement", "")
value = entity.state + " " + unit_of_measurement value = entity.state + " " + unit_of_measurement
if cardType == "cardGrid": if cardType == "cardGrid" and entityType == "sensor":
icon_id = entity.state[:4] icon_id = entity.state[:4]
if icon_id[-1] == ".": if icon_id[-1] == ".":
icon_id = icon_id[:-1] icon_id = icon_id[:-1]
else: else:
icon_id = get_icon_id_ha("sensor", state=entity.state, device_class=device_class, overwrite=icon) icon_id = get_icon_id_ha("sensor", state=entity.state, device_class=device_class, overwrite=icon)
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity, overwrite=colorOverride)
return f"~text~{entityId}~{icon_id}~{icon_color}~{name}~{value}" return f"~text~{entityId}~{icon_id}~{icon_color}~{name}~{value}"
if entityType in ["button", "input_button"]: if entityType in ["button", "input_button"]:
icon_id = get_icon_id_ha("button", overwrite=icon) icon_id = get_icon_id_ha("button", overwrite=icon)
text = get_translation(self._locale,"PRESS") text = get_translation(self._locale, "frontend.ui.card.button.press")
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}" return f"~button~{entityId}~{icon_id}~17299~{name}~{text}"
if entityType == "scene": if entityType == "scene":
icon_id = get_icon_id_ha("scene", overwrite=icon) icon_id = get_icon_id_ha("scene", overwrite=icon)
text = get_translation(self._locale,"ACTIVATE") text = get_translation(self._locale, "frontend.ui.card.scene.activate")
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}" return f"~button~{entityId}~{icon_id}~17299~{name}~{text}"
if entityType == "script": if entityType == "script":
icon_id = get_icon_id_ha("script", overwrite=icon) icon_id = get_icon_id_ha("script", overwrite=icon)
text = get_translation(self._locale,"run") text = get_translation(self._locale, "frontend.ui.card.script.run")
return f"~button~{entityId}~{icon_id}~17299~{name}~{text}" return f"~button~{entityId}~{icon_id}~17299~{name}~{text}"
if entityType == "lock": if entityType == "lock":
icon_id = get_icon_id_ha("lock", state=entity.state, overwrite=icon) icon_id = get_icon_id_ha("lock", state=entity.state, overwrite=icon)
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity, overwrite=colorOverride)
text = get_translation(self._locale,"lock") if entity.state == "unlocked" else get_translation(self._locale,"unlock") text = get_translation(self._locale, "frontend.ui.card.lock.lock") if entity.state == "unlocked" else get_translation(self._locale, "frontend.ui.card.lock.unlock")
return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}" return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}"
if entityType == "number": if entityType == "number":
icon_id = get_icon_id_ha("number", overwrite=icon) icon_id = get_icon_id_ha("number", overwrite=icon)
@@ -247,7 +265,7 @@ class LuiPagesGen(object):
return f"~number~{entityId}~{icon_id}~17299~{name}~{entity.state}|{min_v}|{max_v}" return f"~number~{entityId}~{icon_id}~17299~{name}~{entity.state}|{min_v}|{max_v}"
if entityType == "fan": if entityType == "fan":
icon_id = get_icon_id_ha("fan", overwrite=icon) icon_id = get_icon_id_ha("fan", overwrite=icon)
icon_color = self.get_entity_color(entity) icon_color = self.get_entity_color(entity, overwrite=colorOverride)
return f"~number~{entityId}~{icon_id}~{icon_color}~{name}~{entity.attributes.percentage}|0|100" return f"~number~{entityId}~{icon_id}~{icon_color}~{name}~{entity.attributes.percentage}|0|100"
if entityType == "input_text": if entityType == "input_text":
icon_id = get_icon_id_ha("input_text", overwrite=icon) icon_id = get_icon_id_ha("input_text", overwrite=icon)
@@ -279,14 +297,21 @@ class LuiPagesGen(object):
entity = self._ha_api.get_entity(item) entity = self._ha_api.get_entity(item)
heading = title if title != "unknown" else 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 = get_attr_safe(entity, "temperature", None)
status = get_attr_safe(entity, "hvac_action", "") if dest_temp is None:
dest_temp = get_attr_safe(entity, "target_temp_high", 0)
dest_temp2 = int(get_attr_safe(entity, "target_temp_low", 0)*10)
dest_temp = int(dest_temp*10)
hvac_action = get_attr_safe(entity, "hvac_action", "")
state_value = "" state_value = ""
if status != "": if hvac_action != "":
state_value += f"{get_translation(self._locale, status)}\r\n(" state_value = get_translation(self._locale, f"frontend.state_attributes.climate.hvac_action.{hvac_action}")
state_value += f"{get_translation(self._locale, entity.state)}" state_value += "\r\n("
if status != "": state_value += get_translation(self._locale, f"backend.component.climate.state._.{entity.state}")
if hvac_action != "":
state_value += ")" 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)
@@ -322,14 +347,14 @@ 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
currently_translation = get_translation(self._locale, "currently") currently_translation = get_translation(self._locale, "frontend.ui.card.climate.currently")
state_translation = get_translation(self._locale, "state") state_translation = get_translation(self._locale, "frontend.ui.panel.config.devices.entities.state")
action_translation = get_translation(self._locale, "operation") action_translation = get_translation(self._locale, "frontend.ui.card.climate.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}" 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}~{dest_temp2}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_media_page(self, navigation, title, entity): def generate_media_page(self, navigation, title, entity, mediaBtn):
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"
@@ -360,10 +385,10 @@ class LuiPagesGen(object):
onoffbutton = 1374 onoffbutton = 1374
else: else:
onoffbutton = rgb_dec565([255,152,0]) 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}~{mediaBtn}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_alarm_page(self, navigation, entity): def generate_alarm_page(self, navigation, entity, alarmBtn):
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~{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"
@@ -413,17 +438,33 @@ class LuiPagesGen(object):
icon = get_icon_id("bell-ring") icon = get_icon_id("bell-ring")
flashing = "enable" flashing = "enable"
#add button to show sensor state
add_btn = ""
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
add_btn=f"{get_icon_id('progress-alert')}~{rgb_dec565([243,179,0])}~opnSensorNotify"
if alarmBtn is not None and type(alarmBtn) is dict:
entity = alarmBtn.get("entity")
iconnav = get_icon_id_ha("alarm-arm-fail", overwrite=alarmBtn.get("icon"))
status = alarmBtn.get("status")
if status is not None and self._ha_api.entity_exists(status):
icon_color = self.get_entity_color(self._ha_api.get_entity(status))
else:
icon_color = rgb_dec565([243,179,0])
add_btn=f"{iconnav}~{icon_color}~{entity}"
# add padding to arm buttons # add padding to arm buttons
arm_buttons = "" arm_buttons = ""
for b in supported_modes: for b in supported_modes:
arm_buttons += f"~{get_translation(self._locale, b)}~{b}" modeName = f"frontend.ui.card.alarm_control_panel.{b}"
arm_buttons += f"~{get_translation(self._locale, modeName)}~{b}"
if len(supported_modes) < 4: if len(supported_modes) < 4:
arm_buttons += "~"*((4-len(supported_modes))*2) arm_buttons += "~"*((4-len(supported_modes))*2)
command = f"entityUpd~{item}~{navigation}{arm_buttons}~{icon}~{color}~{numpad}~{flashing}" command = f"entityUpd~{item}~{navigation}{arm_buttons}~{icon}~{color}~{numpad}~{flashing}~{add_btn}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_qr_page(self, navigation, heading, items, cardType, qrcode): def generate_qr_page(self, navigation, heading, items, cardType, qrcode):
qrcode = self._ha_api.render_template(qrcode)
command = f"entityUpd~{heading}~{navigation}~{qrcode}" command = f"entityUpd~{heading}~{navigation}~{qrcode}"
# Get items and construct cmd string # Get items and construct cmd string
for item in items: for item in items:
@@ -452,9 +493,11 @@ class LuiPagesGen(object):
temp_unit = card.raw_config.get("temperatureUnit", "celsius") temp_unit = card.raw_config.get("temperatureUnit", "celsius")
self.generate_thermo_page(navigation, card.title, 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.title, card.entity) mediaBtn = card.raw_config.get("mediaControl", "")
self.generate_media_page(navigation, card.title, card.entity, mediaBtn)
if card.cardType == "cardAlarm": if card.cardType == "cardAlarm":
self.generate_alarm_page(navigation, card.entity) alarmBtn = card.raw_config.get("alarmControl")
self.generate_alarm_page(navigation, card.entity, alarmBtn)
if card.cardType == "screensaver": if card.cardType == "screensaver":
theme = card.raw_config.get("theme") theme = card.raw_config.get("theme")
self.update_screensaver_weather(theme) self.update_screensaver_weather(theme)
@@ -491,8 +534,8 @@ class LuiPagesGen(object):
else: else:
color = "disable" color = "disable"
color_translation = "Color" color_translation = "Color"
brightness_translation = get_translation(self._locale, "brightness") brightness_translation = get_translation(self._locale, "frontend.ui.card.light.brightness")
color_temp_translation = get_translation(self._locale, "color_temperature") color_temp_translation = get_translation(self._locale, "frontend.ui.card.light.color_temperature")
self._send_mqtt_msg(f"entityUpdateDetail~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}") self._send_mqtt_msg(f"entityUpdateDetail~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}")
def generate_shutter_detail_page(self, entity): def generate_shutter_detail_page(self, entity):
@@ -526,9 +569,9 @@ class LuiPagesGen(object):
elif pos_status == "closed": elif pos_status == "closed":
icon_down_status = "disable" icon_down_status = "disable"
pos_translation = get_translation(self._locale, "position") pos_translation = get_translation(self._locale, "frontend.ui.card.cover.position")
self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}") self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}")
def send_message_page(self, id, heading, msg, b1, b2): def send_message_page(self, ident, heading, msg, b1, b2):
self._send_mqtt_msg(f"pageType~popupNotify") self._send_mqtt_msg(f"pageType~popupNotify")
self._send_mqtt_msg(f"entityUpdateDetail~{id}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0") self._send_mqtt_msg(f"entityUpdateDetail~{ident}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")

View File

@@ -0,0 +1,342 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"binary_sensor": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
},
"battery": {
"off": "Normaal",
"on": "Laag"
},
"cold": {
"off": "Normaal",
"on": "Koud"
},
"connectivity": {
"off": "Ontkoppel",
"on": "Gekoppel"
},
"door": {
"off": "Toe",
"on": "Oop"
},
"garage_door": {
"off": "Toe",
"on": "Oop"
},
"gas": {
"off": "Ongemerk",
"on": "Bespeur"
},
"heat": {
"off": "Normaal",
"on": "Warm"
},
"lock": {
"off": "Gesluit",
"on": "Oopgesluit"
},
"moisture": {
"off": "Droog",
"on": "Nat"
},
"motion": {
"off": "Ongemerk",
"on": "Bespeur"
},
"occupancy": {
"off": "Ongemerk",
"on": "Bespeur"
},
"opening": {
"off": "Toe",
"on": "Oop"
},
"presence": {
"off": "Elders",
"on": "Tuis"
},
"problem": {
"off": "OK",
"on": "Probleem"
},
"safety": {
"off": "Veilige",
"on": "Onveilige"
},
"smoke": {
"off": "Ongemerk",
"on": "Bespeur"
},
"sound": {
"off": "Ongemerk",
"on": "Bespeur"
},
"vibration": {
"off": "Ongemerk",
"on": "Bespeur"
},
"window": {
"off": "Toe",
"on": "Oop"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "Gewapen",
"disarmed": "Ontwapen",
"armed_home": "Gewapend tuis",
"armed_away": "Gewapend weg",
"armed_night": "Gewapend nag",
"armed_custom_bypass": "Gewapende pasgemaakte omseil",
"pending": "Hangende",
"arming": "Bewapen Tans",
"disarming": "Ontwapen Tans",
"triggered": "Geaktiveer"
}
}
},
"automation": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"calendar": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"camera": {
"state": {
"_": {
"recording": "Opname",
"streaming": "Stroming",
"idle": "Onaktief"
}
}
},
"climate": {
"state": {
"_": {
"off": "Af",
"heat": "Hitte",
"cool": "Koel",
"heat_cool": "Verhit/Verkoel",
"auto": "Outo",
"dry": "Droog",
"fan_only": "Slegs waaier"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "Stel op",
"configured": "Opgestel"
}
}
},
"cover": {
"state": {
"_": {
"open": "Oop",
"opening": "Opening",
"closed": "Toe",
"closing": "Sluiting",
"stopped": "Gestop"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "Tuis",
"not_home": "Elders"
}
}
},
"fan": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"group": {
"state": {
"_": {
"off": "Af",
"on": "Aan",
"home": "Tuis",
"not_home": "Elders",
"open": "Oop",
"closed": "Toe",
"locked": "Gesluit",
"unlocked": "Oopgesluit",
"ok": "OK",
"problem": "Probleem"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"light": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"lock": {
"state": {
"_": {
"locked": "Gesluit",
"unlocked": "Oopgesluit"
}
}
},
"media_player": {
"state": {
"_": {
"off": "Af",
"on": "Aan",
"playing": "Speel Tans",
"paused": "Onderbreek",
"idle": "Onaktief",
"standby": "Gereed"
}
}
},
"person": {
"state": {
"_": {
"home": "Tuis",
"not_home": "Elders"
}
}
},
"plant": {
"state": {
"_": {
"ok": "OK",
"problem": "Probleem"
}
}
},
"remote": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"script": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "Bo horison",
"below_horizon": "Onder horison"
}
}
},
"switch": {
"state": {
"_": {
"off": "Af",
"on": "Aan"
}
}
},
"vacuum": {
"state": {
"_": {
"cleaning": "Skoonmaak",
"docked": "Vasgemeer by hawe",
"error": "Fout",
"idle": "Onaktief",
"off": "Af",
"on": "Aan",
"paused": "Onderbreek",
"returning": "Oppad terug hawe toe"
}
}
},
"timer": {
"state": {
"_": {
"active": "aktief",
"idle": "onaktief",
"paused": "Onderbreek"
}
}
},
"weather": {
"state": {
"_": {
"clear-night": "Helder, nag",
"cloudy": "Bewolk",
"fog": "Mis",
"hail": "Hael",
"lightning": "Weerlig",
"lightning-rainy": "Weerlig, Re\u00ebnagtig",
"partlycloudy": "Gedeeltelik bewolk",
"pouring": "Stort",
"rainy": "Re\u00ebnagtig",
"snowy": "Sneeuagtig",
"snowy-rainy": "Ysre\u00ebn",
"sunny": "Sonnig",
"windy": "Winderig",
"windy-variant": "Winderig"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "Inisialiseer",
"dead": "Dood",
"sleeping": "Aan die slaap",
"ready": "Gereed"
},
"query_stage": {
"initializing": "Inisialiseer ({query_stage})",
"dead": "Dood ({query_stage})"
}
}
}
}
}

View File

@@ -0,0 +1,328 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"binary_sensor": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u062a\u0634\u063a\u064a\u0644"
},
"battery": {
"off": "\u0637\u0628\u064a\u0639\u064a",
"on": "\u0645\u0646\u062e\u0641\u0636"
},
"cold": {
"off": "\u0637\u0628\u064a\u0639\u064a",
"on": "\u0628\u0627\u0631\u062f"
},
"connectivity": {
"off": "\u0645\u0641\u0635\u0648\u0644",
"on": "\u0645\u062a\u0635\u0644"
},
"door": {
"off": "\u0645\u063a\u0644\u0642",
"on": "\u0645\u0641\u062a\u0648\u062d"
},
"garage_door": {
"off": "\u0645\u063a\u0644\u0642",
"on": "\u0645\u0641\u062a\u0648\u062d"
},
"gas": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"heat": {
"off": "\u0637\u0628\u064a\u0639\u064a",
"on": "\u062d\u0627\u0631"
},
"lock": {
"off": "\u0645\u0642\u0641\u0644",
"on": "\u063a\u064a\u0631 \u0645\u0642\u0641\u0644"
},
"moisture": {
"off": "\u062c\u0627\u0641",
"on": "\u0645\u0628\u0644\u0644"
},
"motion": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"occupancy": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"opening": {
"off": "\u0645\u0642\u0641\u0644",
"on": "\u0645\u0641\u062a\u0648\u062d"
},
"presence": {
"off": "\u062e\u0627\u0631\u062c \u0627\u0644\u0645\u0646\u0632\u0644",
"on": "\u0641\u064a \u0627\u0644\u0645\u0646\u0632\u0644"
},
"problem": {
"off": "\u0645\u0648\u0627\u0641\u0642",
"on": "\u0639\u0637\u0644"
},
"safety": {
"off": "\u0623\u0645\u0646",
"on": "\u063a\u064a\u0631 \u0623\u0645\u0646"
},
"smoke": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"sound": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"vibration": {
"off": "\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0643\u0634\u0641",
"on": "\u062a\u0645 \u0627\u0644\u0643\u0634\u0641"
},
"window": {
"off": "\u0645\u063a\u0644\u0642",
"on": "\u0645\u0641\u062a\u0648\u062d"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "\u0645\u0633\u0644\u062d",
"disarmed": "\u063a\u064a\u0631 \u0645\u0641\u0639\u0651\u0644",
"armed_home": "\u0645\u0641\u0639\u0651\u0644 \u0641\u064a \u0627\u0644\u0645\u0646\u0632\u0644",
"armed_away": "\u0645\u0641\u0639\u0651\u0644 \u0641\u064a \u0627\u0644\u062e\u0627\u0631\u062c",
"armed_night": "\u0645\u0641\u0639\u0651\u0644 \u0644\u064a\u0644",
"armed_custom_bypass": "\u062a\u062c\u0627\u0648\u0632 \u0627\u0644\u062a\u0641\u0639\u064a\u0644",
"pending": "\u0642\u064a\u062f \u0627\u0644\u0625\u0646\u062a\u0638\u0627\u0631",
"arming": "\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u0641\u0639\u064a\u0644",
"disarming": "\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u0625\u0646\u0630\u0627\u0631",
"triggered": "\u0645\u0641\u0639\u0651\u0644"
}
}
},
"automation": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u062a\u0634\u063a\u064a\u0644"
}
}
},
"calendar": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u062a\u0634\u063a\u064a\u0644"
}
}
},
"camera": {
"state": {
"_": {
"recording": "\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u0633\u062c\u064a\u0644",
"streaming": "\u062c\u0627\u0631\u064a \u0627\u0644\u0628\u062b",
"idle": "\u062e\u0627\u0645\u0644"
}
}
},
"climate": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"heat": "\u062a\u062f\u0641\u0626\u0629",
"cool": "\u062a\u0628\u0631\u064a\u062f",
"auto": "\u062a\u0644\u0642\u0627\u0626\u064a",
"dry": "\u062c\u0627\u0641",
"fan_only": "\u0627\u0644\u0645\u0631\u0648\u062d\u0629 \u0641\u0642\u0637"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "\u0625\u0639\u062f\u0627\u062f",
"configured": "\u062a\u0645 \u0627\u0644\u0625\u0639\u062f\u0627\u062f"
}
}
},
"cover": {
"state": {
"_": {
"open": "\u0645\u0641\u062a\u0648\u062d",
"opening": "\u062c\u0627\u0631\u064a \u0627\u0644\u0641\u062a\u062d",
"closed": "\u0645\u063a\u0644\u0642",
"closing": "\u062c\u0627\u0631\u064a \u0627\u0644\u0627\u063a\u0644\u0627\u0642",
"stopped": "\u0645\u0648\u0642\u0641"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "\u0641\u064a \u0627\u0644\u0645\u0646\u0632\u0644",
"not_home": "\u062e\u0627\u0631\u062c \u0627\u0644\u0645\u0646\u0632\u0644"
}
}
},
"fan": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"group": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644",
"home": "\u0641\u064a \u0627\u0644\u0645\u0646\u0632\u0644",
"not_home": "\u0641\u064a \u0627\u0644\u062e\u0627\u0631\u062c",
"open": "\u0645\u0641\u062a\u0648\u062d ",
"closed": "\u0645\u063a\u0644\u0642 ",
"locked": "\u0645\u0642\u0641\u0644 ",
"unlocked": "\u063a\u064a\u0631 \u0645\u0642\u0641\u0644 ",
"ok": "\u0623\u0648\u0643\u064a",
"problem": "\u0645\u0634\u0643\u0644\u0629"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"light": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"lock": {
"state": {
"_": {
"locked": "\u0645\u0642\u0641\u0644",
"unlocked": "\u0645\u0641\u062a\u0648\u062d"
}
}
},
"media_player": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644",
"playing": "\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u0634\u063a\u064a\u0644",
"paused": "\u0645\u0648\u0642\u0651\u0641 \u0645\u0624\u0642\u062a\u0627",
"idle": "\u062e\u0627\u0645\u0644",
"standby": "\u0648\u0636\u0639 \u0627\u0644\u0625\u0646\u062a\u0638\u0627\u0631"
}
}
},
"person": {
"state": {
"_": {
"home": "\u0641\u064a \u0627\u0644\u0645\u0646\u0632\u0644",
"not_home": "\u062e\u0627\u0631\u062c \u0627\u0644\u0645\u0646\u0632\u0644"
}
}
},
"plant": {
"state": {
"_": {
"ok": "\u0623\u0648\u0643\u064a",
"problem": "\u0645\u0634\u0643\u0644\u0629"
}
}
},
"remote": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"script": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0642\u064a\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "\u0641\u0648\u0642 \u0627\u0644\u0623\u0641\u0642",
"below_horizon": "\u062a\u062d\u062a \u0627\u0644\u0623\u0641\u0642"
}
}
},
"switch": {
"state": {
"_": {
"off": "\u0625\u064a\u0642\u0627\u0641",
"on": "\u0645\u064f\u0634\u064e\u063a\u0651\u0644"
}
}
},
"vacuum": {
"state": {
"_": {
"cleaning": "\u062a\u0646\u0638\u064a\u0641",
"error": "\u062e\u0637\u0623",
"off": "\u0645\u0637\u0641\u0626",
"on": "\u0645\u0634\u063a\u0644",
"paused": "\u0645\u0648\u0642\u0651\u0641 \u0645\u0624\u0642\u062a\u0627",
"returning": "\u0627\u0644\u0639\u0648\u062f\u0629"
}
}
},
"timer": {
"state": {
"_": {
"active": "\u0645\u0641\u0639\u0644",
"idle": "\u062e\u0627\u0645\u0644",
"paused": "\u0645\u0648\u0642\u0651\u0641 \u0645\u0624\u0642\u062a\u0627"
}
}
},
"weather": {
"state": {
"_": {
"cloudy": "Bewolkt",
"fog": "Mist",
"sunny": "\u0645\u0634\u0645\u0633"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "\u0642\u064a\u062f \u0627\u0644\u0625\u0646\u0634\u0627\u0621",
"dead": "\u0645\u0641\u0635\u0648\u0644",
"sleeping": "\u0646\u0627\u0626\u0645",
"ready": "\u062c\u0627\u0647\u0632"
},
"query_stage": {
"initializing": "\u0642\u064a\u062f \u0627\u0644\u0625\u0646\u0634\u0627\u0621 ( {query_stage} )",
"dead": "\u0645\u0641\u0635\u0648\u0644 ({query_stage})"
}
}
}
}
}

View File

@@ -0,0 +1,349 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f",
"dead": "\u041c\u044a\u0440\u0442\u044a\u0432",
"sleeping": "\u0421\u043f\u044f\u0449",
"ready": "\u0413\u043e\u0442\u043e\u0432"
},
"query_stage": {
"initializing": "\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ( {query_stage} )",
"dead": "\u041c\u044a\u0440\u0442\u044a\u0432 ({query_stage})"
}
}
},
"ebusd": {
"state": {
"day": "\u0414\u0435\u043d",
"night": "\u041d\u043e\u0449"
}
},
"light": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d\u043e",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u043e"
}
}
},
"switch": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"binary_sensor": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
},
"battery": {
"off": "\u041d\u043e\u0440\u043c\u0430\u043b\u043d\u0430",
"on": "\u0418\u0437\u0442\u043e\u0449\u0435\u043d\u0430"
},
"cold": {
"off": "\u041d\u043e\u0440\u043c\u0430\u043b\u043d\u043e",
"on": "\u0421\u0442\u0443\u0434\u0435\u043d\u043e"
},
"connectivity": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0421\u0432\u044a\u0440\u0437\u0430\u043d"
},
"door": {
"off": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"on": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d\u0430"
},
"garage_door": {
"off": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"on": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d\u0430"
},
"gas": {
"off": "\u0427\u0438\u0441\u0442\u043e",
"on": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d"
},
"heat": {
"off": "\u041d\u043e\u0440\u043c\u0430\u043b\u043d\u043e",
"on": "\u0413\u043e\u0440\u0435\u0449\u043e"
},
"lock": {
"off": "\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043e",
"on": "\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e"
},
"moisture": {
"off": "\u0421\u0443\u0445",
"on": "\u041c\u043e\u043a\u044a\u0440"
},
"motion": {
"off": "\u0411\u0435\u0437 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435",
"on": "\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435"
},
"occupancy": {
"off": "\u0427\u0438\u0441\u0442\u043e",
"on": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d"
},
"opening": {
"off": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d",
"on": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d"
},
"presence": {
"off": "\u041e\u0442\u0441\u044a\u0441\u0442\u0432\u0430",
"on": "\u0412\u043a\u044a\u0449\u0438"
},
"problem": {
"off": "\u041e\u041a",
"on": "\u041f\u0440\u043e\u0431\u043b\u0435\u043c"
},
"safety": {
"off": "\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u0435\u043d",
"on": "\u041e\u043f\u0430\u0441\u043d\u043e\u0441\u0442"
},
"smoke": {
"off": "\u0427\u0438\u0441\u0442\u043e",
"on": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d"
},
"sound": {
"off": "\u0427\u0438\u0441\u0442\u043e",
"on": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d"
},
"vibration": {
"off": "\u0427\u0438\u0441\u0442\u043e",
"on": "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d\u0430"
},
"window": {
"off": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d",
"on": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d"
}
}
},
"lock": {
"state": {
"_": {
"locked": "\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d",
"unlocked": "\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"cover": {
"state": {
"_": {
"open": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"opening": "\u041e\u0442\u0432\u0430\u0440\u044f\u043d\u0435",
"closed": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"closing": "\u0417\u0430\u0442\u0432\u0430\u0440\u044f\u043d\u0435",
"stopped": "\u0421\u043f\u0440\u044f\u043d\u0430"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "\u041f\u043e\u0434 \u043e\u0445\u0440\u0430\u043d\u0430",
"disarmed": "\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0430",
"armed_home": "\u041f\u043e\u0434 \u043e\u0445\u0440\u0430\u043d\u0430 - \u0432\u043a\u044a\u0449\u0438",
"armed_away": "\u041f\u043e\u0434 \u043e\u0445\u0440\u0430\u043d\u0430",
"armed_night": "\u041f\u043e\u0434 \u043e\u0445\u0440\u0430\u043d\u0430 - \u043d\u043e\u0449",
"armed_custom_bypass": "\u041f\u043e\u0434 \u043e\u0445\u0440\u0430\u043d\u0430",
"pending": "\u0412 \u043e\u0447\u0430\u043a\u0432\u0430\u043d\u0435",
"arming": "\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435",
"disarming": "\u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435",
"triggered": "\u0417\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0430\u043d"
}
}
},
"media_player": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d",
"playing": "\u0412\u044a\u0437\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0436\u0434\u0430\u043d\u0435",
"paused": "\u0412 \u043f\u0430\u0443\u0437\u0430",
"idle": "\u041d\u0435\u0440\u0430\u0431\u043e\u0442\u0435\u0449",
"standby": "\u0420\u0435\u0436\u0438\u043c \u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "\u0412\u043a\u044a\u0449\u0438",
"not_home": "\u041e\u0442\u0441\u044a\u0441\u0442\u0432\u0430"
}
}
},
"vacuum": {
"state": {
"_": {
"cleaning": "\u041f\u043e\u0447\u0438\u0441\u0442\u0432\u0430\u043d\u0435",
"docked": "\u0412 \u0431\u0430\u0437\u043e\u0432\u0430 \u0441\u0442\u0430\u043d\u0446\u0438\u044f",
"error": "\u0413\u0440\u0435\u0448\u043a\u0430",
"idle": "\u041d\u0435\u0440\u0430\u0431\u043e\u0442\u0435\u0449",
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d",
"paused": "\u041f\u0430\u0443\u0437\u0430",
"returning": "\u0412\u0440\u044a\u0449\u0430\u043d\u0435 \u0432 \u0431\u0430\u0437\u043e\u0432\u0430\u0442\u0430 \u0441\u0442\u0430\u043d\u0446\u0438\u044f"
}
}
},
"fan": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"climate": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"heat": "\u041e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u0435",
"cool": "\u041e\u0445\u043b\u0430\u0436\u0434\u0430\u043d\u0435",
"heat_cool": "\u041e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u0435/\u041e\u0445\u043b\u0430\u0436\u0434\u0430\u043d\u0435",
"auto": "\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u043d",
"dry": "\u0421\u0443\u0445",
"fan_only": "\u0421\u0430\u043c\u043e \u0432\u0435\u043d\u0442\u0438\u043b\u0430\u0442\u043e\u0440"
}
}
},
"automation": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"calendar": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"camera": {
"state": {
"_": {
"recording": "\u0417\u0430\u043f\u0438\u0441\u0432\u0430\u043d\u0435",
"streaming": "\u041f\u0440\u0435\u0434\u0430\u0432\u0430",
"idle": "\u041d\u0435 \u0437\u0430\u043f\u0438\u0441\u0432\u0430"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0432\u0430\u043d\u0435",
"configured": "\u041d\u0430\u0441\u0442\u0440\u043e\u0435\u043d"
}
}
},
"group": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0430",
"home": "\u0412\u043a\u044a\u0449\u0438",
"not_home": "\u041e\u0442\u0441\u044a\u0441\u0442\u0432\u0430",
"open": "\u041e\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"closed": "\u0417\u0430\u0442\u0432\u043e\u0440\u0435\u043d\u0430",
"locked": "\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0430",
"unlocked": "\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430",
"ok": "\u041e\u041a",
"problem": "\u041f\u0440\u043e\u0431\u043b\u0435\u043c"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"person": {
"state": {
"_": {
"home": "\u0412\u043a\u044a\u0449\u0438",
"not_home": "\u041e\u0442\u0441\u044a\u0441\u0442\u0432\u0430"
}
}
},
"plant": {
"state": {
"_": {
"ok": "\u041e\u041a",
"problem": "\u041f\u0440\u043e\u0431\u043b\u0435\u043c"
}
}
},
"remote": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"script": {
"state": {
"_": {
"off": "\u0418\u0437\u043a\u043b\u044e\u0447\u0435\u043d",
"on": "\u0412\u043a\u043b\u044e\u0447\u0435\u043d"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "\u041d\u0430\u0434 \u0445\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430",
"below_horizon": "\u041f\u043e\u0434 \u0445\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430"
}
}
},
"timer": {
"state": {
"_": {
"active": "\u0430\u043a\u0442\u0438\u0432\u0435\u043d",
"idle": "\u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0435\u0449",
"paused": "\u0432 \u043f\u0430\u0443\u0437\u0430"
}
}
},
"weather": {
"state": {
"_": {
"clear-night": "\u042f\u0441\u043d\u043e, \u043d\u043e\u0449",
"cloudy": "\u041e\u0431\u043b\u0430\u0447\u043d\u043e",
"exceptional": "\u0418\u0437\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u043d\u043e",
"fog": "\u041c\u044a\u0433\u043b\u0430",
"hail": "\u0413\u0440\u0430\u0434\u0443\u0448\u043a\u0430",
"lightning": "\u0421\u0432\u0435\u0442\u043a\u0430\u0432\u0438\u0446\u0430",
"lightning-rainy": "\u0421\u0432\u0435\u0442\u043a\u0430\u0432\u0438\u0446\u0430, \u0434\u044a\u0436\u0434\u043e\u0432\u043d\u043e",
"partlycloudy": "\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0441\u0442",
"pouring": "\u041e\u0431\u0438\u043b\u0435\u043d \u0434\u044a\u0436\u0434",
"rainy": "\u0414\u044a\u0436\u0434\u043e\u0432\u043d\u043e",
"snowy": "\u0421\u043d\u0435\u0436\u043d\u043e",
"snowy-rainy": "\u0421\u043d\u0435\u0436\u043d\u043e, \u0434\u044a\u0436\u0434\u043e\u0432\u043d\u043e",
"sunny": "\u0421\u043b\u044a\u043d\u0447\u0435\u0432\u043e",
"windy": "\u0412\u0435\u0442\u0440\u043e\u0432\u0438\u0442\u043e",
"windy-variant": "\u0412\u0435\u0442\u0440\u043e\u0432\u0438\u0442\u043e"
}
}
}
}
}

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,266 @@
{
"component": {
"binary_sensor": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
},
"battery": {
"off": "Normalno",
"on": "Nisko"
},
"connectivity": {
"off": "Nepovezan",
"on": "Povezan"
},
"gas": {
"off": "\u010cist",
"on": "Otkriven"
},
"moisture": {
"off": "Suho",
"on": "Mokar"
},
"motion": {
"off": "\u010cist",
"on": "Otkriven"
},
"occupancy": {
"off": "\u010cist",
"on": "Otkriven"
},
"opening": {
"off": "Zatvoren",
"on": "Otvoren"
},
"presence": {
"off": "Odsutan",
"on": "Kod ku\u0107e"
},
"problem": {
"off": "OK",
"on": "Problem"
},
"safety": {
"off": "Siguran",
"on": "Nesiguran"
},
"smoke": {
"off": "\u010cist",
"on": "Otkriven"
},
"sound": {
"off": "\u010cist",
"on": "Otkriven"
},
"vibration": {
"off": "\u010cist",
"on": "Otkriven"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "Aktiviran",
"disarmed": "Deaktiviran",
"armed_home": "Aktiviran kod ku\u0107e",
"armed_away": "Aktiviran izvan ku\u0107e",
"armed_night": "Aktiviran no\u0107u",
"armed_custom_bypass": "Aktiviran pod specijalnim rezimom",
"pending": "U is\u010dekivanju",
"arming": "Aktivacija",
"disarming": "Deaktivacija",
"triggered": "Pokrenut"
}
}
},
"automation": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"calendar": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"camera": {
"state": {
"_": {
"recording": "Snimanje",
"streaming": "Predaja slike",
"idle": "Besposlen"
}
}
},
"climate": {
"state": {
"_": {
"off": "Isklju\u010den",
"heat": "Toplota",
"cool": "Hladno",
"auto": "Auto",
"dry": "Suh",
"fan_only": "Samo ventilator"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "Podesite",
"configured": "Konfigurirano"
}
}
},
"cover": {
"state": {
"_": {
"open": "Otvoren",
"opening": "Otvoreno",
"closed": "Zatvoren",
"closing": "Zatvoreno",
"stopped": "Zaustavljen"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "Kod ku\u0107e",
"not_home": "Odsutan"
}
}
},
"fan": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"group": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den",
"home": "Kod ku\u0107e",
"not_home": "Odsutan",
"open": "Otvoren",
"closed": "Zatvoren",
"locked": "Zaklju\u010dan",
"unlocked": "Otklju\u010dan",
"ok": "OK",
"problem": "Problem"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"light": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"lock": {
"state": {
"_": {
"locked": "Zaklju\u010dan",
"unlocked": "Otklju\u010dan"
}
}
},
"media_player": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den",
"playing": "Prikazuje",
"paused": "Pauziran",
"idle": "Besposlen",
"standby": "U stanju \u010dekanja"
}
}
},
"plant": {
"state": {
"_": {
"ok": "OK",
"problem": "Problem"
}
}
},
"remote": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"script": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"sensor": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "Iznad horizonta",
"below_horizon": "Ispod horizonta"
}
}
},
"switch": {
"state": {
"_": {
"off": "Isklju\u010den",
"on": "Uklju\u010den"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "Inicijalizacija",
"dead": "Mrtav",
"sleeping": "Spava",
"ready": "Spreman"
},
"query_stage": {
"initializing": "Inicijalizacija ( {query_stage} )",
"dead": "Mrtav ({query_stage})"
}
}
}
}
}

View File

@@ -0,0 +1,349 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "Inicialitzant",
"dead": "No disponible",
"sleeping": "Dormint",
"ready": "A punt"
},
"query_stage": {
"initializing": "Inicialitzant",
"dead": "No disponible"
}
}
},
"ebusd": {
"state": {
"day": "Dia",
"night": "Nit"
}
},
"light": {
"state": {
"_": {
"off": "Apagada",
"on": "Encesa"
}
}
},
"switch": {
"state": {
"_": {
"off": "Apagat",
"on": "Enc\u00e8s"
}
}
},
"binary_sensor": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
},
"battery": {
"off": "Normal",
"on": "Baixa"
},
"cold": {
"off": "Normal",
"on": "Fred"
},
"connectivity": {
"off": "Desconnectat",
"on": "Connectat"
},
"door": {
"off": "Tancada",
"on": "Oberta"
},
"garage_door": {
"off": "Tancada",
"on": "Oberta"
},
"gas": {
"off": "Lliure",
"on": "Detectat"
},
"heat": {
"off": "Normal",
"on": "Calent"
},
"lock": {
"off": "Bloquejat",
"on": "Desbloquejat"
},
"moisture": {
"off": "Sec",
"on": "Humit"
},
"motion": {
"off": "Lliure",
"on": "Detectat"
},
"occupancy": {
"off": "Lliure",
"on": "Detectat"
},
"opening": {
"off": "Tancat",
"on": "Obert"
},
"presence": {
"off": "Lliure",
"on": "Detectat"
},
"problem": {
"off": "Correcte",
"on": "Problema"
},
"safety": {
"off": "Segur",
"on": "No segur"
},
"smoke": {
"off": "Lliure",
"on": "Detectat"
},
"sound": {
"off": "Lliure",
"on": "Detectat"
},
"vibration": {
"off": "Lliure",
"on": "Detectat"
},
"window": {
"off": "Tancada",
"on": "Oberta"
}
}
},
"lock": {
"state": {
"_": {
"locked": "Bloquejat",
"unlocked": "Desbloquejat"
}
}
},
"cover": {
"state": {
"_": {
"open": "Oberta",
"opening": "Obrint",
"closed": "Tancada",
"closing": "Tancant",
"stopped": "Aturat"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "Activada",
"disarmed": "Desactivada",
"armed_home": "Activada, mode a casa",
"armed_away": "Activada, mode fora",
"armed_night": "Activada, mode nocturn",
"armed_custom_bypass": "Activada, bypass personalitzat",
"pending": "Pendent",
"arming": "Activant",
"disarming": "Desactivant",
"triggered": "Disparada"
}
}
},
"media_player": {
"state": {
"_": {
"off": "Apagat",
"on": "Enc\u00e8s",
"playing": "Reproduint",
"paused": "Pausat",
"idle": "Inactiu",
"standby": "En espera"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "A casa",
"not_home": "Fora"
}
}
},
"vacuum": {
"state": {
"_": {
"cleaning": "Netejant",
"docked": "Aparcat",
"error": "Error",
"idle": "Inactiu",
"off": "Apagat",
"on": "Enc\u00e8s",
"paused": "Pausat",
"returning": "Retornant a la base"
}
}
},
"fan": {
"state": {
"_": {
"off": "Apagat",
"on": "Enc\u00e8s"
}
}
},
"climate": {
"state": {
"_": {
"off": "Apagat",
"heat": "Escalfar",
"cool": "Refredar",
"heat_cool": "Escalfar/Refredar",
"auto": "Autom\u00e0tic",
"dry": "Assecar",
"fan_only": "Nom\u00e9s ventilador"
}
}
},
"automation": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
}
}
},
"calendar": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
}
}
},
"camera": {
"state": {
"_": {
"recording": "Enregistrant",
"streaming": "Transmetent v\u00eddeo",
"idle": "Inactiu"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "Configurar",
"configured": "Configurat"
}
}
},
"group": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat",
"home": "A casa",
"not_home": "Fora",
"open": "Obert",
"closed": "Tancat",
"locked": "Bloquejat",
"unlocked": "Desbloquejat",
"ok": "Correcte",
"problem": "Problema"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
}
}
},
"person": {
"state": {
"_": {
"home": "A casa",
"not_home": "Fora"
}
}
},
"plant": {
"state": {
"_": {
"ok": "Correcte",
"problem": "Problema"
}
}
},
"remote": {
"state": {
"_": {
"off": "Apagat",
"on": "Enc\u00e8s"
}
}
},
"script": {
"state": {
"_": {
"off": "Desactivat",
"on": "Activat"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "Sobre l'horitz\u00f3",
"below_horizon": "Sota l'horitz\u00f3"
}
}
},
"timer": {
"state": {
"_": {
"active": "Actiu",
"idle": "inactiu",
"paused": "Pausat"
}
}
},
"weather": {
"state": {
"_": {
"clear-night": "Ser\u00e8, nit",
"cloudy": "Ennuvolat",
"exceptional": "Excepcional",
"fog": "Boira",
"hail": "Calamarsa",
"lightning": "Llamps",
"lightning-rainy": "Tempesta",
"partlycloudy": "Parcialment ennuvolat",
"pouring": "Pluja",
"rainy": "Pluj\u00f3s",
"snowy": "Neu",
"snowy-rainy": "Aiguaneu",
"sunny": "Assolellat",
"windy": "Vent\u00f3s",
"windy-variant": "Vent\u00f3s"
}
}
}
}
}

View File

@@ -0,0 +1,349 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "Inicializace",
"dead": "Nereaguje",
"sleeping": "\u00dasporn\u00fd re\u017eim",
"ready": "P\u0159ipraveno"
},
"query_stage": {
"initializing": "Inicializace ( {query_stage} )",
"dead": "Nereaguje ({query_stage})"
}
}
},
"ebusd": {
"state": {
"day": "Den",
"night": "Noc"
}
},
"binary_sensor": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
},
"battery": {
"off": "Norm\u00e1ln\u00ed",
"on": "N\u00edzk\u00fd stav"
},
"cold": {
"off": "Norm\u00e1ln\u00ed",
"on": "Chladn\u00e9"
},
"connectivity": {
"off": "Odpojeno",
"on": "P\u0159ipojeno"
},
"door": {
"off": "Zav\u0159eno",
"on": "Otev\u0159eno"
},
"garage_door": {
"off": "Zav\u0159eno",
"on": "Otev\u0159eno"
},
"gas": {
"off": "\u017d\u00e1dn\u00fd plyn",
"on": "Zji\u0161t\u011bn plyn"
},
"heat": {
"off": "Norm\u00e1ln\u00ed",
"on": "Hork\u00e9"
},
"lock": {
"off": "Zam\u010deno",
"on": "Odem\u010deno"
},
"moisture": {
"off": "Sucho",
"on": "Vlhko"
},
"motion": {
"off": "Bez pohybu",
"on": "Zaznamen\u00e1n pohyb"
},
"occupancy": {
"off": "Volno",
"on": "Obsazeno"
},
"opening": {
"off": "Zav\u0159eno",
"on": "Otev\u0159eno"
},
"presence": {
"off": "Pry\u010d",
"on": "Doma"
},
"problem": {
"off": "V po\u0159\u00e1dku",
"on": "Probl\u00e9m"
},
"safety": {
"off": "Zaji\u0161t\u011bno",
"on": "Nezaji\u0161t\u011bno"
},
"smoke": {
"off": "\u017d\u00e1dn\u00fd d\u00fdm",
"on": "Zji\u0161t\u011bn d\u00fdm"
},
"sound": {
"off": "Ticho",
"on": "Zachycen zvuk"
},
"vibration": {
"off": "Klid",
"on": "Zji\u0161t\u011bny vibrace"
},
"window": {
"off": "Zav\u0159eno",
"on": "Otev\u0159eno"
}
}
},
"lock": {
"state": {
"_": {
"locked": "Zam\u010deno",
"unlocked": "Odem\u010deno"
}
}
},
"cover": {
"state": {
"_": {
"open": "Otev\u0159eno",
"opening": "Otev\u00edr\u00e1n\u00ed",
"closed": "Zav\u0159eno",
"closing": "Zav\u00edr\u00e1n\u00ed",
"stopped": "Zastaveno"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "Aktivn\u00ed",
"disarmed": "Neaktivn\u00ed",
"armed_home": "Aktivn\u00ed re\u017eim doma",
"armed_away": "Aktivn\u00ed re\u017eim mimo domov",
"armed_night": "Aktivn\u00ed no\u010dn\u00ed re\u017eim",
"armed_custom_bypass": "Aktivn\u00ed u\u017eivatelsk\u00fdm obejit\u00edm",
"pending": "Nadch\u00e1zej\u00edc\u00ed",
"arming": "Aktivov\u00e1n\u00ed",
"disarming": "Deaktivov\u00e1n\u00ed",
"triggered": "Spu\u0161t\u011bno"
}
}
},
"media_player": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed",
"playing": "P\u0159ehr\u00e1v\u00e1n\u00ed",
"paused": "Pozastaveno",
"idle": "Ne\u010dinn\u00fd",
"standby": "Pohotovostn\u00ed re\u017eim"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "Doma",
"not_home": "Pry\u010d"
}
}
},
"automation": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"calendar": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"camera": {
"state": {
"_": {
"recording": "Z\u00e1znam",
"streaming": "Streamov\u00e1n\u00ed",
"idle": "Ne\u010dinn\u00fd"
}
}
},
"climate": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"heat": "Topen\u00ed",
"cool": "Chlazen\u00ed",
"heat_cool": "Vyt\u00e1p\u011bn\u00ed/Chlazen\u00ed",
"auto": "Automatika",
"dry": "Vysou\u0161en\u00ed",
"fan_only": "Pouze ventil\u00e1tor"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "Nakonfigurovat",
"configured": "Nakonfigurov\u00e1no"
}
}
},
"fan": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"group": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed",
"home": "Doma",
"not_home": "Pry\u010d",
"open": "Otev\u0159eno",
"closed": "Zav\u0159eno",
"locked": "Zam\u010deno",
"unlocked": "Odem\u010deno",
"ok": "V po\u0159\u00e1dku",
"problem": "Probl\u00e9m"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"light": {
"state": {
"_": {
"off": "Nesv\u00edt\u00ed",
"on": "Sv\u00edt\u00ed"
}
}
},
"person": {
"state": {
"_": {
"home": "Doma",
"not_home": "Pry\u010d"
}
}
},
"plant": {
"state": {
"_": {
"ok": "V po\u0159\u00e1dku",
"problem": "Probl\u00e9m"
}
}
},
"remote": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"script": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "Nad horizontem",
"below_horizon": "Za horizontem"
}
}
},
"switch": {
"state": {
"_": {
"off": "Neaktivn\u00ed",
"on": "Aktivn\u00ed"
}
}
},
"vacuum": {
"state": {
"_": {
"cleaning": "\u010cist\u00ed",
"docked": "V stanici",
"error": "Chyba",
"idle": "Ne\u010dinn\u00fd",
"off": "Off",
"on": "On",
"paused": "Pozastaveno",
"returning": "N\u00e1vrat do stanice"
}
}
},
"timer": {
"state": {
"_": {
"active": "aktivn\u00ed",
"idle": "ne\u010dinn\u00e9",
"paused": "pozastaveno"
}
}
},
"weather": {
"state": {
"_": {
"clear-night": "Jasn\u00e1 noc",
"cloudy": "Zata\u017eeno",
"exceptional": "Vyj\u00edme\u010dn\u00e9",
"fog": "Mlha",
"hail": "Krupobit\u00ed",
"lightning": "Bou\u0159e",
"lightning-rainy": "Bou\u0159e a d\u00e9\u0161\u0165",
"partlycloudy": "Polojasno",
"pouring": "Lij\u00e1k",
"rainy": "D\u00e9\u0161\u0165",
"snowy": "Sn\u00edh",
"snowy-rainy": "D\u00e9\u0161\u0165 se sn\u011bhem",
"sunny": "Slune\u010dno",
"windy": "V\u011btrno",
"windy-variant": "V\u011btrno"
}
}
}
}
}

View File

@@ -0,0 +1,327 @@
{
"component": {
"sensor": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"binary_sensor": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
},
"battery": {
"off": "Arferol",
"on": "Isel"
},
"cold": {
"off": "Arferol",
"on": "Oer"
},
"connectivity": {
"off": "Wedi datgysylltu",
"on": "Cysylltiedig"
},
"door": {
"off": "Cau",
"on": "Agor"
},
"garage_door": {
"off": "Cau",
"on": "Agor"
},
"gas": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"heat": {
"off": "Arferol",
"on": "Poeth"
},
"lock": {
"off": "Cloi",
"on": "Dad-gloi"
},
"moisture": {
"off": "Sych",
"on": "Gwlyb"
},
"motion": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"occupancy": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"opening": {
"off": "Cau",
"on": "Agor"
},
"presence": {
"off": "Allan",
"on": "Gartref"
},
"problem": {
"off": "iawn",
"on": "Problem"
},
"safety": {
"off": "Diogel",
"on": "Anniogel"
},
"smoke": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"sound": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"vibration": {
"off": "Clir",
"on": "Wedi'i ganfod"
},
"window": {
"off": "Cau",
"on": "Agored"
}
}
},
"alarm_control_panel": {
"state": {
"_": {
"armed": "Arfogi",
"disarmed": "Diarfogi",
"armed_home": "Arfogi gartref",
"armed_away": "Arfog i ffwrdd",
"armed_night": "Arfog nos",
"armed_custom_bypass": "Ffordd osgoi larwm personol",
"pending": "Yn yr arfaeth",
"arming": "Arfogi",
"disarming": "Ddiarfogi",
"triggered": "Sbarduno"
}
}
},
"automation": {
"state": {
"_": {
"off": "I ffwrdd",
"on": "Ar"
}
}
},
"calendar": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"camera": {
"state": {
"_": {
"recording": "Recordio",
"streaming": "Ffrydio",
"idle": "Segur"
}
}
},
"climate": {
"state": {
"_": {
"off": "i ffwrdd",
"heat": "Gwres",
"cool": "Sefydlog",
"auto": "Awto",
"dry": "Sych",
"fan_only": "Fan yn unig"
}
}
},
"configurator": {
"state": {
"_": {
"configure": "Ffurfweddu",
"configured": "Wedi'i ffurfweddu"
}
}
},
"cover": {
"state": {
"_": {
"open": "Agor",
"opening": "Yn agor",
"closed": "Ar gau",
"closing": "Cau",
"stopped": "Stopio"
}
}
},
"device_tracker": {
"state": {
"_": {
"home": "Gartref",
"not_home": "Diim gartref"
}
}
},
"fan": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"group": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar",
"home": "Gartref",
"not_home": "Dim gartref",
"open": "Agored",
"closed": "Wedi cau",
"locked": " Cloi",
"unlocked": "Dadgloi",
"ok": "Iawn",
"problem": "Problem"
}
}
},
"input_boolean": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"light": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"lock": {
"state": {
"_": {
"locked": "Wedi cloi",
"unlocked": "Datgloi"
}
}
},
"media_player": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar",
"playing": "Chwarae",
"paused": "Wedi rhewi",
"idle": "Segur",
"standby": "Gorffwys"
}
}
},
"person": {
"state": {
"_": {
"home": "Gartref",
"not_home": "I ffwrdd"
}
}
},
"plant": {
"state": {
"_": {
"ok": "Iawn",
"problem": "Problem"
}
}
},
"remote": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"script": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"sun": {
"state": {
"_": {
"above_horizon": "Dros y gorwel",
"below_horizon": "Islaw'r gorwel"
}
}
},
"switch": {
"state": {
"_": {
"off": "i ffwrdd",
"on": "Ar"
}
}
},
"timer": {
"state": {
"_": {
"active": "gweithredol",
"idle": "segur",
"paused": "wedi rhewi"
}
}
},
"weather": {
"state": {
"_": {
"clear-night": "Clir, nos",
"cloudy": "Cymylog",
"fog": "Niwl",
"hail": "Cenllysg",
"lightning": "Mellt",
"lightning-rainy": "Mellt, glawog",
"partlycloudy": "Cymharol gymylog",
"pouring": "Arllwys",
"rainy": "Glawog",
"snowy": "Eira",
"snowy-rainy": "Eira, gwlyb",
"sunny": "Heulog",
"windy": "Gwyntog",
"windy-variant": "Gwyntog"
}
}
},
"zwave": {
"state": {
"_": {
"initializing": "Ymgychwyn",
"dead": "Marw",
"sleeping": "Cysgu",
"ready": "Barod"
},
"query_stage": {
"initializing": "Ymgychwyn ( {query_stage} )",
"dead": "Marw ({query_stage})"
}
}
}
}
}

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