Compare commits

...

64 Commits

Author SHA1 Message Date
Johannes
393bcc243b Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-31 12:58:52 +02:00
Johannes
d0d690e748 bump vers 2022-03-31 12:58:45 +02:00
joBr99
7bd3c263cf Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text) 2022-03-31 10:58:09 +00:00
Johannes
22563d1cb4 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-31 12:57:42 +02:00
Johannes
52364e05a7 add us-l 2022-03-31 12:57:37 +02:00
Johannes
ab51c44c32 sync diff 2022-03-31 12:50:34 +02:00
joBr99
d908cb7d96 fixed screensaver pagetype (add nextion2text) 2022-03-31 10:46:03 +00:00
Johannes
39c1aa6773 fixed screensaver pagetype 2022-03-31 12:45:35 +02:00
Johannes
037fc104df Update pages.py 2022-03-31 09:48:30 +02:00
Johannes
06464404c4 Update controller.py 2022-03-31 09:39:02 +02:00
joBr99
f3933ab0e2 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text) 2022-03-31 07:32:24 +00:00
Johannes
210efd1384 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-31 09:31:55 +02:00
Johannes
13073d2b70 bump to 24 for next release 2022-03-31 09:31:46 +02:00
joBr99
2f43430b2f . (add nextion2text) 2022-03-31 07:13:42 +00:00
Johannes
7ba6fcbbc9 . 2022-03-31 09:13:19 +02:00
joBr99
9ca1e2f717 Update cardEntities.txt (add nextion2text) 2022-03-31 06:59:06 +00:00
Johannes
da7e3c39c7 Update cardEntities.txt 2022-03-31 08:58:49 +02:00
joBr99
37a7a8db4f Update nextion2text.yml (add nextion2text) 2022-03-31 06:52:56 +00:00
Johannes
7773eedd45 Update nextion2text.yml 2022-03-31 08:52:39 +02:00
Johannes
9d82d849c5 Update cardEntities.txt 2022-03-31 08:49:28 +02:00
joBr99
9fdf8635a6 Update nextion2text.yml (add nextion2text) 2022-03-31 06:42:30 +00:00
Johannes
cddc3cf7a0 Update nextion2text.yml 2022-03-31 08:42:11 +02:00
joBr99
2ce12d0c71 ignore parts of cardEntities in diff (add nextion2text) 2022-03-31 06:34:28 +00:00
Johannes
aac014bb09 ignore parts of cardEntities in diff 2022-03-31 08:34:05 +02:00
joBr99
b3cc89f12a Merge pull request #103 from jmbinette/main (add nextion2text) 2022-03-31 06:31:08 +00:00
Johannes
cbf49483eb Merge pull request #103 from jmbinette/main
Updated HMI and TFT following EU mod (Daily update)
2022-03-31 08:30:50 +02:00
Johannes
4c6b3d2dda remove __pycache__ 2022-03-31 08:29:46 +02:00
jmbinette
24e8d6a597 bDown5 and bDown6 typo in Entities (add nextion2text) 2022-03-31 03:33:55 +00:00
jmbinette
c7a3965db4 bDown5 and bDown6 typo in Entities 2022-03-30 23:33:33 -04:00
jmbinette
8e53463d57 Commit (add nextion2text) 2022-03-31 03:13:55 +00:00
jmbinette
6acbe3b088 Commit 2022-03-30 23:13:30 -04:00
jmbinette
12e45e1a3e fix daily date update (add nextion2text) 2022-03-31 01:56:46 +00:00
Johannes
b4075826f3 fix daily date update 2022-03-31 00:28:42 +02:00
Johannes
147b99d254 weather 2022-03-31 00:28:27 +02:00
Johannes
88115cf04d Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-30 23:51:14 +02:00
Johannes
f92afe7bda weather update 2022-03-30 23:51:07 +02:00
joBr99
aa83e955f0 send screensaver on sleepReached (add nextion2text) 2022-03-30 21:36:50 +00:00
Johannes
10b0d75a15 send screensaver on sleepReached 2022-03-30 23:36:20 +02:00
Johannes
19aec4bb55 rename sleepReached 2022-03-30 23:30:11 +02:00
Johannes
b22f5877fd remove screensaver open event 2022-03-30 23:25:24 +02:00
Johannes
3ec432eda1 Merge pull request #101 from gerard33/patch-2
Update weather part of screensaver
2022-03-30 23:20:53 +02:00
Gerard
71804b934d Update apps.yaml 2022-03-30 23:09:02 +02:00
Gerard
fa37924f23 Add weather override examples 2022-03-30 23:08:10 +02:00
Gerard
175f4cb5e4 Update pages.py 2022-03-30 23:05:51 +02:00
joBr99
30b0c5d151 moved time and date to pageicons (add nextion2text) 2022-03-30 20:32:27 +00:00
Johannes
3f3f438a31 moved time and date to pageicons 2022-03-30 22:32:03 +02:00
Johannes
11a9be707b Update README.md 2022-03-30 22:20:32 +02:00
joBr99
3321b993c3 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text) 2022-03-30 20:07:59 +00:00
Johannes
75078020f7 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-30 22:07:31 +02:00
Johannes
5009afb9d5 add action for sleepTimeout 2022-03-30 22:07:24 +02:00
Johannes
d3dd890582 moved entering screensaver to event 2022-03-30 22:01:54 +02:00
joBr99
42164508db added fireplace icon (add nextion2text) 2022-03-30 16:55:43 +00:00
Johannes
2996a7e67c added fireplace icon 2022-03-30 18:55:19 +02:00
joBr99
7b7c1b59fa Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text) 2022-03-30 16:28:21 +00:00
Johannes
314b4c58ea Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-03-30 18:27:51 +02:00
Johannes
d67d53f7b1 added some more icons 2022-03-30 18:27:44 +02:00
Johannes
e508e9ad1a Update README.md 2022-03-30 17:36:16 +02:00
Johannes
da85a76a86 Update README.md 2022-03-30 17:35:29 +02:00
joBr99
b9dd24889e added home-export-outline and import icon (add nextion2text) 2022-03-30 15:03:47 +00:00
Johannes
4ee4d0f800 added home-export-outline and import icon 2022-03-30 17:03:21 +02:00
Johannes
df94b33e42 add note for ioBroker users 2022-03-30 14:52:52 +02:00
Johannes
5707fb7085 Delete CODEOWNERS 2022-03-30 14:07:46 +02:00
Johannes
90ab2ebef8 Update README.md 2022-03-30 14:04:50 +02:00
Johannes
2e46fc82d9 Create CODEOWNERS 2022-03-30 13:52:18 +02:00
96 changed files with 1574 additions and 1083 deletions

View File

@@ -5,6 +5,7 @@ on:
paths: paths:
- HMI/nspanel.HMI - HMI/nspanel.HMI
- HMI/US/portrait/nspanel_US_P.HMI - HMI/US/portrait/nspanel_US_P.HMI
- HMI/US/portrait/diff-ignore/cardEntities.txt
- HMI/US/landscape/nspanel_US_L.HMI - HMI/US/landscape/nspanel_US_L.HMI
- .github/workflows/nextion2text.yml - .github/workflows/nextion2text.yml
push: push:
@@ -13,6 +14,7 @@ on:
paths: paths:
- HMI/nspanel.HMI - HMI/nspanel.HMI
- HMI/US/portrait/nspanel_US_P.HMI - HMI/US/portrait/nspanel_US_P.HMI
- HMI/US/portrait/diff-ignore/cardEntities.txt
- HMI/US/landscape/nspanel_US_L.HMI - HMI/US/landscape/nspanel_US_L.HMI
- .github/workflows/nextion2text.yml - .github/workflows/nextion2text.yml

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
__pycache__/
# don't add nextion2text # don't add nextion2text
HMI/Nextion2Text.py HMI/Nextion2Text.py

View File

@@ -138,6 +138,9 @@ The following message can be used to update the content on the cardEntities Page
`event,buttonPress2,pageName,bExit,number_of_taps` `event,buttonPress2,pageName,bExit,number_of_taps`
`event,buttonPress2,pageName,sleepReached`
### startup page ### startup page
`event,startup,version,model` `event,startup,version,model`

View File

@@ -1,24 +0,0 @@
diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
--- HMI/n2t-out/Program.s.txt 2022-03-30 09:17:12.762388734 +0000
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-03-30 09:17:13.638390126 +0000
@@ -10,6 +10,6 @@
int sleepValue=0
// dim value
int dimValue=40
- // fix touch offset
- lcd_dev fffb 0002 0000 0020
+ // fix touch offset (Removed for US version)
+ //lcd_dev fffb 0002 0000 0020
page pageStartup
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
--- HMI/n2t-out/pageStartup.txt 2022-03-30 09:17:12.762388734 +0000
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-03-30 09:17:13.638390126 +0000
@@ -177,7 +177,7 @@
recmod=1
bauds=115200
// startup event
- tSend.txt="event,startup,"+tVersion.txt+",eu"
+ tSend.txt="event,startup,"+tVersion.txt+",us-l"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
// fix touch offset (Removed for US version) int dimValueNormal=100
//lcd_dev fffb 0002 0000 0020 // fix touch offset
lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup

View File

@@ -1113,12 +1113,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1145,35 +1145,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -1196,14 +1209,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -2620,12 +2620,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -2660,14 +2660,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -472,7 +472,7 @@ Picture p0
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Opacity : 127 Opacity : 127
x coordinate : 0 x coordinate : 1
y coordinate : 0 y coordinate : 0
Width : 479 Width : 479
Height : 319 Height : 319
@@ -1202,12 +1202,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1242,14 +1242,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -93,8 +93,8 @@ Text tTmp
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 : 21 x coordinate : 29
y coordinate : 147 y coordinate : 151
Width : 27 Width : 27
Height : 30 Height : 30
Effect : load Effect : load
@@ -153,8 +153,8 @@ Text tId
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 : 60
y coordinate : 167 y coordinate : 153
Width : 30 Width : 30
Height : 30 Height : 30
Effect : load Effect : load
@@ -973,12 +973,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1005,30 +1005,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1065,14 +1078,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1388,12 +1388,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1419,30 +1419,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1470,14 +1483,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1,9 +1,9 @@
Program.s Program.s
0 Component(s) 0 Component(s)
9 Line(s) of event code 11 Line(s) of event code
9 Unique line(s) of event code 11 Unique line(s) of event code
pageIcons pageIcons
5 Component(s) 7 Component(s)
0 Line(s) of event code 0 Line(s) of event code
0 Unique line(s) of event code 0 Unique line(s) of event code
pageTest pageTest
@@ -16,47 +16,47 @@ pageSerialTest
43 Unique line(s) of event code 43 Unique line(s) of event code
popupNotify popupNotify
17 Component(s) 17 Component(s)
179 Line(s) of event code 178 Line(s) of event code
118 Unique line(s) of event code 117 Unique line(s) of event code
popupShutter
19 Component(s)
179 Line(s) of event code
102 Unique line(s) of event code
screensaver
31 Component(s)
183 Line(s) of event code
133 Unique line(s) of event code
popupLight
27 Component(s)
323 Line(s) of event code
174 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
150 Line(s) of event code 150 Line(s) of event code
113 Unique line(s) of event code 113 Unique line(s) of event code
cardAlarm
35 Component(s)
276 Line(s) of event code
172 Unique line(s) of event code
cardMedia cardMedia
30 Component(s) 30 Component(s)
278 Line(s) of event code 300 Line(s) of event code
139 Unique line(s) of event code 154 Unique line(s) of event code
cardThermo screensaver
41 Component(s) 29 Component(s)
405 Line(s) of event code 182 Line(s) of event code
217 Unique line(s) of event code 137 Unique line(s) of event code
popupShutter
19 Component(s)
178 Line(s) of event code
101 Unique line(s) of event code
cardAlarm
35 Component(s)
298 Line(s) of event code
187 Unique line(s) of event code
cardGrid cardGrid
39 Component(s) 39 Component(s)
388 Line(s) of event code 397 Line(s) of event code
224 Unique line(s) of event code 233 Unique line(s) of event code
popupLight
27 Component(s)
322 Line(s) of event code
173 Unique line(s) of event code
cardEntities cardEntities
62 Component(s) 62 Component(s)
930 Line(s) of event code 939 Line(s) of event code
388 Unique line(s) of event code 397 Unique line(s) of event code
cardThermo
41 Component(s)
427 Line(s) of event code
232 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
351 Component(s) 351 Component(s)
3361 Line(s) of event code 3443 Line(s) of event code
908 Unique line(s) of event code 922 Unique line(s) of event code

View File

@@ -18,6 +18,20 @@ Page pageIcons
Fill : solid color Fill : solid color
Back. Color : 65535 Back. Color : 65535
Variable (string) vaTime
Attributes
ID : 5
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 6
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
ID : 2 ID : 2
@@ -42,8 +56,8 @@ Text tIcons
Horizontal Alignment : left Horizontal Alignment : left
Vertical Alignment : top Vertical Alignment : top
Input Type : character Input Type : character
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Word wrap : enabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0

View File

@@ -296,7 +296,7 @@ Text tMsg1
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 : 42 x coordinate : 57
y coordinate : 223 y coordinate : 223
Width : 375 Width : 375
Height : 30 Height : 30
@@ -326,9 +326,9 @@ Text tMsg2
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 : 25 x coordinate : 40
y coordinate : 256 y coordinate : 256
Width : 423 Width : 408
Height : 25 Height : 25
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -356,9 +356,9 @@ Text tMsg3
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 : 25 x coordinate : 40
y coordinate : 278 y coordinate : 278
Width : 423 Width : 408
Height : 25 Height : 25
Effect : load Effect : load
Effect Priority : 0 Effect Priority : 0
@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
@@ -462,7 +462,7 @@ Button bSendStartup
recmod=1 recmod=1
bauds=115200 bauds=115200
// startup event // startup event
tSend.txt="event,startup,"+tVersion.txt+",us-l" tSend.txt="event,startup,"+tVersion.txt+",eu"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -556,12 +556,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -727,7 +727,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -888,12 +887,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -403,7 +403,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -508,12 +507,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -532,7 +532,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -607,12 +606,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -22,19 +22,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -47,86 +46,42 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 5 ID : 4
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 11
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 22 ID : 19
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 30 ID : 27
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
ID : 3
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 452
y coordinate : 267
Width : 24
Height : 49
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 shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction Text tInstruction
Attributes Attributes
ID : 6 ID : 5
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -156,7 +111,7 @@ Text tInstruction
Text tTmp Text tTmp
Attributes Attributes
ID : 7 ID : 6
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -186,7 +141,7 @@ Text tTmp
Text tTime Text tTime
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -216,7 +171,7 @@ Text tTime
Text tDate Text tDate
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -246,7 +201,7 @@ Text tDate
Text tSend Text tSend
Attributes Attributes
ID : 12 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -276,7 +231,7 @@ Text tSend
Text tMainIcon Text tMainIcon
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
@@ -306,7 +261,7 @@ Text tMainIcon
Text tMainText Text tMainText
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
@@ -336,7 +291,7 @@ Text tMainText
Text tForecast1 Text tForecast1
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
@@ -366,7 +321,7 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
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
@@ -396,7 +351,7 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
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
@@ -426,7 +381,7 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -456,7 +411,7 @@ Text tForecast2
Text tF2Icon Text tF2Icon
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
@@ -486,7 +441,7 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 20 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -516,13 +471,13 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 21 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 : 46 x coordinate : 61
y coordinate : 195 y coordinate : 195
Width : 360 Width : 360
Height : 2 Height : 2
@@ -546,7 +501,7 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 23 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -576,7 +531,7 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 24 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -606,7 +561,7 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 25 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -636,7 +591,7 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 26 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -666,7 +621,7 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 27 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -696,7 +651,7 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 28 ID : 25
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -726,7 +681,7 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 29 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -773,7 +728,7 @@ Picture p0
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 4 ID : 3
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -838,9 +793,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -849,8 +804,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -962,6 +917,26 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
ID : 28
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 2 ID : 2
@@ -970,7 +945,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -985,6 +960,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
// fix touch offset (Removed for US version) int dimValueNormal=100
//lcd_dev fffb 0002 0000 0020 // fix touch offset
lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup

View File

@@ -583,12 +583,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -615,35 +615,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -665,14 +678,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1675,12 +1675,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1714,14 +1714,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -765,12 +765,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -804,14 +804,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -551,12 +551,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -583,30 +583,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -642,14 +655,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -835,12 +835,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -866,30 +866,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -916,14 +929,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -10,6 +10,18 @@ Page pageIcons
Swide left page ID : disabled Swide left page ID : disabled
Swide right page ID : disabled Swide right page ID : disabled
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
Scope : global Scope : global
@@ -17,8 +29,8 @@ Text tIcons
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Text tTmp1 Text tTmp1
Attributes Attributes

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0
@@ -177,7 +177,7 @@ Button bSendStartup
recmod=1 recmod=1
bauds=115200 bauds=115200
// startup event // startup event
tSend.txt="event,startup,"+tVersion.txt+",us-l" tSend.txt="event,startup,"+tVersion.txt+",eu"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -261,12 +261,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -382,7 +382,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -542,12 +541,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -195,7 +195,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -299,12 +298,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -268,7 +268,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -342,12 +341,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -14,19 +14,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -39,18 +38,18 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -58,18 +57,6 @@ Variable (string) strCommand
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
Scope : local Scope : local
@@ -81,15 +68,6 @@ Variable (int32) vaTap
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
Text tInstruction Text tInstruction
Attributes Attributes
Scope : local Scope : local
@@ -373,9 +351,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -384,8 +362,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -497,6 +475,25 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
Scope: local Scope: local
@@ -504,7 +501,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -519,6 +516,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

Binary file not shown.

Binary file not shown.

View File

@@ -1,18 +1,18 @@
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-03-30 09:17:12.762388734 +0000 --- HMI/n2t-out/Program.s.txt 2022-03-31 10:58:08.149531933 +0000
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-03-30 09:17:13.206389440 +0000 +++ HMI/US/portrait/n2t-out/Program.s.txt 2022-03-31 10:58:08.637532153 +0000
@@ -10,6 +10,6 @@ @@ -11,6 +11,6 @@
int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
int dimValueNormal=100
- // fix touch offset - // fix touch offset
- lcd_dev fffb 0002 0000 0020 - lcd_dev fffb 0002 0000 0020
+ // 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/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-03-30 09:17:12.766388740 +0000 --- HMI/n2t-out/cardEntities.txt 2022-03-31 10:58:08.149531933 +0000
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-03-30 09:17:13.206389440 +0000 +++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-03-31 10:58:08.637532153 +0000
@@ -62,6 +62,26 @@ @@ -62,6 +62,26 @@
vis bText4,0 vis bText4,0
vis hSlider4,0 vis hSlider4,0
@@ -247,7 +247,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ +
+ Events + Events
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn4.txt+",down" + tSend.txt="event,buttonPress2,"+entn5.txt+",down"
+ //send calc crc + //send calc crc
+ btlen tSend.txt,sys0 + btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC + crcrest 1,0xffff // reset CRC
@@ -347,7 +347,7 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
+ +
+ Events + Events
+ Touch Press Event + Touch Press Event
+ tSend.txt="event,buttonPress2,"+entn4.txt+",down" + tSend.txt="event,buttonPress2,"+entn6.txt+",down"
+ //send calc crc + //send calc crc
+ btlen tSend.txt,sys0 + btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC + crcrest 1,0xffff // reset CRC
@@ -780,36 +780,9 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
} }
if(tInstruction.txt=="pageType") if(tInstruction.txt=="pageType")
{ {
diff -bur HMI/n2t-out/cardThermo.txt HMI/US/portrait/n2t-out/cardThermo.txt
--- HMI/n2t-out/cardThermo.txt 2022-03-30 09:17:12.766388740 +0000
+++ HMI/US/portrait/n2t-out/cardThermo.txt 2022-03-30 09:17:13.206389440 +0000
@@ -17,6 +17,7 @@
vis tInstruction,0
vis tTmp,0
vis tId,0
+ vis nPageDisp,0
vis xTempMin,0
vis xTempMax,0
vis xTempStep,0
@@ -98,6 +99,15 @@
Text :
Max. Text Size: 10
+Number nPageDisp
+ Attributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+ Value : 0
+
XFloat xTempCurr
Attributes
Scope : local
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-03-30 09:17:12.762388734 +0000 --- HMI/n2t-out/pageStartup.txt 2022-03-31 10:58:08.149531933 +0000
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-03-30 09:17:13.206389440 +0000 +++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-03-31 10:58:08.637532153 +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

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
int dimValueNormal=100
// 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

View File

@@ -1113,12 +1113,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1145,35 +1145,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -1196,14 +1209,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -2074,7 +2074,7 @@ Button bDown5
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",down" tSend.txt="event,buttonPress2,"+entn5.txt+",down"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -2262,7 +2262,7 @@ Button bDown6
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",down" tSend.txt="event,buttonPress2,"+entn6.txt+",down"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -3710,12 +3710,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -3750,14 +3750,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1202,12 +1202,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1242,14 +1242,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -973,12 +973,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1005,30 +1005,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1065,14 +1078,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -25,7 +25,6 @@ Page cardThermo
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis tId,0 vis tId,0
vis nPageDisp,0
vis xTempMin,0 vis xTempMin,0
vis xTempMax,0 vis xTempMax,0
vis xTempStep,0 vis xTempStep,0
@@ -43,114 +42,84 @@ Page cardThermo
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 7 ID : 6
Scope : local Scope : local
Text : Text :
Max. Text Size: 250 Max. Text Size: 250
Variable (string) entn Variable (string) entn
Attributes Attributes
ID : 22 ID : 21
Scope : local Scope : local
Text : Text :
Max. Text Size: 50 Max. Text Size: 50
Variable (string) va0 Variable (string) va0
Attributes Attributes
ID : 33 ID : 32
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va1 Variable (string) va1
Attributes Attributes
ID : 34 ID : 33
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va2 Variable (string) va2
Attributes Attributes
ID : 35 ID : 34
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va3 Variable (string) va3
Attributes Attributes
ID : 36 ID : 35
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va4 Variable (string) va4
Attributes Attributes
ID : 37 ID : 36
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va5 Variable (string) va5
Attributes Attributes
ID : 38 ID : 37
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va6 Variable (string) va6
Attributes Attributes
ID : 39 ID : 38
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va7 Variable (string) va7
Attributes Attributes
ID : 40 ID : 39
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Variable (string) va8 Variable (string) va8
Attributes Attributes
ID : 41 ID : 40
Scope : local Scope : local
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Number nPageDisp
Attributes
ID : 5
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 275
y coordinate : 1
Width : 42
Height : 24
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 shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
XFloat xTempCurr XFloat xTempCurr
Attributes Attributes
ID : 14 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -180,7 +149,7 @@ XFloat xTempCurr
XFloat xTempDest XFloat xTempDest
Attributes Attributes
ID : 16 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -210,7 +179,7 @@ XFloat xTempDest
XFloat xTempMin XFloat xTempMin
Attributes Attributes
ID : 17 ID : 16
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -240,7 +209,7 @@ XFloat xTempMin
XFloat xTempMax XFloat xTempMax
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
@@ -270,7 +239,7 @@ XFloat xTempMax
XFloat xTempStep XFloat xTempStep
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
@@ -360,7 +329,7 @@ Text tTmp
Text tInstruction Text tInstruction
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -390,7 +359,7 @@ Text tInstruction
Text tId Text tId
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -420,7 +389,7 @@ Text tId
Text tHeading Text tHeading
Attributes Attributes
ID : 10 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -450,7 +419,7 @@ Text tHeading
Text tStatus Text tStatus
Attributes Attributes
ID : 11 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -480,7 +449,7 @@ Text tStatus
Text t2 Text t2
Attributes Attributes
ID : 15 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -574,7 +543,7 @@ Button bNext
Button bDown Button bDown
Attributes Attributes
ID : 12 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -628,7 +597,7 @@ Button bDown
Button bUp Button bUp
Attributes Attributes
ID : 13 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -682,7 +651,7 @@ Button bUp
Button bPrev Button bPrev
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
@@ -729,7 +698,7 @@ Button bPrev
Dual-state Button bt0 Dual-state Button bt0
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
@@ -778,7 +747,7 @@ Dual-state Button bt0
Dual-state Button bt1 Dual-state Button bt1
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
@@ -827,7 +796,7 @@ Dual-state Button bt1
Dual-state Button bt2 Dual-state Button bt2
Attributes Attributes
ID : 26 ID : 25
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -876,7 +845,7 @@ Dual-state Button bt2
Dual-state Button bt3 Dual-state Button bt3
Attributes Attributes
ID : 27 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -925,7 +894,7 @@ Dual-state Button bt3
Dual-state Button bt4 Dual-state Button bt4
Attributes Attributes
ID : 28 ID : 27
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -974,7 +943,7 @@ Dual-state Button bt4
Dual-state Button bt5 Dual-state Button bt5
Attributes Attributes
ID : 29 ID : 28
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1023,7 +992,7 @@ Dual-state Button bt5
Dual-state Button bt6 Dual-state Button bt6
Attributes Attributes
ID : 30 ID : 29
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1072,7 +1041,7 @@ Dual-state Button bt6
Dual-state Button bt7 Dual-state Button bt7
Attributes Attributes
ID : 31 ID : 30
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1121,7 +1090,7 @@ Dual-state Button bt7
Dual-state Button bt8 Dual-state Button bt8
Attributes Attributes
ID : 32 ID : 31
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -1170,7 +1139,7 @@ Dual-state Button bt8
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 6 ID : 5
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -1419,12 +1388,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1450,30 +1419,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1494,27 +1476,38 @@ Timer tmSerial
Timer tmSleep Timer tmSleep
Attributes Attributes
ID : 20 ID : 19
Scope : local Scope : local
Period (ms): 1000 Period (ms): 1000
Enabled : yes Enabled : yes
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 21 ID : 20
Scope: local Scope: local
Value: 0 Value: 0

View File

@@ -1,62 +1,62 @@
Program.s Program.s
0 Component(s) 0 Component(s)
9 Line(s) of event code 10 Line(s) of event code
9 Unique line(s) of event code 10 Unique line(s) of event code
pageSerialTest pageSerialTest
13 Component(s) 13 Component(s)
48 Line(s) of event code 48 Line(s) of event code
43 Unique line(s) of event code 43 Unique line(s) of event code
popupShutter pageIcons
19 Component(s) 7 Component(s)
179 Line(s) of event code 0 Line(s) of event code
102 Unique line(s) of event code 0 Unique line(s) of event code
popupNotify popupNotify
17 Component(s) 17 Component(s)
179 Line(s) of event code 178 Line(s) of event code
118 Unique line(s) of event code 117 Unique line(s) of event code
cardAlarm
35 Component(s)
298 Line(s) of event code
187 Unique line(s) of event code
pageTest pageTest
13 Component(s) 13 Component(s)
13 Line(s) of event code 13 Line(s) of event code
13 Unique line(s) of event code 13 Unique line(s) of event code
cardAlarm
35 Component(s)
276 Line(s) of event code
172 Unique line(s) of event code
popupLight
27 Component(s)
323 Line(s) of event code
174 Unique line(s) of event code
cardThermo
42 Component(s)
406 Line(s) of event code
218 Unique line(s) of event code
screensaver
31 Component(s)
183 Line(s) of event code
133 Unique line(s) of event code
cardGrid
39 Component(s)
388 Line(s) of event code
224 Unique line(s) of event code
cardMedia
30 Component(s)
278 Line(s) of event code
139 Unique line(s) of event code
pageIcons
5 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
150 Line(s) of event code 150 Line(s) of event code
113 Unique line(s) of event code 113 Unique line(s) of event code
popupShutter
19 Component(s)
178 Line(s) of event code
101 Unique line(s) of event code
cardMedia
30 Component(s)
300 Line(s) of event code
154 Unique line(s) of event code
cardGrid
39 Component(s)
397 Line(s) of event code
233 Unique line(s) of event code
screensaver
29 Component(s)
182 Line(s) of event code
137 Unique line(s) of event code
popupLight
27 Component(s)
322 Line(s) of event code
173 Unique line(s) of event code
cardThermo
41 Component(s)
427 Line(s) of event code
232 Unique line(s) of event code
cardEntities cardEntities
86 Component(s) 86 Component(s)
1320 Line(s) of event code 1329 Line(s) of event code
526 Unique line(s) of event code 537 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
376 Component(s) 375 Component(s)
3752 Line(s) of event code 3832 Line(s) of event code
1020 Unique line(s) of event code 1034 Unique line(s) of event code

View File

@@ -18,6 +18,20 @@ Page pageIcons
Fill : solid color Fill : solid color
Back. Color : 65535 Back. Color : 65535
Variable (string) vaTime
Attributes
ID : 5
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 6
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
ID : 2 ID : 2
@@ -42,8 +56,8 @@ Text tIcons
Horizontal Alignment : left Horizontal Alignment : left
Vertical Alignment : top Vertical Alignment : top
Input Type : character Input Type : character
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Word wrap : enabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
@@ -556,12 +556,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -727,7 +727,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -888,12 +887,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -403,7 +403,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -508,12 +507,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -532,7 +532,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -607,12 +606,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -22,19 +22,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -47,86 +46,42 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 5 ID : 4
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 11
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 22 ID : 19
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 30 ID : 27
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
ID : 3
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 239
y coordinate : 430
Width : 24
Height : 49
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 shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction Text tInstruction
Attributes Attributes
ID : 6 ID : 5
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -156,7 +111,7 @@ Text tInstruction
Text tTmp Text tTmp
Attributes Attributes
ID : 7 ID : 6
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -186,7 +141,7 @@ Text tTmp
Text tTime Text tTime
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -216,7 +171,7 @@ Text tTime
Text tDate Text tDate
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -246,7 +201,7 @@ Text tDate
Text tSend Text tSend
Attributes Attributes
ID : 12 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -276,7 +231,7 @@ Text tSend
Text tMainIcon Text tMainIcon
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
@@ -306,7 +261,7 @@ Text tMainIcon
Text tMainText Text tMainText
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
@@ -336,7 +291,7 @@ Text tMainText
Text tForecast1 Text tForecast1
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
@@ -366,7 +321,7 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
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
@@ -396,7 +351,7 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
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
@@ -426,7 +381,7 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -456,7 +411,7 @@ Text tForecast2
Text tF2Icon Text tF2Icon
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
@@ -486,7 +441,7 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 20 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -516,7 +471,7 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 21 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -546,7 +501,7 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 23 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -576,7 +531,7 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 24 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -606,7 +561,7 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 25 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -636,7 +591,7 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 26 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -666,7 +621,7 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 27 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -696,7 +651,7 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 28 ID : 25
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -726,7 +681,7 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 29 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -773,7 +728,7 @@ Picture p0
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 4 ID : 3
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -838,9 +793,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -849,8 +804,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -962,6 +917,26 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
ID : 28
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 2 ID : 2
@@ -970,7 +945,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -985,6 +960,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
int dimValueNormal=100
// 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

View File

@@ -583,12 +583,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -615,35 +615,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -665,14 +678,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1047,7 +1047,7 @@ Button bDown5
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",down" tSend.txt="event,buttonPress2,"+entn5.txt+",down"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -1147,7 +1147,7 @@ Button bDown6
Events Events
Touch Press Event Touch Press Event
tSend.txt="event,buttonPress2,"+entn4.txt+",down" tSend.txt="event,buttonPress2,"+entn6.txt+",down"
//send calc crc //send calc crc
btlen tSend.txt,sys0 btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC crcrest 1,0xffff // reset CRC
@@ -2379,12 +2379,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -2418,14 +2418,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -765,12 +765,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -804,14 +804,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -551,12 +551,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -583,30 +583,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -642,14 +655,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -17,7 +17,6 @@ Page cardThermo
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis tId,0 vis tId,0
vis nPageDisp,0
vis xTempMin,0 vis xTempMin,0
vis xTempMax,0 vis xTempMax,0
vis xTempStep,0 vis xTempStep,0
@@ -99,15 +98,6 @@ Variable (string) va8
Text : Text :
Max. Text Size: 10 Max. Text Size: 10
Number nPageDisp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
XFloat xTempCurr XFloat xTempCurr
Attributes Attributes
Scope : local Scope : local
@@ -845,12 +835,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -876,30 +866,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -926,14 +929,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -10,6 +10,18 @@ Page pageIcons
Swide left page ID : disabled Swide left page ID : disabled
Swide right page ID : disabled Swide right page ID : disabled
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
Scope : global Scope : global
@@ -17,8 +29,8 @@ Text tIcons
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Text tTmp1 Text tTmp1
Attributes Attributes

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0
@@ -261,12 +261,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -382,7 +382,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -542,12 +541,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -195,7 +195,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -299,12 +298,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -268,7 +268,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -342,12 +341,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -14,19 +14,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -39,18 +38,18 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -58,18 +57,6 @@ Variable (string) strCommand
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
Scope : local Scope : local
@@ -81,15 +68,6 @@ Variable (int32) vaTap
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
Text tInstruction Text tInstruction
Attributes Attributes
Scope : local Scope : local
@@ -373,9 +351,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -384,8 +362,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -497,6 +475,25 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
Scope: local Scope: local
@@ -504,7 +501,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -519,6 +516,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

Binary file not shown.

Binary file not shown.

View File

@@ -47,7 +47,15 @@ icons = [
"shield-airplane", "shield-airplane",
"bell-ring", "bell-ring",
"ray-vertex", "ray-vertex",
"script-text" "script-text",
"home-import-outline",
"home-export-outline",
"arrow-up-bold",
"arrow-down-bold",
"cast-audio",
"cast",
"radio",
"fireplace"
] ]

View File

@@ -50,3 +50,11 @@ ID | MD Icon Name | Icon
43 | bell-ring | ![bell-ring](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/bell-ring.svg) 43 | bell-ring | ![bell-ring](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/bell-ring.svg)
44 | ray-vertex | ![ray-vertex](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/ray-vertex.svg) 44 | ray-vertex | ![ray-vertex](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/ray-vertex.svg)
45 | script-text | ![script-text](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/script-text.svg) 45 | script-text | ![script-text](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/script-text.svg)
46 | home-import-outline | ![home-import-outline](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/home-import-outline.svg)
47 | home-export-outline | ![home-export-outline](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/home-export-outline.svg)
48 | arrow-up-bold | ![arrow-up-bold](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/arrow-up-bold.svg)
49 | arrow-down-bold | ![arrow-down-bold](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/arrow-down-bold.svg)
50 | cast-audio | ![cast-audio](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/cast-audio.svg)
51 | cast | ![cast](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/cast.svg)
52 | radio | ![radio](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/radio.svg)
53 | fireplace | ![fireplace](https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/0aeb4d612644d80d9d1fe242f705f362985de5dc/svg/fireplace.svg)

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
int dimValueNormal=100
// fix touch offset // fix touch offset
lcd_dev fffb 0002 0000 0020 lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup

View File

@@ -1113,12 +1113,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1145,35 +1145,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -1196,14 +1209,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -2620,12 +2620,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -2660,14 +2660,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1202,12 +1202,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1242,14 +1242,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -973,12 +973,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1005,30 +1005,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1065,14 +1078,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1388,12 +1388,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1419,30 +1419,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -1470,14 +1483,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1,9 +1,9 @@
Program.s Program.s
0 Component(s) 0 Component(s)
10 Line(s) of event code 11 Line(s) of event code
10 Unique line(s) of event code 11 Unique line(s) of event code
pageIcons pageIcons
5 Component(s) 7 Component(s)
0 Line(s) of event code 0 Line(s) of event code
0 Unique line(s) of event code 0 Unique line(s) of event code
pageTest pageTest
@@ -14,49 +14,49 @@ pageSerialTest
13 Component(s) 13 Component(s)
48 Line(s) of event code 48 Line(s) of event code
43 Unique line(s) of event code 43 Unique line(s) of event code
popupShutter
19 Component(s)
179 Line(s) of event code
102 Unique line(s) of event code
popupNotify popupNotify
17 Component(s) 17 Component(s)
179 Line(s) of event code 178 Line(s) of event code
118 Unique line(s) of event code 117 Unique line(s) of event code
cardGrid popupShutter
39 Component(s) 19 Component(s)
388 Line(s) of event code 178 Line(s) of event code
224 Unique line(s) of event code 101 Unique line(s) of event code
cardThermo
41 Component(s)
427 Line(s) of event code
232 Unique line(s) of event code
pageStartup pageStartup
19 Component(s) 19 Component(s)
150 Line(s) of event code 150 Line(s) of event code
113 Unique line(s) of event code 113 Unique line(s) of event code
cardMedia
30 Component(s)
278 Line(s) of event code
139 Unique line(s) of event code
cardAlarm
35 Component(s)
276 Line(s) of event code
172 Unique line(s) of event code
popupLight popupLight
27 Component(s) 27 Component(s)
323 Line(s) of event code 322 Line(s) of event code
174 Unique line(s) of event code 173 Unique line(s) of event code
cardMedia
30 Component(s)
300 Line(s) of event code
154 Unique line(s) of event code
cardAlarm
35 Component(s)
298 Line(s) of event code
187 Unique line(s) of event code
screensaver screensaver
31 Component(s) 29 Component(s)
183 Line(s) of event code 182 Line(s) of event code
133 Unique line(s) of event code 137 Unique line(s) of event code
cardThermo cardGrid
41 Component(s) 39 Component(s)
405 Line(s) of event code 397 Line(s) of event code
217 Unique line(s) of event code 233 Unique line(s) of event code
cardEntities cardEntities
62 Component(s) 62 Component(s)
930 Line(s) of event code 939 Line(s) of event code
388 Unique line(s) of event code 397 Unique line(s) of event code
Total Total
13 Page(s) 13 Page(s)
351 Component(s) 351 Component(s)
3362 Line(s) of event code 3443 Line(s) of event code
909 Unique line(s) of event code 922 Unique line(s) of event code

View File

@@ -18,6 +18,20 @@ Page pageIcons
Fill : solid color Fill : solid color
Back. Color : 65535 Back. Color : 65535
Variable (string) vaTime
Attributes
ID : 5
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 6
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
ID : 2 ID : 2
@@ -42,8 +56,8 @@ Text tIcons
Horizontal Alignment : left Horizontal Alignment : left
Vertical Alignment : top Vertical Alignment : top
Input Type : character Input Type : character
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Word wrap : enabled Word wrap : enabled
Horizontal Spacing : 0 Horizontal Spacing : 0
Vertical Spacing : 0 Vertical Spacing : 0

View File

@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center Horizontal Alignment : center
Vertical Alignment : center Vertical Alignment : center
Input Type : character Input Type : character
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Word wrap : disabled Word wrap : disabled
Horizontal Spacing : 0 Horizontal Spacing : 0
@@ -556,12 +556,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -727,7 +727,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -888,12 +887,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -403,7 +403,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -508,12 +507,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -532,7 +532,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -607,12 +606,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -22,19 +22,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -47,86 +46,42 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
ID : 5 ID : 4
Scope : local Scope : local
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
ID : 11
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
ID : 22 ID : 19
Scope : local Scope : local
Text : Text :
Max. Text Size: 25 Max. Text Size: 25
Variable (int32) vaTap Variable (int32) vaTap
Attributes Attributes
ID : 30 ID : 27
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
ID : 3
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 452
y coordinate : 267
Width : 24
Height : 49
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 shown : all
Format : decimal
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tInstruction Text tInstruction
Attributes Attributes
ID : 6 ID : 5
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -156,7 +111,7 @@ Text tInstruction
Text tTmp Text tTmp
Attributes Attributes
ID : 7 ID : 6
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -186,7 +141,7 @@ Text tTmp
Text tTime Text tTime
Attributes Attributes
ID : 8 ID : 7
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -216,7 +171,7 @@ Text tTime
Text tDate Text tDate
Attributes Attributes
ID : 9 ID : 8
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -246,7 +201,7 @@ Text tDate
Text tSend Text tSend
Attributes Attributes
ID : 12 ID : 9
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -276,7 +231,7 @@ Text tSend
Text tMainIcon Text tMainIcon
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
@@ -306,7 +261,7 @@ Text tMainIcon
Text tMainText Text tMainText
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
@@ -336,7 +291,7 @@ Text tMainText
Text tForecast1 Text tForecast1
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
@@ -366,7 +321,7 @@ Text tForecast1
Text tForecast1Val Text tForecast1Val
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
@@ -396,7 +351,7 @@ Text tForecast1Val
Text tF1Icon Text tF1Icon
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
@@ -426,7 +381,7 @@ Text tF1Icon
Text tForecast2 Text tForecast2
Attributes Attributes
ID : 18 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -456,7 +411,7 @@ Text tForecast2
Text tF2Icon Text tF2Icon
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
@@ -486,7 +441,7 @@ Text tF2Icon
Text tForecast2Val Text tForecast2Val
Attributes Attributes
ID : 20 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -516,7 +471,7 @@ Text tForecast2Val
Text t10 Text t10
Attributes Attributes
ID : 21 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -546,7 +501,7 @@ Text t10
Text tAMPM Text tAMPM
Attributes Attributes
ID : 23 ID : 20
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -576,7 +531,7 @@ Text tAMPM
Text tForecast3Val Text tForecast3Val
Attributes Attributes
ID : 24 ID : 21
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -606,7 +561,7 @@ Text tForecast3Val
Text tF3Icon Text tF3Icon
Attributes Attributes
ID : 25 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -636,7 +591,7 @@ Text tF3Icon
Text tForecast3 Text tForecast3
Attributes Attributes
ID : 26 ID : 23
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -666,7 +621,7 @@ Text tForecast3
Text tForecast4 Text tForecast4
Attributes Attributes
ID : 27 ID : 24
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -696,7 +651,7 @@ Text tForecast4
Text tF4Icon Text tF4Icon
Attributes Attributes
ID : 28 ID : 25
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -726,7 +681,7 @@ Text tF4Icon
Text tForecast4Val Text tForecast4Val
Attributes Attributes
ID : 29 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Disable release event after dragging: 0 Disable release event after dragging: 0
@@ -773,7 +728,7 @@ Picture p0
Timer tmSerial Timer tmSerial
Attributes Attributes
ID : 4 ID : 3
Scope : local Scope : local
Period (ms): 50 Period (ms): 50
Enabled : yes Enabled : yes
@@ -838,9 +793,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -849,8 +804,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -962,6 +917,26 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
ID : 28
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
ID : 2 ID : 2
@@ -970,7 +945,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -985,6 +960,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

View File

@@ -10,6 +10,7 @@ Program.s
int sleepValue=0 int sleepValue=0
// dim value // dim value
int dimValue=40 int dimValue=40
int dimValueNormal=100
// fix touch offset // fix touch offset
lcd_dev fffb 0002 0000 0020 lcd_dev fffb 0002 0000 0020
page pageStartup page pageStartup

View File

@@ -583,12 +583,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -615,35 +615,48 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardMedia")
{ {
page cardMedia page cardMedia
} }
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
} }
// end of user code // end of user code
udelete payloadLength-1 udelete payloadLength-1
@@ -665,14 +678,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -1675,12 +1675,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -1714,14 +1714,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardEntities"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -765,12 +765,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -804,14 +804,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardGrid"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -551,12 +551,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -583,30 +583,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardThermo") if(tId.txt=="cardGrid")
{ {
page cardThermo page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -642,14 +655,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardMedia"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -835,12 +835,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {
@@ -866,30 +866,43 @@ Timer tmSerial
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1 udelete payloadLength-1
bufferPos=0 bufferPos=0
if(tId.txt=="popupLight") if(tId.txt=="pageStartup")
{ {
pageIcons.tTmp1.txt=tTmp.txt page pageStartup
page popupLight }
if(tId.txt=="screensaver")
{
page screensaver
} }
if(tId.txt=="cardEntities") if(tId.txt=="cardEntities")
{ {
page cardEntities page cardEntities
} }
if(tId.txt=="cardMedia") if(tId.txt=="cardGrid")
{ {
page cardMedia page cardGrid
} }
if(tId.txt=="pageStartup") if(tId.txt=="popupLight")
{ {
page pageStartup pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
} }
if(tId.txt=="popupNotify") if(tId.txt=="popupNotify")
{ {
page popupNotify page popupNotify
} }
if(tId.txt=="cardGrid") if(tId.txt=="cardThermo")
{ {
page cardGrid page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
} }
if(tId.txt=="cardAlarm") if(tId.txt=="cardAlarm")
{ {
@@ -916,14 +929,25 @@ Timer tmSleep
Events Events
Timer Event Timer Event
if(sleepTimeout!=0) if(sleepTimeout!=0&&dimValue!=dim)
{ {
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
page screensaver dim=dimValue
tSend.txt="event,sleepReached,cardThermo"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,1
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
} }
} }

View File

@@ -10,6 +10,18 @@ Page pageIcons
Swide left page ID : disabled Swide left page ID : disabled
Swide right page ID : disabled Swide right page ID : disabled
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Text tIcons Text tIcons
Attributes Attributes
Scope : global Scope : global
@@ -17,8 +29,8 @@ Text tIcons
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text :  Text : 
Max. Text Size : 150 Max. Text Size : 170
Text tTmp1 Text tTmp1
Attributes Attributes

View File

@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0 Disable release event after dragging: 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard : none Associated Keyboard : none
Text : 23 Text : 25
Max. Text Size : 10 Max. Text Size : 10
Picture p0 Picture p0
@@ -261,12 +261,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -382,7 +382,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -542,12 +541,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -195,7 +195,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -299,12 +298,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="dimmode") if(tInstruction.txt=="dimmode")
{ {

View File

@@ -268,7 +268,6 @@ Timer tmSleep
sleepValue+=1 sleepValue+=1
if(sleepTimeout<=sleepValue) if(sleepTimeout<=sleepValue)
{ {
screensaver.originPage.val=dp
sleepValue=0 sleepValue=0
click b0,1 click b0,1
click b0,0 click b0,0
@@ -342,12 +341,12 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
// get set time to global variable // get set time to global variable
spstr strCommand.txt,screensaver.vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
} }
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
// get set date to global variable // get set date to global variable
spstr strCommand.txt,screensaver.vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {

View File

@@ -14,19 +14,18 @@ Page screensaver
Preinitialize Event Preinitialize Event
recmod=1 recmod=1
bauds=115200 bauds=115200
vis originPage,0
vis tInstruction,0 vis tInstruction,0
vis tTmp,0 vis tTmp,0
vis p0,0 vis p0,0
//load gloabl time string from pageIcons //load gloabl time string from pageIcons
//tTime.txt=vaTime.txt //tTime.txt=vaTime.txt
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
} }
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
dim=dimValue dim=dimValue
vis tSend,0 vis tSend,0
//page open event //page open event
@@ -39,18 +38,18 @@ Page screensaver
tForecast2.txt="" tForecast2.txt=""
tF2Icon.txt="" tF2Icon.txt=""
tForecast2Val.txt="" tForecast2Val.txt=""
tSend.txt="event,screensaverOpen" //tSend.txt="event,screensaverOpen"
//send calc crc //send calc crc
btlen tSend.txt,sys0 //btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC //crcrest 1,0xffff // reset CRC
crcputh 55 bb //crcputh 55 bb
crcputs sys0,1 //crcputs sys0,1
crcputs tSend.txt,0 //crcputs tSend.txt,0
//send cmd //send cmd
printh 55 bb //printh 55 bb
prints sys0,2 //prints sys0,2
prints tSend.txt,0 //prints tSend.txt,0
prints crcval,2 //prints crcval,2
Variable (string) strCommand Variable (string) strCommand
Attributes Attributes
@@ -58,18 +57,6 @@ Variable (string) strCommand
Text : Text :
Max. Text Size: 200 Max. Text Size: 200
Variable (string) vaTime
Attributes
Scope : global
Text :
Max. Text Size: 15
Variable (string) vaDate
Attributes
Scope : global
Text :
Max. Text Size: 30
Variable (string) tId Variable (string) tId
Attributes Attributes
Scope : local Scope : local
@@ -81,15 +68,6 @@ Variable (int32) vaTap
Scope: local Scope: local
Value: 0 Value: 0
Number originPage
Attributes
Scope : global
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Value : 0
Text tInstruction Text tInstruction
Attributes Attributes
Scope : local Scope : local
@@ -373,9 +351,9 @@ Timer tmSerial
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {
//get set time to global variable //get set time to global variable
spstr strCommand.txt,vaTime.txt,",",1 spstr strCommand.txt,pageIcons.vaTime.txt,",",1
spstr vaTime.txt,tTime.txt,"?",0 spstr pageIcons.vaTime.txt,tTime.txt,"?",0
spstr vaTime.txt,tAMPM.txt,"?",1 spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
if(tAMPM.txt=="") if(tAMPM.txt=="")
{ {
vis tAMPM,0 vis tAMPM,0
@@ -384,8 +362,8 @@ Timer tmSerial
if(tInstruction.txt=="date") if(tInstruction.txt=="date")
{ {
//get set date to global variable //get set date to global variable
spstr strCommand.txt,vaDate.txt,"?",1 spstr strCommand.txt,pageIcons.vaDate.txt,"?",1
tDate.txt=vaDate.txt tDate.txt=pageIcons.vaDate.txt
} }
if(tInstruction.txt=="timeout") if(tInstruction.txt=="timeout")
{ {
@@ -497,6 +475,25 @@ Timer tmSerial
} }
} }
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
vaTap.val=0
}
}
TouchCap tc0 TouchCap tc0
Attributes Attributes
Scope: local Scope: local
@@ -504,7 +501,7 @@ TouchCap tc0
Events Events
Touch Press Event Touch Press Event
dim=100 dim=dimValueNormal
vaTap.val+=1 vaTap.val+=1
covx vaTap.val,tTmp.txt,0,0 covx vaTap.val,tTmp.txt,0,0
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
@@ -519,6 +516,4 @@ TouchCap tc0
prints sys0,2 prints sys0,2
prints tSend.txt,0 prints tSend.txt,0
prints crcval,2 prints crcval,2
//dim=100
//page originPage.val

Binary file not shown.

Binary file not shown.

View File

@@ -181,7 +181,7 @@ See Tasmota [MQTT Documentation](https://tasmota.github.io/docs/MQTT/) for more
### Upload Berry Driver to Tasmota ### Upload Berry Driver to Tasmota
1. Download the autoexec.be berry driver from the latest release. (Development Version [Berry Driver from this Repository](tasmota/autoexec.be)) 1. Download the autoexec.be from the repository: [Berry Driver](tasmota/autoexec.be)
2. Go to `Consoles` > `Manage File System` in Tasmota and upload the previously downloaded file. 2. Go to `Consoles` > `Manage File System` in Tasmota and upload the previously downloaded file.
@@ -189,6 +189,8 @@ See Tasmota [MQTT Documentation](https://tasmota.github.io/docs/MQTT/) for more
### Flash Firmware to Nextion Screen ### Flash Firmware to Nextion Screen
Note for ioBroker Users: Check the Release Notes, if the ioBroker Backend is not up to date with the current release there will be a note and you have to flash the latest compatible version from there.
#### Use your own Webserver #### Use your own Webserver
Upload the nspanel.tft from the lastest release to a Webserver (for example www folder of Home Assistant) and execute the following command in Tasmota Console. (Development Version: [tft file from HMI folder](HMI/nspanel.tft)) Upload the nspanel.tft from the lastest release to a Webserver (for example www folder of Home Assistant) and execute the following command in Tasmota Console. (Development Version: [tft file from HMI folder](HMI/nspanel.tft))
@@ -256,7 +258,7 @@ nspanel-1:
config: config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT" panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend" panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"
#model: 'us-p' # uncomment this if you have the us version, see table below for more information #model: us-p # uncomment this if you have the us version, see table below for more information
timeoutScreensaver: 20 timeoutScreensaver: 20
#brightnessScreensaver: 10 #brightnessScreensaver: 10
brightnessScreensaver: brightnessScreensaver:

View File

@@ -19,6 +19,11 @@ nspanel-1:
timeFormat: "%H:%M" timeFormat: "%H:%M"
dateFormat: "%A, %d. %B %Y" # ignored if babel python package is installed dateFormat: "%A, %d. %B %Y" # ignored if babel python package is installed
weather: weather.example weather: weather.example
weatherOverrideForecast3: sensor.nas_cpu_perc
weatherOverrideForecast4:
sensor.solar_power_current: # use this for overriding name and icon
name: Sonne
icon: solar-power
pages: pages:
- type: cardEntities - type: cardEntities
heading: Example Page 1 heading: Example Page 1

View File

@@ -109,6 +109,7 @@ class LuiBackendConfig(object):
'dateFormatBabel': "full", 'dateFormatBabel': "full",
'dateFormat': "%A, %d. %B %Y", 'dateFormat': "%A, %d. %B %Y",
'weather': 'weather.example', 'weather': 'weather.example',
'weatherUnit': '°C',
'weatherOverrideForecast1': None, 'weatherOverrideForecast1': None,
'weatherOverrideForecast2': None, 'weatherOverrideForecast2': None,
'weatherOverrideForecast3': None, 'weatherOverrideForecast3': None,

View File

@@ -25,6 +25,9 @@ class LuiController(object):
time = datetime.time(0, 0, 0) time = datetime.time(0, 0, 0)
ha_api.run_minutely(self._pages_gen.update_time, time) ha_api.run_minutely(self._pages_gen.update_time, time)
# Setup date callback
ha_api.run_daily(self._pages_gen.update_date, time)
# weather callback # weather callback
weather_interval = 15 * 60 # 15 minutes weather_interval = 15 * 60 # 15 minutes
ha_api.run_every(self.weather_update, "now", weather_interval) ha_api.run_every(self.weather_update, "now", weather_interval)
@@ -75,6 +78,9 @@ class LuiController(object):
brightness = kwargs['value'] brightness = kwargs['value']
self._send_mqtt_msg(f"dimmode,{brightness}") self._send_mqtt_msg(f"dimmode,{brightness}")
def weather_update(self, kwargs):
self._pages_gen.update_screensaver_weather()
def calc_current_screensaver_brightness(self): def calc_current_screensaver_brightness(self):
current_screensaver_brightness = 20 current_screensaver_brightness = 20
# set brightness of screensaver # set brightness of screensaver
@@ -96,11 +102,6 @@ class LuiController(object):
current_screensaver_brightness = sorted_timesets[-1]["value"] current_screensaver_brightness = sorted_timesets[-1]["value"]
return current_screensaver_brightness return current_screensaver_brightness
def weather_update(self, kwargs):
we_name = self._config.get("weather")
unit = "°C"
self._pages_gen.update_screensaver_weather(kwargs={"weather": we_name, "unit": unit})
def register_callbacks(self): def register_callbacks(self):
items = self._config.get_root_page().get_all_item_names() items = self._config.get_root_page().get_all_item_names()
LOGGER.debug(f"Registering callbacks for the following items: {items}") LOGGER.debug(f"Registering callbacks for the following items: {items}")
@@ -137,6 +138,11 @@ class LuiController(object):
elif not self._config.get("doubleTapToUnlock"): elif not self._config.get("doubleTapToUnlock"):
self._pages_gen.render_page(self._current_page) self._pages_gen.render_page(self._current_page)
return return
if button_type == "sleepReached":
self._pages_gen.generate_screensaver_page()
return
if button_type == "bExit": if button_type == "bExit":
self._pages_gen.render_page(self._current_page) self._pages_gen.render_page(self._current_page)

View File

@@ -45,6 +45,14 @@ icons = {
'bell-ring': 43, 'bell-ring': 43,
'ray-vertex': 44, 'ray-vertex': 44,
'script-text': 45, 'script-text': 45,
'home-import-outline': 46,
'home-export-outline': 47,
'arrow-up-bold': 48,
'arrow-down-bold': 49,
'cast-audio': 50,
'cast': 51,
'radio': 52,
'fireplace': 53,
} }
def get_icon_id(ma_name): def get_icon_id(ma_name):

View File

@@ -41,8 +41,9 @@ class LuiMqttListener(object):
# send messages for current page # send messages for current page
if not msg_send: if not msg_send:
self._controller.startup() self._controller.startup()
if msg[1] == "screensaverOpen": if msg[1] == "sleepReached":
self._controller.weather_update("") entity_id = msg[2]
self._controller.button_press(entity_id, "sleepReached", None)
# try to request tasmota driver version again in case it's still None # try to request tasmota driver version again in case it's still None
if self._updater.current_tasmota_driver_version is None: if self._updater.current_tasmota_driver_version is None:
self._updater.request_berry_driver_version() self._updater.request_berry_driver_version()

View File

@@ -55,15 +55,19 @@ class LuiPagesGen(object):
def page_type(self, target_page): def page_type(self, target_page):
self._send_mqtt_msg(f"pageType,{target_page}") self._send_mqtt_msg(f"pageType,{target_page}")
def update_screensaver_weather(self, kwargs): def generate_screensaver_page(self):
self.page_type("screensaver")
self.update_screensaver_weather()
def update_screensaver_weather(self):
global babel_spec global babel_spec
we_name = kwargs['weather'] we_name = self._config.get("weather")
unit = kwargs['unit'] unit = self._config.get("weatherUnit")
if self._ha_api.entity_exists(we_name): if self._ha_api.entity_exists(we_name):
we = self._ha_api.get_entity(we_name) we = self._ha_api.get_entity(we_name)
else: else:
LOGGER.error("Skipping Weather Update, entitiy not found") LOGGER.error("Skipping Weather Update, entity not found")
return return
icon_cur = get_icon_id_ha("weather", state=we.state) icon_cur = get_icon_id_ha("weather", state=we.state)
@@ -82,7 +86,7 @@ class LuiPagesGen(object):
icon = get_icon_id_ha("weather", state=we.attributes.forecast[i-1]['condition']) icon = get_icon_id_ha("weather", state=we.attributes.forecast[i-1]['condition'])
down = f"{we.attributes.forecast[i-1]['temperature']} {unit}" down = f"{we.attributes.forecast[i-1]['temperature']} {unit}"
else: else:
LOGGER.info(f"Forecast 1 is overrriden with {wOF}") LOGGER.info(f"Forecast {i} is overriden with {wOF}")
icon = None icon = None
name = None name = None
if type(wOF) is dict: if type(wOF) is dict:

View File

@@ -64,8 +64,8 @@ class NsPanelLovelaceUIManager(hass.Hass):
controller = LuiController(self, cfg, send_mqtt_msg) controller = LuiController(self, cfg, send_mqtt_msg)
desired_display_firmware_version = 23 desired_display_firmware_version = 25
version = "v2.1.0" version = "v2.3.0"
model = cfg.get("model") model = cfg.get("model")
if model == "us-l": if model == "us-l":