mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
Compare commits
46 Commits
thermobtns
...
v3.8.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c626a4eb27 | ||
|
|
b8acbb531f | ||
|
|
2147ae722f | ||
|
|
30fb9c7bdc | ||
|
|
55365dcfaa | ||
|
|
7791c8d4b0 | ||
|
|
791da7257c | ||
|
|
a9c23c1938 | ||
|
|
913685ef6e | ||
|
|
ed620559aa | ||
|
|
6870bfe3ff | ||
|
|
6951da126a | ||
|
|
dca2db7ce3 | ||
|
|
5957f2ff12 | ||
|
|
426ceb832a | ||
|
|
cfd74ce87f | ||
|
|
9f8c83dfad | ||
|
|
9cc7b7a38a | ||
|
|
3e45273467 | ||
|
|
1384089e92 | ||
|
|
30d752cab5 | ||
|
|
e57c50e278 | ||
|
|
e2501f79ad | ||
|
|
b7a207407f | ||
|
|
965aeeb000 | ||
|
|
056776bc42 | ||
|
|
3c487394c3 | ||
|
|
bfc7961e84 | ||
|
|
8aec75c959 | ||
|
|
a7e30166ee | ||
|
|
a26e9e390b | ||
|
|
95af12e6ea | ||
|
|
6a5315dc76 | ||
|
|
e39972deec | ||
|
|
2da9acce65 | ||
|
|
9314792eaf | ||
|
|
93f0f858b8 | ||
|
|
4e57b50e0a | ||
|
|
c410c0863e | ||
|
|
18c6cfd7b1 | ||
|
|
fdf11a2ead | ||
|
|
a420c28418 | ||
|
|
f7b51c359e | ||
|
|
274267532d | ||
|
|
48b06b1b82 | ||
|
|
494a8d49fa |
@@ -100,14 +100,35 @@ change the page type:
|
||||
|
||||
`notify~heading~text`
|
||||
|
||||
`statusUpdate~icon1~icon1Color~icon2~icon2~icon2color~icon1font~icon2font`
|
||||
|
||||
### cardEntities Page
|
||||
|
||||
Structure (Category): `entityUpd~title~[navigation]~[entity_information]`
|
||||
Example with 4 Entities:
|
||||
```
|
||||
entityUpd~LightTest~button~navigate.prev~<~65535~~~button~navigate.next~>~65535~~light~light.bed_light~A~17299~Bed Light~0~light~light.ceiling_lights~B~52231~Ceiling Lights~1~switch~switch.ac~C~17299~AC~0~switch~switch.decorative_lights~D~65222~Decorative Lights~1
|
||||
entityUpd~LightTest~button~navigate.prev~<~65535~~~button~navigate.next~>~65535~~~light~light.bed_light~A~17299~Bed Light~0~light~light.ceiling_lights~B~52231~Ceiling Lights~1~switch~switch.ac~C~17299~AC~0~switch~switch.decorative_lights~D~65222~Decorative Lights~1
|
||||
```
|
||||
|
||||
Possible entities on cardEntities/cardGrid:
|
||||
|
||||
`~light~light.entityName~1~17299~Light1~0`
|
||||
|
||||
`~shutter~cover.entityName~0~17299~Shutter2~iconUp|iconStop|iconDown`
|
||||
|
||||
`~delete~~~~~`
|
||||
|
||||
`~text~sensor.entityName~3~17299~Temperature~content`
|
||||
|
||||
`~button~button.entityName~3~17299~bt-name~bt-text`
|
||||
|
||||
`~switch~switch.entityName~4~17299~Switch1~0`
|
||||
|
||||
`~number~input_number.entityName~4~17299~Number123~value|min|max`
|
||||
|
||||
`~input_sel~input_select.entityName~3~17299~sel-name~sel-text`
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -2096,6 +2117,50 @@ Example: `entityUpd~Guest Wifi~button~navigate.prev~<~65535~~~button~navigate.ne
|
||||
`entityUpd~Chart Demo~1|1~6666~Gas [kWh]~20:40:60:80:100~10~7^2:00~7~6^4:00~6~7^6:00~0~7^8:00~5~1^10:00~1~10^12:00~5~6^14:00~8`
|
||||
|
||||
|
||||
### popupLight Page
|
||||
|
||||
`entityUpdateDetail~entityName~*ignored*~*iconColor*~*buttonState*~*sliderBrightnessPos*~*sliderColorTempPos*~*colorMode*~*color_translation*~*color_temp_translation*~*brightness_translation*`
|
||||
|
||||
`entityUpdateDetail~1~17299~1~100~78~enable`
|
||||
|
||||
`entityUpdateDetail~1~17299~1~100~disable`
|
||||
|
||||
### popupShutter Page
|
||||
|
||||
`entityUpdateDetail~entityName~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown~iconUpStatus~iconStopStatus~iconDownStatus~textTilt~iconTiltLeft~iconTiltStop~iconTiltRight~iconTiltLeftStatus~iconTiltStopStatus~iconTiltLeftStatus~tiltPos`
|
||||
|
||||
`entityUpdateDetail~1~77`
|
||||
|
||||
### popupNotify Page
|
||||
|
||||
`entityUpdateDetail~*internalName*~*tHeading*~*tHeadingColor*~*b1*~*tB1Color*~*b2*~*tB2Color*~*tText*~*tTextColor*~*sleepTimeout*~*font*~*alt_icon*~*altIconColor*`
|
||||
|
||||
`exitPopup`
|
||||
|
||||
### popupThermo Page
|
||||
|
||||
`entityUpdateDetail~{entity_id}~{icon_id}~{icon_color}~{heading}~{mode}~mode1~mode1?mode2?mode3~{heading}~{mode}~mode1~mode1?mode2?mode3~{heading}~{mode}~mode1~mode1?mode2?mode3~`
|
||||
|
||||
### popupInSel Page (input_select detail page)
|
||||
|
||||
`entityUpdateDetail2~*entity_id*~~*icon_color*~*input_sel*~*state*~*options*`
|
||||
|
||||
options are ? seperated
|
||||
|
||||
### popupTimer
|
||||
|
||||
editable is 0 or 1
|
||||
|
||||
action fields are in the answer on the button press
|
||||
|
||||
in case action is empty the button will be hidden
|
||||
|
||||
`entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}`
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Messages from Nextion Display
|
||||
|
||||
`event,buttonPress2,pageName,bNext`
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,3 +14,4 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
page pageStartup
|
||||
|
||||
@@ -72,6 +72,20 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 41
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 40
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 6
|
||||
@@ -1014,14 +1028,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1068,14 +1075,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1096,9 +1096,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1118,7 +1118,7 @@ Hotspot mSwipePrev
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1223,86 +1223,80 @@ Timer tmSerial
|
||||
{
|
||||
//entn
|
||||
spstr strCommand.txt,entn.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text arm1
|
||||
spstr strCommand.txt,arm1.txt,"~",3
|
||||
spstr strCommand.txt,arm1.txt,"~",14
|
||||
if(arm1.txt!="")
|
||||
{
|
||||
vis arm1,1
|
||||
}
|
||||
//id arm1
|
||||
spstr strCommand.txt,va1.txt,"~",4
|
||||
spstr strCommand.txt,va1.txt,"~",15
|
||||
//text arm2
|
||||
spstr strCommand.txt,arm2.txt,"~",5
|
||||
spstr strCommand.txt,arm2.txt,"~",16
|
||||
if(arm2.txt!="")
|
||||
{
|
||||
vis arm2,1
|
||||
}
|
||||
//id arm2
|
||||
spstr strCommand.txt,va2.txt,"~",6
|
||||
spstr strCommand.txt,va2.txt,"~",17
|
||||
//text arm3
|
||||
spstr strCommand.txt,arm3.txt,"~",7
|
||||
spstr strCommand.txt,arm3.txt,"~",18
|
||||
if(arm3.txt!="")
|
||||
{
|
||||
vis arm3,1
|
||||
}
|
||||
//id arm3
|
||||
spstr strCommand.txt,va3.txt,"~",8
|
||||
spstr strCommand.txt,va3.txt,"~",19
|
||||
//text arm4
|
||||
spstr strCommand.txt,arm4.txt,"~",9
|
||||
spstr strCommand.txt,arm4.txt,"~",20
|
||||
if(arm4.txt!="")
|
||||
{
|
||||
vis arm4,1
|
||||
}
|
||||
//id arm4
|
||||
spstr strCommand.txt,va4.txt,"~",10
|
||||
spstr strCommand.txt,va4.txt,"~",21
|
||||
//icon
|
||||
spstr strCommand.txt,tIcon.txt,"~",11
|
||||
spstr strCommand.txt,tIcon.txt,"~",22
|
||||
//icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon.pco=sys0
|
||||
//numpad status
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
if(tTmp.txt!="disable")
|
||||
{
|
||||
vis b0,1
|
||||
@@ -1335,7 +1329,7 @@ Timer tmSerial
|
||||
vis tCode,0
|
||||
}
|
||||
//flashing status
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
if(tTmp.txt=="enable")
|
||||
{
|
||||
tmFlash.en=1
|
||||
@@ -1344,13 +1338,13 @@ Timer tmSerial
|
||||
tmFlash.en=0
|
||||
}
|
||||
// extra button
|
||||
spstr strCommand.txt,b9.txt,"~",15
|
||||
spstr strCommand.txt,b9.txt,"~",26
|
||||
if(b9.txt!="")
|
||||
{
|
||||
vis b9,1
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,b9.pco,0,0
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
|
||||
@@ -53,129 +53,143 @@ Page cardChart
|
||||
|
||||
Variable (string) entn
|
||||
Attributes
|
||||
ID : 4
|
||||
ID : 6
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 32
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 31
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 3
|
||||
ID : 5
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 275
|
||||
|
||||
Variable (string) strTmp
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 18
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 14
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tInstruction
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 15
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
ID : 7
|
||||
ID : 9
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) tTmp
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 13
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (int32) vMax
|
||||
Attributes
|
||||
ID : 25
|
||||
ID : 29
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vNValues
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 17
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaBottom
|
||||
Attributes
|
||||
ID : 18
|
||||
ID : 22
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaColorD
|
||||
Attributes
|
||||
ID : 24
|
||||
ID : 28
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaColorL
|
||||
Attributes
|
||||
ID : 23
|
||||
ID : 27
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaLast
|
||||
Attributes
|
||||
ID : 21
|
||||
ID : 25
|
||||
Scope: local
|
||||
Value: 4294967295
|
||||
|
||||
Variable (int32) vaLeft
|
||||
Attributes
|
||||
ID : 19
|
||||
ID : 23
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaUnit
|
||||
Attributes
|
||||
ID : 16
|
||||
ID : 20
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) vaValue
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 21
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) vaValues
|
||||
Attributes
|
||||
ID : 20
|
||||
ID : 24
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (int32) vaYUnit
|
||||
Attributes
|
||||
ID : 26
|
||||
ID : 30
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
XFloat x0
|
||||
Attributes
|
||||
ID : 22
|
||||
ID : 26
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 190
|
||||
x coordinate : 188
|
||||
y coordinate : 84
|
||||
Width : 100
|
||||
Height : 30
|
||||
@@ -201,7 +215,7 @@ XFloat x0
|
||||
|
||||
Text tHeading
|
||||
Attributes
|
||||
ID : 28
|
||||
ID : 16
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -248,7 +262,7 @@ Picture p0
|
||||
|
||||
Button bNext
|
||||
Attributes
|
||||
ID : 29
|
||||
ID : 2
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -280,14 +294,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -302,7 +309,7 @@ Button bNext
|
||||
|
||||
Button bPrev
|
||||
Attributes
|
||||
ID : 27
|
||||
ID : 3
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -334,14 +341,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -356,15 +356,15 @@ Button bPrev
|
||||
|
||||
Hotspot m0
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 20
|
||||
x coordinate : 35
|
||||
y coordinate : 90
|
||||
Width : 440
|
||||
Width : 410
|
||||
Height : 220
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -447,15 +447,15 @@ Hotspot m0
|
||||
|
||||
Hotspot mSwipeNext
|
||||
Attributes
|
||||
ID : 30
|
||||
ID : 10
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -467,7 +467,7 @@ Hotspot mSwipeNext
|
||||
|
||||
Hotspot mSwipePrev
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 12
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -487,7 +487,7 @@ Hotspot mSwipePrev
|
||||
|
||||
Hotspot mSwipeUp
|
||||
Attributes
|
||||
ID : 8
|
||||
ID : 11
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -507,7 +507,7 @@ Hotspot mSwipeUp
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
ID : 2
|
||||
ID : 4
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
@@ -559,48 +559,42 @@ Timer tmSerial
|
||||
if(tInstruction.txt=="entityUpd")
|
||||
{
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// extract color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,vaColorL.val,0,0
|
||||
// prepare dark color
|
||||
sys0=vaColorL.val>>11 // red
|
||||
@@ -612,7 +606,7 @@ Timer tmSerial
|
||||
//
|
||||
// detect nValues and maxValue
|
||||
vNValues.val=0
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
while(sya0>0)
|
||||
{
|
||||
@@ -623,7 +617,7 @@ Timer tmSerial
|
||||
}
|
||||
// next
|
||||
vNValues.val++
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
}
|
||||
//
|
||||
@@ -638,7 +632,7 @@ Timer tmSerial
|
||||
//
|
||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||
spstr strCommand.txt,strTmp.txt,"~",5
|
||||
spstr strCommand.txt,strTmp.txt,"~",16
|
||||
sya1=0
|
||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||
strlen tTmp.txt,sya0
|
||||
@@ -671,7 +665,7 @@ Timer tmSerial
|
||||
}
|
||||
//
|
||||
// y achis label
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
// tTmp.txt="Gas [kW]"
|
||||
strlen tTmp.txt,sys1
|
||||
sya1=sys1*12+m0.h-48/2
|
||||
@@ -687,7 +681,7 @@ Timer tmSerial
|
||||
vaValues.txt+="~"
|
||||
}
|
||||
// extract next entry
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||
// calculate left
|
||||
sys1=sys0*5*vaUnit.val
|
||||
sys1+=vaLeft.val
|
||||
@@ -868,7 +862,7 @@ Timer tmSerial
|
||||
|
||||
Timer tmSleep
|
||||
Attributes
|
||||
ID : 5
|
||||
ID : 7
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : yes
|
||||
@@ -899,7 +893,7 @@ Timer tmSleep
|
||||
|
||||
TouchCap tc0
|
||||
Attributes
|
||||
ID : 6
|
||||
ID : 8
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
|
||||
@@ -96,28 +96,42 @@ Page cardEntities
|
||||
|
||||
Variable (string) entn1
|
||||
Attributes
|
||||
ID : 44
|
||||
ID : 42
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
ID : 45
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
ID : 46
|
||||
ID : 44
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
ID : 47
|
||||
ID : 45
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 63
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 64
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
@@ -131,42 +145,42 @@ Variable (string) strCommand
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
ID : 64
|
||||
ID : 62
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) type1
|
||||
Attributes
|
||||
ID : 40
|
||||
ID : 38
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) type2
|
||||
Attributes
|
||||
ID : 41
|
||||
ID : 39
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) type3
|
||||
Attributes
|
||||
ID : 42
|
||||
ID : 40
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) type4
|
||||
Attributes
|
||||
ID : 43
|
||||
ID : 41
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Number nNum1
|
||||
Attributes
|
||||
ID : 53
|
||||
ID : 51
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -196,7 +210,7 @@ Number nNum1
|
||||
|
||||
Number nNum2
|
||||
Attributes
|
||||
ID : 54
|
||||
ID : 52
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -226,7 +240,7 @@ Number nNum2
|
||||
|
||||
Number nNum3
|
||||
Attributes
|
||||
ID : 55
|
||||
ID : 53
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -256,7 +270,7 @@ Number nNum3
|
||||
|
||||
Number nNum4
|
||||
Attributes
|
||||
ID : 56
|
||||
ID : 54
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -294,7 +308,7 @@ Text tEntity1
|
||||
Opacity : 127
|
||||
x coordinate : 92
|
||||
y coordinate : 85
|
||||
Width : 180
|
||||
Width : 184
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -324,7 +338,7 @@ Text tEntity2
|
||||
Opacity : 127
|
||||
x coordinate : 93
|
||||
y coordinate : 142
|
||||
Width : 180
|
||||
Width : 184
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -354,7 +368,7 @@ Text tEntity3
|
||||
Opacity : 127
|
||||
x coordinate : 93
|
||||
y coordinate : 198
|
||||
Width : 180
|
||||
Width : 184
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -384,7 +398,7 @@ Text tEntity4
|
||||
Opacity : 127
|
||||
x coordinate : 93
|
||||
y coordinate : 254
|
||||
Width : 180
|
||||
Width : 184
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -663,7 +677,7 @@ Picture p0
|
||||
|
||||
Slider hSlider1
|
||||
Attributes
|
||||
ID : 49
|
||||
ID : 47
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -706,7 +720,7 @@ Slider hSlider1
|
||||
|
||||
Slider hSlider2
|
||||
Attributes
|
||||
ID : 50
|
||||
ID : 48
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -749,7 +763,7 @@ Slider hSlider2
|
||||
|
||||
Slider hSlider3
|
||||
Attributes
|
||||
ID : 51
|
||||
ID : 49
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -792,7 +806,7 @@ Slider hSlider3
|
||||
|
||||
Slider hSlider4
|
||||
Attributes
|
||||
ID : 52
|
||||
ID : 50
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1023,7 +1037,7 @@ Button bDown4
|
||||
|
||||
Button bNext
|
||||
Attributes
|
||||
ID : 33
|
||||
ID : 65
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1055,14 +1069,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1077,7 +1084,7 @@ Button bNext
|
||||
|
||||
Button bPrev
|
||||
Attributes
|
||||
ID : 32
|
||||
ID : 66
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1109,14 +1116,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1319,14 +1319,14 @@ Button bStop4
|
||||
|
||||
Button bText1
|
||||
Attributes
|
||||
ID : 60
|
||||
ID : 58
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 276
|
||||
y coordinate : 75
|
||||
y coordinate : 74
|
||||
Width : 166
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -1366,14 +1366,14 @@ Button bText1
|
||||
|
||||
Button bText2
|
||||
Attributes
|
||||
ID : 61
|
||||
ID : 59
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 276
|
||||
y coordinate : 131
|
||||
y coordinate : 132
|
||||
Width : 166
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -1413,7 +1413,7 @@ Button bText2
|
||||
|
||||
Button bText3
|
||||
Attributes
|
||||
ID : 62
|
||||
ID : 60
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1460,14 +1460,14 @@ Button bText3
|
||||
|
||||
Button bText4
|
||||
Attributes
|
||||
ID : 63
|
||||
ID : 61
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 277
|
||||
y coordinate : 245
|
||||
y coordinate : 244
|
||||
Width : 166
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -1875,7 +1875,7 @@ Dual-state Button btOnOff4
|
||||
|
||||
Hotspot m0
|
||||
Attributes
|
||||
ID : 38
|
||||
ID : 36
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1919,7 +1919,7 @@ Hotspot m0
|
||||
|
||||
Hotspot m1
|
||||
Attributes
|
||||
ID : 37
|
||||
ID : 35
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1963,7 +1963,7 @@ Hotspot m1
|
||||
|
||||
Hotspot m2
|
||||
Attributes
|
||||
ID : 36
|
||||
ID : 34
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2007,7 +2007,7 @@ Hotspot m2
|
||||
|
||||
Hotspot m3
|
||||
Attributes
|
||||
ID : 39
|
||||
ID : 37
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2051,7 +2051,7 @@ Hotspot m3
|
||||
|
||||
Hotspot mSpecial
|
||||
Attributes
|
||||
ID : 34
|
||||
ID : 32
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2077,15 +2077,15 @@ Hotspot mSpecial
|
||||
|
||||
Hotspot mSwipeNext
|
||||
Attributes
|
||||
ID : 57
|
||||
ID : 55
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -2097,7 +2097,7 @@ Hotspot mSwipeNext
|
||||
|
||||
Hotspot mSwipePrev
|
||||
Attributes
|
||||
ID : 59
|
||||
ID : 57
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2105,7 +2105,7 @@ Hotspot mSwipePrev
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -2117,16 +2117,16 @@ Hotspot mSwipePrev
|
||||
|
||||
Hotspot mSwipeUp
|
||||
Attributes
|
||||
ID : 58
|
||||
ID : 56
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 25
|
||||
x coordinate : 27
|
||||
y coordinate : 0
|
||||
Width : 425
|
||||
Height : 7
|
||||
Width : 426
|
||||
Height : 9
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -2191,50 +2191,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis bUp1,0
|
||||
@@ -2249,14 +2243,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",5
|
||||
spstr strCommand.txt,tIcon1.txt,"~",16
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="shutter")
|
||||
@@ -2269,7 +2263,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr strCommand.txt,tId.txt,"~",19
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2320,7 +2314,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -2337,7 +2331,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="button"||type1.txt=="input_sel")
|
||||
{
|
||||
@@ -2352,7 +2346,7 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="number")
|
||||
{
|
||||
@@ -2365,7 +2359,7 @@ Timer tmSerial
|
||||
vis hSlider1,1
|
||||
vis nNum1,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
//first value is current value
|
||||
spstr bText1.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2381,9 +2375,9 @@ Timer tmSerial
|
||||
hSlider1.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis bUp2,0
|
||||
@@ -2398,14 +2392,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",11
|
||||
spstr strCommand.txt,tIcon2.txt,"~",22
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="shutter")
|
||||
@@ -2418,7 +2412,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr strCommand.txt,tId.txt,"~",25
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2469,7 +2463,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -2486,7 +2480,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="button"||type2.txt=="input_sel")
|
||||
{
|
||||
@@ -2501,7 +2495,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="number")
|
||||
{
|
||||
@@ -2514,7 +2508,7 @@ Timer tmSerial
|
||||
vis hSlider2,1
|
||||
vis nNum2,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
//first value is current value
|
||||
spstr bText2.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2530,9 +2524,9 @@ Timer tmSerial
|
||||
hSlider2.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis bUp3,0
|
||||
@@ -2547,14 +2541,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon3.txt,"~",17
|
||||
spstr strCommand.txt,tIcon3.txt,"~",28
|
||||
vis tIcon3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
if(type3.txt=="shutter")
|
||||
@@ -2567,7 +2561,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr strCommand.txt,tId.txt,"~",31
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2618,7 +2612,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff3.val=sys0
|
||||
}
|
||||
@@ -2635,7 +2629,7 @@ Timer tmSerial
|
||||
bText3.pco=65535
|
||||
bText3.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="button"||type3.txt=="input_sel")
|
||||
{
|
||||
@@ -2650,7 +2644,7 @@ Timer tmSerial
|
||||
bText3.pco=1374
|
||||
bText3.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="number")
|
||||
{
|
||||
@@ -2663,7 +2657,7 @@ Timer tmSerial
|
||||
vis hSlider3,1
|
||||
vis nNum3,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
//first value is current value
|
||||
spstr bText3.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2679,9 +2673,9 @@ Timer tmSerial
|
||||
hSlider3.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis bUp4,0
|
||||
@@ -2696,14 +2690,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon4.txt,"~",23
|
||||
spstr strCommand.txt,tIcon4.txt,"~",34
|
||||
vis tIcon4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
if(type4.txt=="shutter")
|
||||
@@ -2716,7 +2710,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr strCommand.txt,tId.txt,"~",37
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2767,7 +2761,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff4.val=sys0
|
||||
}
|
||||
@@ -2784,7 +2778,7 @@ Timer tmSerial
|
||||
bText4.pco=65535
|
||||
bText4.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="button"||type4.txt=="input_sel")
|
||||
{
|
||||
@@ -2799,7 +2793,7 @@ Timer tmSerial
|
||||
bText4.pco=1374
|
||||
bText4.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="number")
|
||||
{
|
||||
@@ -2812,7 +2806,7 @@ Timer tmSerial
|
||||
vis hSlider4,1
|
||||
vis nNum4,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
//first value is current value
|
||||
spstr bText4.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2949,7 +2943,7 @@ Timer tmSerial
|
||||
|
||||
Timer tmSleep
|
||||
Attributes
|
||||
ID : 35
|
||||
ID : 33
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : yes
|
||||
@@ -2980,7 +2974,7 @@ Timer tmSleep
|
||||
|
||||
TouchCap tc0
|
||||
Attributes
|
||||
ID : 48
|
||||
ID : 46
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
|
||||
@@ -96,12 +96,26 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 42
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 500
|
||||
Max. Text Size: 700
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
@@ -160,7 +174,7 @@ Text tEntity1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 26
|
||||
x coordinate : 21
|
||||
y coordinate : 155
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -190,7 +204,7 @@ Text tEntity2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 173
|
||||
x coordinate : 168
|
||||
y coordinate : 155
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -220,7 +234,7 @@ Text tEntity3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 319
|
||||
x coordinate : 314
|
||||
y coordinate : 155
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -250,7 +264,7 @@ Text tEntity4
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 26
|
||||
x coordinate : 21
|
||||
y coordinate : 274
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -280,7 +294,7 @@ Text tEntity5
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 173
|
||||
x coordinate : 168
|
||||
y coordinate : 274
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -310,7 +324,7 @@ Text tEntity6
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 319
|
||||
x coordinate : 314
|
||||
y coordinate : 274
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -340,7 +354,7 @@ Text tHeading
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 131
|
||||
x coordinate : 126
|
||||
y coordinate : 26
|
||||
Width : 227
|
||||
Height : 30
|
||||
@@ -370,7 +384,7 @@ Text tId
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 131
|
||||
x coordinate : 126
|
||||
y coordinate : 290
|
||||
Width : 39
|
||||
Height : 30
|
||||
@@ -400,7 +414,7 @@ Text tInstruction
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 20
|
||||
x coordinate : 15
|
||||
y coordinate : 290
|
||||
Width : 100
|
||||
Height : 30
|
||||
@@ -430,7 +444,7 @@ Text tTmp
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 420
|
||||
x coordinate : 415
|
||||
y coordinate : 290
|
||||
Width : 34
|
||||
Height : 30
|
||||
@@ -477,7 +491,7 @@ Button bEntity1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 26
|
||||
x coordinate : 21
|
||||
y coordinate : 75
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -544,7 +558,7 @@ Button bEntity2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 173
|
||||
x coordinate : 167
|
||||
y coordinate : 75
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -611,7 +625,7 @@ Button bEntity3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 319
|
||||
x coordinate : 314
|
||||
y coordinate : 75
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -678,7 +692,7 @@ Button bEntity4
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 26
|
||||
x coordinate : 21
|
||||
y coordinate : 194
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -745,7 +759,7 @@ Button bEntity5
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 173
|
||||
x coordinate : 168
|
||||
y coordinate : 194
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -812,7 +826,7 @@ Button bEntity6
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 319
|
||||
x coordinate : 314
|
||||
y coordinate : 194
|
||||
Width : 140
|
||||
Height : 80
|
||||
@@ -879,7 +893,7 @@ Button bNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 411
|
||||
x coordinate : 406
|
||||
y coordinate : 16
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -905,14 +919,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -933,9 +940,9 @@ Button bPrev
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 29
|
||||
x coordinate : 25
|
||||
y coordinate : 16
|
||||
Width : 50
|
||||
Width : 49
|
||||
Height : 50
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -959,14 +966,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -987,7 +987,7 @@ Hotspot mSpecial
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 328
|
||||
x coordinate : 323
|
||||
y coordinate : 0
|
||||
Width : 83
|
||||
Height : 67
|
||||
@@ -1013,9 +1013,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1035,7 +1035,7 @@ Hotspot mSwipePrev
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 5
|
||||
Width : 7
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1053,7 +1053,7 @@ Hotspot mSwipeUp
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 32
|
||||
x coordinate : 27
|
||||
y coordinate : 0
|
||||
Width : 426
|
||||
Height : 9
|
||||
@@ -1139,50 +1139,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1190,20 +1184,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",5
|
||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1211,20 +1205,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",11
|
||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1232,20 +1226,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",17
|
||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1253,20 +1247,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",23
|
||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1274,20 +1268,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",29
|
||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1295,14 +1289,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",35
|
||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,6 +101,20 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 58
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 57
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 5
|
||||
@@ -248,7 +262,7 @@ Text t0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 126
|
||||
x coordinate : 123
|
||||
y coordinate : 145
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -297,7 +311,7 @@ Text t1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 25
|
||||
x coordinate : 22
|
||||
y coordinate : 201
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -347,7 +361,7 @@ Text t2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 316
|
||||
x coordinate : 313
|
||||
y coordinate : 145
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -396,7 +410,7 @@ Text t3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 411
|
||||
x coordinate : 408
|
||||
y coordinate : 201
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -446,7 +460,7 @@ Text t5
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 411
|
||||
x coordinate : 408
|
||||
y coordinate : 145
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -495,7 +509,7 @@ Text tAuthor
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 103
|
||||
x coordinate : 100
|
||||
y coordinate : 108
|
||||
Width : 358
|
||||
Height : 25
|
||||
@@ -525,7 +539,7 @@ Text tHeading
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 129
|
||||
x coordinate : 126
|
||||
y coordinate : 26
|
||||
Width : 228
|
||||
Height : 30
|
||||
@@ -535,7 +549,7 @@ Text tHeading
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Associated Keyboard : none
|
||||
Font ID : 1
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
Horizontal Alignment : center
|
||||
@@ -555,7 +569,7 @@ Text tInstruction
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 296
|
||||
x coordinate : 311
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 20
|
||||
@@ -585,7 +599,7 @@ Text tPlayPause
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 221
|
||||
x coordinate : 218
|
||||
y coordinate : 145
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -634,7 +648,7 @@ Text tShuffle
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 31
|
||||
x coordinate : 28
|
||||
y coordinate : 145
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -683,7 +697,7 @@ Text tTitle
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 102
|
||||
x coordinate : 99
|
||||
y coordinate : 78
|
||||
Width : 358
|
||||
Height : 25
|
||||
@@ -730,7 +744,7 @@ Slider hVolume
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 79
|
||||
x coordinate : 76
|
||||
y coordinate : 206
|
||||
Width : 328
|
||||
Height : 43
|
||||
@@ -776,7 +790,7 @@ Button bEntity1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 29
|
||||
x coordinate : 26
|
||||
y coordinate : 75
|
||||
Width : 71
|
||||
Height : 62
|
||||
@@ -839,7 +853,7 @@ Button bEntity2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 31
|
||||
x coordinate : 28
|
||||
y coordinate : 257
|
||||
Width : 55
|
||||
Height : 55
|
||||
@@ -906,7 +920,7 @@ Button bEntity3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 122
|
||||
x coordinate : 119
|
||||
y coordinate : 257
|
||||
Width : 55
|
||||
Height : 55
|
||||
@@ -973,7 +987,7 @@ Button bEntity4
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 213
|
||||
x coordinate : 210
|
||||
y coordinate : 257
|
||||
Width : 55
|
||||
Height : 55
|
||||
@@ -1040,7 +1054,7 @@ Button bEntity5
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 304
|
||||
x coordinate : 301
|
||||
y coordinate : 257
|
||||
Width : 55
|
||||
Height : 55
|
||||
@@ -1107,7 +1121,7 @@ Button bEntity6
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 400
|
||||
x coordinate : 397
|
||||
y coordinate : 257
|
||||
Width : 55
|
||||
Height : 55
|
||||
@@ -1174,7 +1188,7 @@ Button bNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 409
|
||||
x coordinate : 406
|
||||
y coordinate : 16
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -1200,14 +1214,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1228,7 +1235,7 @@ Button bPrev
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 27
|
||||
x coordinate : 24
|
||||
y coordinate : 16
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -1254,14 +1261,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1282,9 +1282,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1322,7 +1322,7 @@ Hotspot mSwipeUp
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 12
|
||||
x coordinate : 27
|
||||
y coordinate : 0
|
||||
Width : 426
|
||||
Height : 9
|
||||
@@ -1419,72 +1419,66 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//title
|
||||
spstr strCommand.txt,tTitle.txt,"~",4
|
||||
spstr strCommand.txt,tTitle.txt,"~",15
|
||||
//title farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tTitle.pco,0,0
|
||||
}
|
||||
//author
|
||||
spstr strCommand.txt,tAuthor.txt,"~",6
|
||||
spstr strCommand.txt,tAuthor.txt,"~",17
|
||||
//author farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tAuthor.pco,0,0
|
||||
}
|
||||
//volume
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hVolume.val=sys0
|
||||
//icon
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",9
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",20
|
||||
// on off button
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis t5,0
|
||||
@@ -1494,7 +1488,7 @@ Timer tmSerial
|
||||
covx tTmp.txt,t5.pco,0,0
|
||||
}
|
||||
// shuffel btn
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis tShuffle,0
|
||||
@@ -1504,9 +1498,9 @@ Timer tmSerial
|
||||
tShuffle.txt=tTmp.txt
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",12
|
||||
spstr strCommand.txt,type1.txt,"~",23
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",13
|
||||
spstr strCommand.txt,entn1.txt,"~",24
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1514,20 +1508,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",14
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",16
|
||||
spstr strCommand.txt,tEntity1.txt,"~",27
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",18
|
||||
spstr strCommand.txt,type2.txt,"~",29
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",19
|
||||
spstr strCommand.txt,entn2.txt,"~",30
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1535,20 +1529,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",20
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",22
|
||||
spstr strCommand.txt,tEntity2.txt,"~",33
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",24
|
||||
spstr strCommand.txt,type3.txt,"~",35
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",25
|
||||
spstr strCommand.txt,entn3.txt,"~",36
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1556,20 +1550,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",26
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",28
|
||||
spstr strCommand.txt,tEntity3.txt,"~",39
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",30
|
||||
spstr strCommand.txt,type4.txt,"~",41
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",31
|
||||
spstr strCommand.txt,entn4.txt,"~",42
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1577,20 +1571,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",32
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",34
|
||||
spstr strCommand.txt,tEntity4.txt,"~",45
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",36
|
||||
spstr strCommand.txt,type5.txt,"~",47
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",37
|
||||
spstr strCommand.txt,entn5.txt,"~",48
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1598,20 +1592,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",38
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",40
|
||||
spstr strCommand.txt,tEntity5.txt,"~",51
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",42
|
||||
spstr strCommand.txt,type6.txt,"~",53
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",43
|
||||
spstr strCommand.txt,entn6.txt,"~",54
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1619,14 +1613,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",44
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",45
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",46
|
||||
spstr strCommand.txt,tEntity6.txt,"~",57
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
@@ -1694,6 +1688,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardPower
|
||||
}
|
||||
if(tId.txt=="cardChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -65,6 +65,20 @@ Page cardPower
|
||||
}
|
||||
}
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 44
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 5
|
||||
@@ -801,14 +815,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardPower,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -855,14 +862,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -883,9 +883,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -923,7 +923,7 @@ Hotspot mSwipeUp
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 12
|
||||
x coordinate : 27
|
||||
y coordinate : 0
|
||||
Width : 426
|
||||
Height : 9
|
||||
@@ -1061,63 +1061,57 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// icon color home
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,t1.pco,0,0
|
||||
// icon home
|
||||
spstr strCommand.txt,t1.txt,"~",4
|
||||
spstr strCommand.txt,t1.txt,"~",15
|
||||
// text home
|
||||
spstr strCommand.txt,tHome.txt,"~",5
|
||||
spstr strCommand.txt,tHome.txt,"~",16
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,t0Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||
spstr strCommand.txt,t0Icon.txt,"~",18
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,t0Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t0u.txt,"~",9
|
||||
spstr strCommand.txt,t0u.txt,"~",20
|
||||
if(t0Icon.txt!="")
|
||||
{
|
||||
vis t0Icon,1
|
||||
@@ -1130,15 +1124,15 @@ Timer tmSerial
|
||||
vis h0,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
covx tTmp.txt,t1Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||
spstr strCommand.txt,t1Icon.txt,"~",22
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,t1Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t1u.txt,"~",13
|
||||
spstr strCommand.txt,t1u.txt,"~",24
|
||||
if(t1Icon.txt!="")
|
||||
{
|
||||
vis t1Icon,1
|
||||
@@ -1151,15 +1145,15 @@ Timer tmSerial
|
||||
vis h1,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,t2Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||
spstr strCommand.txt,t2Icon.txt,"~",26
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,t2Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t2u.txt,"~",17
|
||||
spstr strCommand.txt,t2u.txt,"~",28
|
||||
if(t2Icon.txt!="")
|
||||
{
|
||||
vis t2Icon,1
|
||||
@@ -1172,15 +1166,15 @@ Timer tmSerial
|
||||
vis h2,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,t3Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||
spstr strCommand.txt,t3Icon.txt,"~",30
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,t3Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t3u.txt,"~",21
|
||||
spstr strCommand.txt,t3u.txt,"~",32
|
||||
if(t3Icon.txt!="")
|
||||
{
|
||||
vis t3Icon,1
|
||||
@@ -1193,15 +1187,15 @@ Timer tmSerial
|
||||
vis h3,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
covx tTmp.txt,t4Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||
spstr strCommand.txt,t4Icon.txt,"~",34
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,t4Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t4u.txt,"~",25
|
||||
spstr strCommand.txt,t4u.txt,"~",36
|
||||
if(t4Icon.txt!="")
|
||||
{
|
||||
vis t4Icon,1
|
||||
@@ -1214,15 +1208,15 @@ Timer tmSerial
|
||||
vis h4,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,t5Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||
spstr strCommand.txt,t5Icon.txt,"~",38
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,t5Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t5u.txt,"~",29
|
||||
spstr strCommand.txt,t5u.txt,"~",40
|
||||
if(t5Icon.txt!="")
|
||||
{
|
||||
vis t5Icon,1
|
||||
|
||||
@@ -81,12 +81,26 @@ Variable (string) entn2
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 32
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 33
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 6
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 275
|
||||
Max. Text Size: 400
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -338,14 +352,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardQR,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -392,14 +399,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -636,9 +636,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -657,9 +657,9 @@ Hotspot mSwipePrev
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 5
|
||||
Width : 9
|
||||
Height : 310
|
||||
y coordinate : 0
|
||||
Width : 7
|
||||
Height : 315
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -745,52 +745,46 @@ Timer tmSerial
|
||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||
//tHeading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text qrcode
|
||||
spstr strCommand.txt,vaQR.txt,"~",3
|
||||
spstr strCommand.txt,vaQR.txt,"~",14
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",4
|
||||
spstr strCommand.txt,type1.txt,"~",15
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",5
|
||||
spstr strCommand.txt,entn1.txt,"~",16
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis btOnOff1,0
|
||||
@@ -800,14 +794,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
||||
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
||||
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
@@ -815,7 +809,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -824,7 +818,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -836,7 +830,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
if(type1.txt=="button")
|
||||
{
|
||||
@@ -846,12 +840,12 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",10
|
||||
spstr strCommand.txt,type2.txt,"~",21
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",11
|
||||
spstr strCommand.txt,entn2.txt,"~",22
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis btOnOff2,0
|
||||
@@ -861,14 +855,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
||||
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
||||
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
@@ -876,7 +870,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -885,7 +879,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -897,7 +891,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="button")
|
||||
{
|
||||
@@ -907,7 +901,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
|
||||
@@ -72,12 +72,26 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 56
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 55
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -511,7 +525,7 @@ Text tHeading
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Associated Keyboard : none
|
||||
Font ID : 1
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
Horizontal Alignment : center
|
||||
@@ -634,14 +648,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -688,14 +695,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1386,9 +1386,9 @@ Hotspot mSwipeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 472
|
||||
x coordinate : 471
|
||||
y coordinate : 5
|
||||
Width : 8
|
||||
Width : 9
|
||||
Height : 310
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -1406,7 +1406,7 @@ Hotspot mSwipePrev
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
x coordinate : 15
|
||||
y coordinate : 5
|
||||
Width : 9
|
||||
Height : 310
|
||||
@@ -1426,7 +1426,7 @@ Hotspot mSwipeUp
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 12
|
||||
x coordinate : 27
|
||||
y coordinate : 0
|
||||
Width : 426
|
||||
Height : 9
|
||||
@@ -1557,64 +1557,58 @@ Timer tmSerial
|
||||
{
|
||||
//heading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//currentTemp
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",4
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",15
|
||||
//dstTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
covx tTmp.txt,xTempDest1.val,0,0
|
||||
xTempDest.val=xTempDest1.val
|
||||
//status
|
||||
spstr strCommand.txt,tStatus.txt,"~",6
|
||||
spstr strCommand.txt,tStatus.txt,"~",17
|
||||
//minTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,xTempMin1.val,0,0
|
||||
//maxTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,xTempMax1.val,0,0
|
||||
//tempStep
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,xTempStep1.val,0,0
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -1626,137 +1620,137 @@ Timer tmSerial
|
||||
vis bt6,0
|
||||
vis bt7,0
|
||||
//bt0
|
||||
spstr strCommand.txt,bt0.txt,"~",10
|
||||
spstr strCommand.txt,bt0.txt,"~",21
|
||||
if(bt0.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
covx tTmp.txt,bt0.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,bt0.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va0.txt,"~",13
|
||||
spstr strCommand.txt,va0.txt,"~",24
|
||||
//enable
|
||||
vis bt0,1
|
||||
}
|
||||
//bt1
|
||||
spstr strCommand.txt,bt1.txt,"~",14
|
||||
spstr strCommand.txt,bt1.txt,"~",25
|
||||
if(bt1.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,bt1.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,bt1.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va1.txt,"~",17
|
||||
spstr strCommand.txt,va1.txt,"~",28
|
||||
//enable
|
||||
vis bt1,1
|
||||
}
|
||||
//bt2
|
||||
spstr strCommand.txt,bt2.txt,"~",18
|
||||
spstr strCommand.txt,bt2.txt,"~",29
|
||||
if(bt2.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
covx tTmp.txt,bt2.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,bt2.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va2.txt,"~",21
|
||||
spstr strCommand.txt,va2.txt,"~",32
|
||||
//enable
|
||||
vis bt2,1
|
||||
}
|
||||
//bt3
|
||||
spstr strCommand.txt,bt3.txt,"~",22
|
||||
spstr strCommand.txt,bt3.txt,"~",33
|
||||
if(bt3.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
spstr strCommand.txt,tTmp.txt,"~",34
|
||||
covx tTmp.txt,bt3.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,bt3.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va3.txt,"~",25
|
||||
spstr strCommand.txt,va3.txt,"~",36
|
||||
//enable
|
||||
vis bt3,1
|
||||
}
|
||||
//bt4
|
||||
spstr strCommand.txt,bt4.txt,"~",26
|
||||
spstr strCommand.txt,bt4.txt,"~",37
|
||||
if(bt4.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,bt4.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,bt4.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va4.txt,"~",29
|
||||
spstr strCommand.txt,va4.txt,"~",40
|
||||
//enable
|
||||
vis bt4,1
|
||||
}
|
||||
//bt5
|
||||
spstr strCommand.txt,bt5.txt,"~",30
|
||||
spstr strCommand.txt,bt5.txt,"~",41
|
||||
if(bt5.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
spstr strCommand.txt,tTmp.txt,"~",42
|
||||
covx tTmp.txt,bt5.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,bt5.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va5.txt,"~",33
|
||||
spstr strCommand.txt,va5.txt,"~",44
|
||||
//enable
|
||||
vis bt5,1
|
||||
}
|
||||
//bt6
|
||||
spstr strCommand.txt,bt6.txt,"~",34
|
||||
spstr strCommand.txt,bt6.txt,"~",45
|
||||
if(bt6.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
covx tTmp.txt,bt6.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,bt6.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va6.txt,"~",37
|
||||
spstr strCommand.txt,va6.txt,"~",48
|
||||
//enable
|
||||
vis bt6,1
|
||||
}
|
||||
//bt7
|
||||
spstr strCommand.txt,bt7.txt,"~",38
|
||||
spstr strCommand.txt,bt7.txt,"~",49
|
||||
if(bt7.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,bt7.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",40
|
||||
spstr strCommand.txt,tTmp.txt,"~",51
|
||||
covx tTmp.txt,bt7.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va7.txt,"~",41
|
||||
spstr strCommand.txt,va7.txt,"~",52
|
||||
//enable
|
||||
vis bt7,1
|
||||
}
|
||||
//Text tCurTempLbl
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",42
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",53
|
||||
//Text tStateLbl
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",43
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",54
|
||||
//Text tALbl
|
||||
//spstr strCommand.txt,tALbl.txt,"~",44
|
||||
//spstr strCommand.txt,tALbl.txt,"~",55
|
||||
//Text tCF
|
||||
spstr strCommand.txt,tCF.txt,"~",45
|
||||
spstr strCommand.txt,tCF.txt,"~",56
|
||||
tCF1.txt=tCF.txt
|
||||
tCF2.txt=tCF.txt
|
||||
//Second Temperature
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
spstr strCommand.txt,tTmp.txt,"~",57
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,xTempDest2.val,0,0
|
||||
@@ -1774,8 +1768,8 @@ Timer tmSerial
|
||||
vis tCF2,1
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
if(tTmp.txt=="1")
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
if(tTmp.txt!="1")
|
||||
{
|
||||
vis btDetail,1
|
||||
}else
|
||||
|
||||
@@ -1,86 +1,86 @@
|
||||
Program.s
|
||||
0 Component(s)
|
||||
11 Line(s) of event code
|
||||
11 Unique line(s) of event code
|
||||
12 Line(s) of event code
|
||||
12 Unique line(s) of event code
|
||||
pageIcons
|
||||
7 Component(s)
|
||||
0 Line(s) of event code
|
||||
0 Unique line(s) of event code
|
||||
pageTest
|
||||
15 Component(s)
|
||||
15 Line(s) of event code
|
||||
15 Unique line(s) of event code
|
||||
cardChart
|
||||
31 Component(s)
|
||||
452 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
popupNotify
|
||||
19 Component(s)
|
||||
257 Line(s) of event code
|
||||
166 Unique line(s) of event code
|
||||
popupTimer
|
||||
42 Component(s)
|
||||
512 Line(s) of event code
|
||||
255 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
408 Line(s) of event code
|
||||
225 Unique line(s) of event code
|
||||
popupShutter
|
||||
25 Component(s)
|
||||
398 Line(s) of event code
|
||||
218 Unique line(s) of event code
|
||||
popupFan
|
||||
27 Component(s)
|
||||
351 Line(s) of event code
|
||||
204 Unique line(s) of event code
|
||||
popupInSel
|
||||
34 Component(s)
|
||||
617 Line(s) of event code
|
||||
295 Unique line(s) of event code
|
||||
cardQR
|
||||
32 Component(s)
|
||||
425 Line(s) of event code
|
||||
244 Unique line(s) of event code
|
||||
cardGrid
|
||||
42 Component(s)
|
||||
538 Line(s) of event code
|
||||
300 Unique line(s) of event code
|
||||
screensaver
|
||||
45 Component(s)
|
||||
410 Line(s) of event code
|
||||
298 Unique line(s) of event code
|
||||
cardAlarm
|
||||
40 Component(s)
|
||||
442 Line(s) of event code
|
||||
262 Unique line(s) of event code
|
||||
46 Component(s)
|
||||
429 Line(s) of event code
|
||||
301 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
408 Line(s) of event code
|
||||
225 Unique line(s) of event code
|
||||
popupFan
|
||||
27 Component(s)
|
||||
351 Line(s) of event code
|
||||
204 Unique line(s) of event code
|
||||
popupTimer
|
||||
42 Component(s)
|
||||
512 Line(s) of event code
|
||||
255 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
425 Line(s) of event code
|
||||
290 Unique line(s) of event code
|
||||
pageTest
|
||||
21 Component(s)
|
||||
66 Line(s) of event code
|
||||
64 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
511 Line(s) of event code
|
||||
289 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
637 Line(s) of event code
|
||||
316 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
528 Line(s) of event code
|
||||
313 Unique line(s) of event code
|
||||
cardPower
|
||||
43 Component(s)
|
||||
439 Line(s) of event code
|
||||
299 Unique line(s) of event code
|
||||
45 Component(s)
|
||||
412 Line(s) of event code
|
||||
289 Unique line(s) of event code
|
||||
cardAlarm
|
||||
42 Component(s)
|
||||
415 Line(s) of event code
|
||||
253 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
398 Line(s) of event code
|
||||
232 Unique line(s) of event code
|
||||
popupThermo
|
||||
44 Component(s)
|
||||
519 Line(s) of event code
|
||||
274 Unique line(s) of event code
|
||||
cardMedia
|
||||
57 Component(s)
|
||||
660 Line(s) of event code
|
||||
325 Unique line(s) of event code
|
||||
cardEntities
|
||||
65 Component(s)
|
||||
1185 Line(s) of event code
|
||||
537 Unique line(s) of event code
|
||||
cardThermo
|
||||
55 Component(s)
|
||||
555 Line(s) of event code
|
||||
322 Unique line(s) of event code
|
||||
67 Component(s)
|
||||
1158 Line(s) of event code
|
||||
526 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
19 Page(s)
|
||||
670 Component(s)
|
||||
8375 Line(s) of event code
|
||||
2116 Unique line(s) of event code
|
||||
693 Component(s)
|
||||
8234 Line(s) of event code
|
||||
2125 Unique line(s) of event code
|
||||
|
||||
@@ -101,7 +101,7 @@ Text tTmp3
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 302
|
||||
y coordinate : 152
|
||||
y coordinate : 154
|
||||
Width : 146
|
||||
Height : 69
|
||||
Effect : load
|
||||
|
||||
@@ -402,7 +402,7 @@ Text tVersion
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
|
||||
@@ -21,7 +21,60 @@ Page pageTest
|
||||
Events
|
||||
Preinitialize Event
|
||||
vis p0,0
|
||||
recmod=1
|
||||
baud=115200
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 17
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tInstruction
|
||||
Attributes
|
||||
ID : 16
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 30
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
ID : 18
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Text tBench
|
||||
Attributes
|
||||
ID : 15
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 288
|
||||
y coordinate : 90
|
||||
Width : 152
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Associated Keyboard : none
|
||||
Font ID : 0
|
||||
Back. Color : 65535
|
||||
Font Color : 0
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 20
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Picture p0
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -47,8 +100,8 @@ Button b0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 5
|
||||
y coordinate : 12
|
||||
x coordinate : 0
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -119,8 +172,8 @@ Button b10
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 115
|
||||
y coordinate : 128
|
||||
x coordinate : 100
|
||||
y coordinate : 98
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -155,8 +208,8 @@ Button b11
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 117
|
||||
y coordinate : 184
|
||||
x coordinate : 100
|
||||
y coordinate : 145
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -185,14 +238,14 @@ Button b11
|
||||
|
||||
Button b12
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 115
|
||||
y coordinate : 244
|
||||
x coordinate : 0
|
||||
y coordinate : 242
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -209,7 +262,7 @@ Button b12
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
State : unpressed
|
||||
Text : chart
|
||||
Text : power
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -217,7 +270,43 @@ Button b12
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
page cardChart
|
||||
page cardPower
|
||||
|
||||
Button b13
|
||||
Attributes
|
||||
ID : 20
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 152
|
||||
y coordinate : 245
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Fill : solid color
|
||||
Style : 3D auto
|
||||
Font ID : 0
|
||||
Back. Color : 50712
|
||||
Back. Picture ID (Pressed) : 65535
|
||||
Back. Color (Pressed) : 1024
|
||||
Font Color (Unpressed) : 0
|
||||
Font Color (Pressed) : 65535
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
State : unpressed
|
||||
Text : newtxt
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
showqq
|
||||
|
||||
Button b2
|
||||
Attributes
|
||||
@@ -228,7 +317,7 @@ Button b2
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 244
|
||||
y coordinate : 195
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -299,8 +388,8 @@ Button b4
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 7
|
||||
y coordinate : 120
|
||||
x coordinate : 0
|
||||
y coordinate : 96
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -335,8 +424,8 @@ Button b5
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 111
|
||||
y coordinate : 12
|
||||
x coordinate : 100
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -371,8 +460,8 @@ Button b6
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 5
|
||||
y coordinate : 64
|
||||
x coordinate : 0
|
||||
y coordinate : 49
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -407,8 +496,8 @@ Button b7
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 113
|
||||
y coordinate : 72
|
||||
x coordinate : 100
|
||||
y coordinate : 49
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -480,8 +569,8 @@ Button b9
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 6
|
||||
y coordinate : 175
|
||||
x coordinate : 0
|
||||
y coordinate : 146
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -508,3 +597,83 @@ Button b9
|
||||
Touch Press Event
|
||||
page popupNotify
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
ID : 14
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
// data available
|
||||
if(usize>1)
|
||||
{
|
||||
bufferPos=0
|
||||
while(bufferPos<usize)
|
||||
{
|
||||
// check for 0x55 0xBB - Command Init Secuence
|
||||
if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
||||
{
|
||||
//remove garbage at the start of the buffer if there's any to free buffer for command
|
||||
if(u[bufferPos]!=1)
|
||||
{
|
||||
udelete bufferPos-1
|
||||
}
|
||||
//instruction is now aligned with buffer, because we deleted garbage before instrcution
|
||||
//get length after init sequence (check if there are more than to bytes in buffer)
|
||||
if(3<usize)
|
||||
{
|
||||
// check if serial buffer has reached the announced length
|
||||
ucopy payloadLength,2,2,0
|
||||
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
||||
payloadLength+=3
|
||||
// payload length does also not contain crc, so we are adding another 2 bytes for crc
|
||||
payloadLength+=2
|
||||
if(payloadLength<usize)
|
||||
{
|
||||
// calculate crc
|
||||
crcrest 1,0xFFFF
|
||||
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
||||
//crcputu 3,u[2]
|
||||
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
||||
crcputu 0,payloadLength-1
|
||||
// get recived crc to be able to compare it
|
||||
ucopy recvCrc,payloadLength-1,2,0
|
||||
// compare crc with recived value
|
||||
if(crcval==recvCrc)
|
||||
{
|
||||
// crc is okay
|
||||
// here is the location where acual code should be
|
||||
// write command to variable strCommand
|
||||
ucopy strCommand.txt,4,payloadLength-5,0
|
||||
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||
if(tInstruction.txt=="ping")
|
||||
{
|
||||
spstr strCommand.txt,tBench.txt,"~",1
|
||||
tSend.txt="pong,"+tBench.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,2
|
||||
crcputs tSend.txt,0
|
||||
//send cmd
|
||||
printh 55 bb
|
||||
prints sys0,2
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
bufferPos=0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// next character
|
||||
bufferPos++
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -681,8 +681,8 @@ Button bEffect
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 415
|
||||
y coordinate : 79
|
||||
x coordinate : 411
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -721,7 +721,7 @@ Dual-state Button btOnOff1
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 356
|
||||
y coordinate : 79
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
|
||||
@@ -90,7 +90,7 @@ Text tHeading
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Associated Keyboard : none
|
||||
Font ID : 1
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
Horizontal Alignment : left
|
||||
@@ -364,7 +364,7 @@ Button b1
|
||||
Effect Time : 300
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Font ID : 1
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Back. Picture ID (Pressed) : 8
|
||||
Back. Color (Pressed) : 1024
|
||||
@@ -413,7 +413,7 @@ Button b2
|
||||
Effect Time : 300
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Font ID : 1
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Back. Picture ID (Pressed) : 8
|
||||
Back. Color (Pressed) : 1024
|
||||
|
||||
@@ -134,7 +134,7 @@ Text tEntity
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 81
|
||||
x coordinate : 80
|
||||
y coordinate : 48
|
||||
Width : 195
|
||||
Height : 30
|
||||
@@ -164,7 +164,7 @@ Text tIcon1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 27
|
||||
y coordinate : 63
|
||||
Width : 45
|
||||
Height : 30
|
||||
@@ -194,7 +194,7 @@ Text tInfo1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 81
|
||||
x coordinate : 80
|
||||
y coordinate : 76
|
||||
Width : 195
|
||||
Height : 30
|
||||
@@ -224,7 +224,7 @@ Text tPosHeading
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 80
|
||||
x coordinate : 79
|
||||
y coordinate : 122
|
||||
Width : 188
|
||||
Height : 30
|
||||
@@ -254,7 +254,7 @@ Text tTiltHeading
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 80
|
||||
x coordinate : 79
|
||||
y coordinate : 231
|
||||
Width : 191
|
||||
Height : 30
|
||||
@@ -301,7 +301,7 @@ Slider hPosition
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 80
|
||||
x coordinate : 79
|
||||
y coordinate : 152
|
||||
Width : 335
|
||||
Height : 43
|
||||
@@ -345,7 +345,7 @@ Slider hTilt
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 80
|
||||
x coordinate : 79
|
||||
y coordinate : 261
|
||||
Width : 335
|
||||
Height : 43
|
||||
@@ -389,7 +389,7 @@ Button b0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 413
|
||||
x coordinate : 412
|
||||
y coordinate : 8
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -436,7 +436,7 @@ Button bDown1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 402
|
||||
x coordinate : 401
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -483,7 +483,7 @@ Button bStop1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 350
|
||||
x coordinate : 349
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -530,7 +530,7 @@ Button bTLeft
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 298
|
||||
x coordinate : 297
|
||||
y coordinate : 205
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -577,7 +577,7 @@ Button bTRight
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 402
|
||||
x coordinate : 401
|
||||
y coordinate : 205
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -624,7 +624,7 @@ Button bTStop
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 350
|
||||
x coordinate : 349
|
||||
y coordinate : 205
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -671,7 +671,7 @@ Button bUp1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 298
|
||||
x coordinate : 297
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
|
||||
@@ -207,7 +207,7 @@ Text heading1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 69
|
||||
Width : 262
|
||||
Height : 30
|
||||
@@ -237,7 +237,7 @@ Text heading2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 155
|
||||
Width : 262
|
||||
Height : 30
|
||||
@@ -267,7 +267,7 @@ Text heading3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 236
|
||||
Width : 262
|
||||
Height : 30
|
||||
@@ -297,7 +297,7 @@ Text tEntity
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 109
|
||||
x coordinate : 107
|
||||
y coordinate : 21
|
||||
Width : 263
|
||||
Height : 30
|
||||
@@ -327,7 +327,7 @@ Text tIcon1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 21
|
||||
Width : 45
|
||||
Height : 30
|
||||
@@ -374,7 +374,7 @@ Button b0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 414
|
||||
x coordinate : 412
|
||||
y coordinate : 8
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -421,7 +421,7 @@ Button bMode1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 101
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -473,7 +473,7 @@ Button bMode2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 152
|
||||
x coordinate : 150
|
||||
y coordinate : 101
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -525,7 +525,7 @@ Button bMode3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 276
|
||||
x coordinate : 274
|
||||
y coordinate : 101
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -577,7 +577,7 @@ Button bModeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 405
|
||||
x coordinate : 403
|
||||
y coordinate : 76
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -648,7 +648,7 @@ Button cMode1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 187
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -700,7 +700,7 @@ Button cMode2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 152
|
||||
x coordinate : 150
|
||||
y coordinate : 187
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -752,7 +752,7 @@ Button cMode3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 276
|
||||
x coordinate : 274
|
||||
y coordinate : 187
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -804,7 +804,7 @@ Button cModeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 405
|
||||
x coordinate : 403
|
||||
y coordinate : 162
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -874,7 +874,7 @@ Button dMode1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 28
|
||||
x coordinate : 26
|
||||
y coordinate : 268
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -926,7 +926,7 @@ Button dMode2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 152
|
||||
x coordinate : 150
|
||||
y coordinate : 268
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -978,7 +978,7 @@ Button dMode3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 276
|
||||
x coordinate : 274
|
||||
y coordinate : 268
|
||||
Width : 120
|
||||
Height : 35
|
||||
@@ -1030,7 +1030,7 @@ Button dModeNext
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 405
|
||||
x coordinate : 403
|
||||
y coordinate : 243
|
||||
Width : 50
|
||||
Height : 50
|
||||
|
||||
@@ -48,6 +48,13 @@ Variable (string) strCommand
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) strTmp
|
||||
Attributes
|
||||
ID : 45
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 2
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
ID : 16
|
||||
@@ -126,8 +133,8 @@ Text t10
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 62
|
||||
y coordinate : 199
|
||||
x coordinate : 61
|
||||
y coordinate : 201
|
||||
Width : 360
|
||||
Height : 2
|
||||
Effect : load
|
||||
@@ -156,7 +163,7 @@ Text tAMPM
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 359
|
||||
x coordinate : 358
|
||||
y coordinate : 56
|
||||
Width : 104
|
||||
Height : 57
|
||||
@@ -186,8 +193,8 @@ Text tDate
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
y coordinate : 162
|
||||
x coordinate : 15
|
||||
y coordinate : 165
|
||||
Width : 450
|
||||
Height : 32
|
||||
Effect : load
|
||||
@@ -216,8 +223,8 @@ Text tF1Icon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 162
|
||||
y coordinate : 243
|
||||
x coordinate : 161
|
||||
y coordinate : 245
|
||||
Width : 40
|
||||
Height : 35
|
||||
Effect : load
|
||||
@@ -246,8 +253,8 @@ Text tF2Icon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 244
|
||||
y coordinate : 243
|
||||
x coordinate : 243
|
||||
y coordinate : 245
|
||||
Width : 40
|
||||
Height : 35
|
||||
Effect : load
|
||||
@@ -276,8 +283,8 @@ Text tF3Icon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 325
|
||||
y coordinate : 243
|
||||
x coordinate : 324
|
||||
y coordinate : 245
|
||||
Width : 40
|
||||
Height : 35
|
||||
Effect : load
|
||||
@@ -306,8 +313,8 @@ Text tF4Icon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 406
|
||||
y coordinate : 243
|
||||
x coordinate : 405
|
||||
y coordinate : 245
|
||||
Width : 40
|
||||
Height : 35
|
||||
Effect : load
|
||||
@@ -336,8 +343,8 @@ Text tForecast1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 144
|
||||
y coordinate : 214
|
||||
x coordinate : 143
|
||||
y coordinate : 216
|
||||
Width : 72
|
||||
Height : 26
|
||||
Effect : load
|
||||
@@ -366,8 +373,8 @@ Text tForecast1Val
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 141
|
||||
y coordinate : 280
|
||||
x coordinate : 140
|
||||
y coordinate : 282
|
||||
Width : 71
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -396,8 +403,8 @@ Text tForecast2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 228
|
||||
y coordinate : 214
|
||||
x coordinate : 227
|
||||
y coordinate : 216
|
||||
Width : 72
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -426,8 +433,8 @@ Text tForecast2Val
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 228
|
||||
y coordinate : 281
|
||||
x coordinate : 227
|
||||
y coordinate : 283
|
||||
Width : 72
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -456,8 +463,8 @@ Text tForecast3
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 309
|
||||
y coordinate : 214
|
||||
x coordinate : 308
|
||||
y coordinate : 216
|
||||
Width : 72
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -486,8 +493,8 @@ Text tForecast3Val
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 308
|
||||
y coordinate : 281
|
||||
x coordinate : 307
|
||||
y coordinate : 283
|
||||
Width : 71
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -516,8 +523,8 @@ Text tForecast4
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 390
|
||||
y coordinate : 214
|
||||
x coordinate : 389
|
||||
y coordinate : 216
|
||||
Width : 72
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -546,8 +553,8 @@ Text tForecast4Val
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 390
|
||||
y coordinate : 281
|
||||
x coordinate : 389
|
||||
y coordinate : 283
|
||||
Width : 72
|
||||
Height : 25
|
||||
Effect : load
|
||||
@@ -576,7 +583,7 @@ Text tIcon1
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
x coordinate : 15
|
||||
y coordinate : 0
|
||||
Width : 85
|
||||
Height : 45
|
||||
@@ -590,7 +597,7 @@ Text tIcon1
|
||||
Back. Color : 0
|
||||
Font Color : 17299
|
||||
Horizontal Alignment : left
|
||||
Vertical Alignment : center
|
||||
Vertical Alignment : top
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
@@ -606,7 +613,7 @@ Text tIcon2
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 393
|
||||
x coordinate : 380
|
||||
y coordinate : 0
|
||||
Width : 85
|
||||
Height : 45
|
||||
@@ -620,7 +627,7 @@ Text tIcon2
|
||||
Back. Color : 0
|
||||
Font Color : 17299
|
||||
Horizontal Alignment : right
|
||||
Vertical Alignment : center
|
||||
Vertical Alignment : top
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
@@ -636,8 +643,8 @@ Text tMR
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 160
|
||||
y coordinate : 274
|
||||
x coordinate : 159
|
||||
y coordinate : 276
|
||||
Width : 62
|
||||
Height : 21
|
||||
Effect : load
|
||||
@@ -666,8 +673,8 @@ Text tMRIcon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 117
|
||||
y coordinate : 270
|
||||
x coordinate : 116
|
||||
y coordinate : 272
|
||||
Width : 40
|
||||
Height : 35
|
||||
Effect : load
|
||||
@@ -696,8 +703,8 @@ Text tMainIcon
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 42
|
||||
y coordinate : 206
|
||||
x coordinate : 41
|
||||
y coordinate : 208
|
||||
Width : 70
|
||||
Height : 66
|
||||
Effect : load
|
||||
@@ -726,8 +733,8 @@ Text tMainIconAlt
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
y coordinate : 225
|
||||
x coordinate : 15
|
||||
y coordinate : 227
|
||||
Width : 100
|
||||
Height : 66
|
||||
Effect : load
|
||||
@@ -756,8 +763,8 @@ Text tMainText
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 23
|
||||
y coordinate : 271
|
||||
x coordinate : 22
|
||||
y coordinate : 273
|
||||
Width : 110
|
||||
Height : 43
|
||||
Effect : load
|
||||
@@ -786,8 +793,8 @@ Text tMainTextAlt
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 120
|
||||
y coordinate : 214
|
||||
x coordinate : 119
|
||||
y coordinate : 216
|
||||
Width : 106
|
||||
Height : 42
|
||||
Effect : load
|
||||
@@ -816,8 +823,8 @@ Text tNotifyHead
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
y coordinate : 205
|
||||
x coordinate : 15
|
||||
y coordinate : 207
|
||||
Width : 450
|
||||
Height : 58
|
||||
Effect : load
|
||||
@@ -846,8 +853,8 @@ Text tNotifyText
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
y coordinate : 262
|
||||
x coordinate : 15
|
||||
y coordinate : 264
|
||||
Width : 450
|
||||
Height : 47
|
||||
Effect : load
|
||||
@@ -863,7 +870,7 @@ Text tNotifyText
|
||||
Vertical Alignment : top
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
Word wrap : enabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
@@ -876,7 +883,7 @@ Text tTime
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 53
|
||||
x coordinate : 52
|
||||
y coordinate : 25
|
||||
Width : 376
|
||||
Height : 112
|
||||
@@ -906,8 +913,8 @@ Text tTimeAdd
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
y coordinate : 130
|
||||
x coordinate : 15
|
||||
y coordinate : 134
|
||||
Width : 450
|
||||
Height : 32
|
||||
Effect : load
|
||||
@@ -1065,6 +1072,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
@@ -14,3 +14,4 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
page pageStartup
|
||||
|
||||
@@ -63,6 +63,18 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -482,14 +494,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -514,14 +519,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -640,86 +638,80 @@ Timer tmSerial
|
||||
{
|
||||
//entn
|
||||
spstr strCommand.txt,entn.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text arm1
|
||||
spstr strCommand.txt,arm1.txt,"~",3
|
||||
spstr strCommand.txt,arm1.txt,"~",14
|
||||
if(arm1.txt!="")
|
||||
{
|
||||
vis arm1,1
|
||||
}
|
||||
//id arm1
|
||||
spstr strCommand.txt,va1.txt,"~",4
|
||||
spstr strCommand.txt,va1.txt,"~",15
|
||||
//text arm2
|
||||
spstr strCommand.txt,arm2.txt,"~",5
|
||||
spstr strCommand.txt,arm2.txt,"~",16
|
||||
if(arm2.txt!="")
|
||||
{
|
||||
vis arm2,1
|
||||
}
|
||||
//id arm2
|
||||
spstr strCommand.txt,va2.txt,"~",6
|
||||
spstr strCommand.txt,va2.txt,"~",17
|
||||
//text arm3
|
||||
spstr strCommand.txt,arm3.txt,"~",7
|
||||
spstr strCommand.txt,arm3.txt,"~",18
|
||||
if(arm3.txt!="")
|
||||
{
|
||||
vis arm3,1
|
||||
}
|
||||
//id arm3
|
||||
spstr strCommand.txt,va3.txt,"~",8
|
||||
spstr strCommand.txt,va3.txt,"~",19
|
||||
//text arm4
|
||||
spstr strCommand.txt,arm4.txt,"~",9
|
||||
spstr strCommand.txt,arm4.txt,"~",20
|
||||
if(arm4.txt!="")
|
||||
{
|
||||
vis arm4,1
|
||||
}
|
||||
//id arm4
|
||||
spstr strCommand.txt,va4.txt,"~",10
|
||||
spstr strCommand.txt,va4.txt,"~",21
|
||||
//icon
|
||||
spstr strCommand.txt,tIcon.txt,"~",11
|
||||
spstr strCommand.txt,tIcon.txt,"~",22
|
||||
//icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon.pco=sys0
|
||||
//numpad status
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
if(tTmp.txt!="disable")
|
||||
{
|
||||
vis b0,1
|
||||
@@ -752,7 +744,7 @@ Timer tmSerial
|
||||
vis tCode,0
|
||||
}
|
||||
//flashing status
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
if(tTmp.txt=="enable")
|
||||
{
|
||||
tmFlash.en=1
|
||||
@@ -761,13 +753,13 @@ Timer tmSerial
|
||||
tmFlash.en=0
|
||||
}
|
||||
// extra button
|
||||
spstr strCommand.txt,b9.txt,"~",15
|
||||
spstr strCommand.txt,b9.txt,"~",26
|
||||
if(b9.txt!="")
|
||||
{
|
||||
vis b9,1
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,b9.pco,0,0
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
|
||||
@@ -49,6 +49,18 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -179,14 +191,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -211,14 +216,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -399,48 +397,42 @@ Timer tmSerial
|
||||
if(tInstruction.txt=="entityUpd")
|
||||
{
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// extract color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,vaColorL.val,0,0
|
||||
// prepare dark color
|
||||
sys0=vaColorL.val>>11 // red
|
||||
@@ -452,7 +444,7 @@ Timer tmSerial
|
||||
//
|
||||
// detect nValues and maxValue
|
||||
vNValues.val=0
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
while(sya0>0)
|
||||
{
|
||||
@@ -463,7 +455,7 @@ Timer tmSerial
|
||||
}
|
||||
// next
|
||||
vNValues.val++
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
}
|
||||
//
|
||||
@@ -478,7 +470,7 @@ Timer tmSerial
|
||||
//
|
||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||
spstr strCommand.txt,strTmp.txt,"~",5
|
||||
spstr strCommand.txt,strTmp.txt,"~",16
|
||||
sya1=0
|
||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||
strlen tTmp.txt,sya0
|
||||
@@ -511,7 +503,7 @@ Timer tmSerial
|
||||
}
|
||||
//
|
||||
// y achis label
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
// tTmp.txt="Gas [kW]"
|
||||
strlen tTmp.txt,sys1
|
||||
sya1=sys1*12+m0.h-48/2
|
||||
@@ -527,7 +519,7 @@ Timer tmSerial
|
||||
vaValues.txt+="~"
|
||||
}
|
||||
// extract next entry
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||
// calculate left
|
||||
sys1=sys0*5*vaUnit.val
|
||||
sys1+=vaLeft.val
|
||||
|
||||
@@ -110,6 +110,18 @@ Variable (string) entn4
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -533,14 +545,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -565,14 +570,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1238,50 +1236,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis bUp1,0
|
||||
@@ -1296,14 +1288,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",5
|
||||
spstr strCommand.txt,tIcon1.txt,"~",16
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="shutter")
|
||||
@@ -1316,7 +1308,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr strCommand.txt,tId.txt,"~",19
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1367,7 +1359,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -1384,7 +1376,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="button"||type1.txt=="input_sel")
|
||||
{
|
||||
@@ -1399,7 +1391,7 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="number")
|
||||
{
|
||||
@@ -1412,7 +1404,7 @@ Timer tmSerial
|
||||
vis hSlider1,1
|
||||
vis nNum1,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
//first value is current value
|
||||
spstr bText1.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1428,9 +1420,9 @@ Timer tmSerial
|
||||
hSlider1.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis bUp2,0
|
||||
@@ -1445,14 +1437,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",11
|
||||
spstr strCommand.txt,tIcon2.txt,"~",22
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="shutter")
|
||||
@@ -1465,7 +1457,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr strCommand.txt,tId.txt,"~",25
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1516,7 +1508,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -1533,7 +1525,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="button"||type2.txt=="input_sel")
|
||||
{
|
||||
@@ -1548,7 +1540,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="number")
|
||||
{
|
||||
@@ -1561,7 +1553,7 @@ Timer tmSerial
|
||||
vis hSlider2,1
|
||||
vis nNum2,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
//first value is current value
|
||||
spstr bText2.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1577,9 +1569,9 @@ Timer tmSerial
|
||||
hSlider2.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis bUp3,0
|
||||
@@ -1594,14 +1586,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon3.txt,"~",17
|
||||
spstr strCommand.txt,tIcon3.txt,"~",28
|
||||
vis tIcon3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
if(type3.txt=="shutter")
|
||||
@@ -1614,7 +1606,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr strCommand.txt,tId.txt,"~",31
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1665,7 +1657,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff3.val=sys0
|
||||
}
|
||||
@@ -1682,7 +1674,7 @@ Timer tmSerial
|
||||
bText3.pco=65535
|
||||
bText3.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="button"||type3.txt=="input_sel")
|
||||
{
|
||||
@@ -1697,7 +1689,7 @@ Timer tmSerial
|
||||
bText3.pco=1374
|
||||
bText3.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="number")
|
||||
{
|
||||
@@ -1710,7 +1702,7 @@ Timer tmSerial
|
||||
vis hSlider3,1
|
||||
vis nNum3,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
//first value is current value
|
||||
spstr bText3.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1726,9 +1718,9 @@ Timer tmSerial
|
||||
hSlider3.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis bUp4,0
|
||||
@@ -1743,14 +1735,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon4.txt,"~",23
|
||||
spstr strCommand.txt,tIcon4.txt,"~",34
|
||||
vis tIcon4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
if(type4.txt=="shutter")
|
||||
@@ -1763,7 +1755,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr strCommand.txt,tId.txt,"~",37
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1814,7 +1806,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff4.val=sys0
|
||||
}
|
||||
@@ -1831,7 +1823,7 @@ Timer tmSerial
|
||||
bText4.pco=65535
|
||||
bText4.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="button"||type4.txt=="input_sel")
|
||||
{
|
||||
@@ -1846,7 +1838,7 @@ Timer tmSerial
|
||||
bText4.pco=1374
|
||||
bText4.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="number")
|
||||
{
|
||||
@@ -1859,7 +1851,7 @@ Timer tmSerial
|
||||
vis hSlider4,1
|
||||
vis nNum4,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
//first value is current value
|
||||
spstr bText4.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -82,11 +82,23 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 500
|
||||
Max. Text Size: 700
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
@@ -519,14 +531,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -551,14 +556,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -693,50 +691,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -744,20 +736,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",5
|
||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -765,20 +757,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",11
|
||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -786,20 +778,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",17
|
||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -807,20 +799,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",23
|
||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -828,20 +820,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",29
|
||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -849,14 +841,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",35
|
||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,18 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -766,14 +778,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -798,14 +803,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -933,72 +931,66 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//title
|
||||
spstr strCommand.txt,tTitle.txt,"~",4
|
||||
spstr strCommand.txt,tTitle.txt,"~",15
|
||||
//title farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tTitle.pco,0,0
|
||||
}
|
||||
//author
|
||||
spstr strCommand.txt,tAuthor.txt,"~",6
|
||||
spstr strCommand.txt,tAuthor.txt,"~",17
|
||||
//author farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tAuthor.pco,0,0
|
||||
}
|
||||
//volume
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hVolume.val=sys0
|
||||
//icon
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",9
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",20
|
||||
// on off button
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis t5,0
|
||||
@@ -1008,7 +1000,7 @@ Timer tmSerial
|
||||
covx tTmp.txt,t5.pco,0,0
|
||||
}
|
||||
// shuffel btn
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis tShuffle,0
|
||||
@@ -1018,9 +1010,9 @@ Timer tmSerial
|
||||
tShuffle.txt=tTmp.txt
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",12
|
||||
spstr strCommand.txt,type1.txt,"~",23
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",13
|
||||
spstr strCommand.txt,entn1.txt,"~",24
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1028,20 +1020,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",14
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",16
|
||||
spstr strCommand.txt,tEntity1.txt,"~",27
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",18
|
||||
spstr strCommand.txt,type2.txt,"~",29
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",19
|
||||
spstr strCommand.txt,entn2.txt,"~",30
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1049,20 +1041,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",20
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",22
|
||||
spstr strCommand.txt,tEntity2.txt,"~",33
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",24
|
||||
spstr strCommand.txt,type3.txt,"~",35
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",25
|
||||
spstr strCommand.txt,entn3.txt,"~",36
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1070,20 +1062,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",26
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",28
|
||||
spstr strCommand.txt,tEntity3.txt,"~",39
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",30
|
||||
spstr strCommand.txt,type4.txt,"~",41
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",31
|
||||
spstr strCommand.txt,entn4.txt,"~",42
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1091,20 +1083,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",32
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",34
|
||||
spstr strCommand.txt,tEntity4.txt,"~",45
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",36
|
||||
spstr strCommand.txt,type5.txt,"~",47
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",37
|
||||
spstr strCommand.txt,entn5.txt,"~",48
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1112,20 +1104,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",38
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",40
|
||||
spstr strCommand.txt,tEntity5.txt,"~",51
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",42
|
||||
spstr strCommand.txt,type6.txt,"~",53
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",43
|
||||
spstr strCommand.txt,entn6.txt,"~",54
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1133,14 +1125,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",44
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",45
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",46
|
||||
spstr strCommand.txt,tEntity6.txt,"~",57
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
@@ -1208,6 +1200,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardPower
|
||||
}
|
||||
if(tId.txt=="cardChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -57,6 +57,18 @@ Page cardPower
|
||||
}
|
||||
}
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -346,14 +358,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardPower,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -378,14 +383,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -555,63 +553,57 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// icon color home
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,t1.pco,0,0
|
||||
// icon home
|
||||
spstr strCommand.txt,t1.txt,"~",4
|
||||
spstr strCommand.txt,t1.txt,"~",15
|
||||
// text home
|
||||
spstr strCommand.txt,tHome.txt,"~",5
|
||||
spstr strCommand.txt,tHome.txt,"~",16
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,t0Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||
spstr strCommand.txt,t0Icon.txt,"~",18
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,t0Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t0u.txt,"~",9
|
||||
spstr strCommand.txt,t0u.txt,"~",20
|
||||
if(t0Icon.txt!="")
|
||||
{
|
||||
vis t0Icon,1
|
||||
@@ -624,15 +616,15 @@ Timer tmSerial
|
||||
vis h0,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
covx tTmp.txt,t1Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||
spstr strCommand.txt,t1Icon.txt,"~",22
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,t1Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t1u.txt,"~",13
|
||||
spstr strCommand.txt,t1u.txt,"~",24
|
||||
if(t1Icon.txt!="")
|
||||
{
|
||||
vis t1Icon,1
|
||||
@@ -645,15 +637,15 @@ Timer tmSerial
|
||||
vis h1,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,t2Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||
spstr strCommand.txt,t2Icon.txt,"~",26
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,t2Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t2u.txt,"~",17
|
||||
spstr strCommand.txt,t2u.txt,"~",28
|
||||
if(t2Icon.txt!="")
|
||||
{
|
||||
vis t2Icon,1
|
||||
@@ -666,15 +658,15 @@ Timer tmSerial
|
||||
vis h2,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,t3Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||
spstr strCommand.txt,t3Icon.txt,"~",30
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,t3Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t3u.txt,"~",21
|
||||
spstr strCommand.txt,t3u.txt,"~",32
|
||||
if(t3Icon.txt!="")
|
||||
{
|
||||
vis t3Icon,1
|
||||
@@ -687,15 +679,15 @@ Timer tmSerial
|
||||
vis h3,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
covx tTmp.txt,t4Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||
spstr strCommand.txt,t4Icon.txt,"~",34
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,t4Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t4u.txt,"~",25
|
||||
spstr strCommand.txt,t4u.txt,"~",36
|
||||
if(t4Icon.txt!="")
|
||||
{
|
||||
vis t4Icon,1
|
||||
@@ -708,15 +700,15 @@ Timer tmSerial
|
||||
vis h4,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,t5Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||
spstr strCommand.txt,t5Icon.txt,"~",38
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,t5Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t5u.txt,"~",29
|
||||
spstr strCommand.txt,t5u.txt,"~",40
|
||||
if(t5Icon.txt!="")
|
||||
{
|
||||
vis t5Icon,1
|
||||
|
||||
@@ -70,11 +70,23 @@ Variable (string) entn2
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 275
|
||||
Max. Text Size: 400
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -187,14 +199,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardQR,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -219,14 +224,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -446,52 +444,46 @@ Timer tmSerial
|
||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||
//tHeading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text qrcode
|
||||
spstr strCommand.txt,vaQR.txt,"~",3
|
||||
spstr strCommand.txt,vaQR.txt,"~",14
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",4
|
||||
spstr strCommand.txt,type1.txt,"~",15
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",5
|
||||
spstr strCommand.txt,entn1.txt,"~",16
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis btOnOff1,0
|
||||
@@ -501,14 +493,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
||||
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
||||
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
@@ -516,7 +508,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -525,7 +517,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -537,7 +529,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
if(type1.txt=="button")
|
||||
{
|
||||
@@ -547,12 +539,12 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",10
|
||||
spstr strCommand.txt,type2.txt,"~",21
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",11
|
||||
spstr strCommand.txt,entn2.txt,"~",22
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis btOnOff2,0
|
||||
@@ -562,14 +554,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
||||
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
||||
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
@@ -577,7 +569,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -586,7 +578,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -598,7 +590,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="button")
|
||||
{
|
||||
@@ -608,7 +600,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
|
||||
@@ -63,11 +63,23 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -294,14 +306,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -326,14 +331,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -835,64 +833,58 @@ Timer tmSerial
|
||||
{
|
||||
//heading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//currentTemp
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",4
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",15
|
||||
//dstTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
covx tTmp.txt,xTempDest1.val,0,0
|
||||
xTempDest.val=xTempDest1.val
|
||||
//status
|
||||
spstr strCommand.txt,tStatus.txt,"~",6
|
||||
spstr strCommand.txt,tStatus.txt,"~",17
|
||||
//minTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,xTempMin1.val,0,0
|
||||
//maxTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,xTempMax1.val,0,0
|
||||
//tempStep
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,xTempStep1.val,0,0
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -904,137 +896,137 @@ Timer tmSerial
|
||||
vis bt6,0
|
||||
vis bt7,0
|
||||
//bt0
|
||||
spstr strCommand.txt,bt0.txt,"~",10
|
||||
spstr strCommand.txt,bt0.txt,"~",21
|
||||
if(bt0.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
covx tTmp.txt,bt0.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,bt0.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va0.txt,"~",13
|
||||
spstr strCommand.txt,va0.txt,"~",24
|
||||
//enable
|
||||
vis bt0,1
|
||||
}
|
||||
//bt1
|
||||
spstr strCommand.txt,bt1.txt,"~",14
|
||||
spstr strCommand.txt,bt1.txt,"~",25
|
||||
if(bt1.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,bt1.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,bt1.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va1.txt,"~",17
|
||||
spstr strCommand.txt,va1.txt,"~",28
|
||||
//enable
|
||||
vis bt1,1
|
||||
}
|
||||
//bt2
|
||||
spstr strCommand.txt,bt2.txt,"~",18
|
||||
spstr strCommand.txt,bt2.txt,"~",29
|
||||
if(bt2.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
covx tTmp.txt,bt2.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,bt2.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va2.txt,"~",21
|
||||
spstr strCommand.txt,va2.txt,"~",32
|
||||
//enable
|
||||
vis bt2,1
|
||||
}
|
||||
//bt3
|
||||
spstr strCommand.txt,bt3.txt,"~",22
|
||||
spstr strCommand.txt,bt3.txt,"~",33
|
||||
if(bt3.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
spstr strCommand.txt,tTmp.txt,"~",34
|
||||
covx tTmp.txt,bt3.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,bt3.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va3.txt,"~",25
|
||||
spstr strCommand.txt,va3.txt,"~",36
|
||||
//enable
|
||||
vis bt3,1
|
||||
}
|
||||
//bt4
|
||||
spstr strCommand.txt,bt4.txt,"~",26
|
||||
spstr strCommand.txt,bt4.txt,"~",37
|
||||
if(bt4.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,bt4.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,bt4.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va4.txt,"~",29
|
||||
spstr strCommand.txt,va4.txt,"~",40
|
||||
//enable
|
||||
vis bt4,1
|
||||
}
|
||||
//bt5
|
||||
spstr strCommand.txt,bt5.txt,"~",30
|
||||
spstr strCommand.txt,bt5.txt,"~",41
|
||||
if(bt5.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
spstr strCommand.txt,tTmp.txt,"~",42
|
||||
covx tTmp.txt,bt5.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,bt5.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va5.txt,"~",33
|
||||
spstr strCommand.txt,va5.txt,"~",44
|
||||
//enable
|
||||
vis bt5,1
|
||||
}
|
||||
//bt6
|
||||
spstr strCommand.txt,bt6.txt,"~",34
|
||||
spstr strCommand.txt,bt6.txt,"~",45
|
||||
if(bt6.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
covx tTmp.txt,bt6.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,bt6.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va6.txt,"~",37
|
||||
spstr strCommand.txt,va6.txt,"~",48
|
||||
//enable
|
||||
vis bt6,1
|
||||
}
|
||||
//bt7
|
||||
spstr strCommand.txt,bt7.txt,"~",38
|
||||
spstr strCommand.txt,bt7.txt,"~",49
|
||||
if(bt7.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,bt7.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",40
|
||||
spstr strCommand.txt,tTmp.txt,"~",51
|
||||
covx tTmp.txt,bt7.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va7.txt,"~",41
|
||||
spstr strCommand.txt,va7.txt,"~",52
|
||||
//enable
|
||||
vis bt7,1
|
||||
}
|
||||
//Text tCurTempLbl
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",42
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",53
|
||||
//Text tStateLbl
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",43
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",54
|
||||
//Text tALbl
|
||||
//spstr strCommand.txt,tALbl.txt,"~",44
|
||||
//spstr strCommand.txt,tALbl.txt,"~",55
|
||||
//Text tCF
|
||||
spstr strCommand.txt,tCF.txt,"~",45
|
||||
spstr strCommand.txt,tCF.txt,"~",56
|
||||
tCF1.txt=tCF.txt
|
||||
tCF2.txt=tCF.txt
|
||||
//Second Temperature
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
spstr strCommand.txt,tTmp.txt,"~",57
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,xTempDest2.val,0,0
|
||||
@@ -1052,8 +1044,8 @@ Timer tmSerial
|
||||
vis tCF2,1
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
if(tTmp.txt=="1")
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
if(tTmp.txt!="1")
|
||||
{
|
||||
vis btDetail,1
|
||||
}else
|
||||
|
||||
@@ -152,7 +152,7 @@ Text tVersion
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
|
||||
@@ -13,7 +13,37 @@ Page pageTest
|
||||
Events
|
||||
Preinitialize Event
|
||||
vis p0,0
|
||||
recmod=1
|
||||
baud=115200
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 20
|
||||
|
||||
Variable (string) tInstruction
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 30
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Text tBench
|
||||
Attributes
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text :
|
||||
Max. Text Size : 20
|
||||
|
||||
Picture p0
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -84,12 +114,26 @@ Button b12
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
State : unpressed
|
||||
Text : chart
|
||||
Text : power
|
||||
Max. Text Size : 10
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
page cardChart
|
||||
page cardPower
|
||||
|
||||
Button b13
|
||||
Attributes
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
State : unpressed
|
||||
Text : newtxt
|
||||
Max. Text Size : 10
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
showqq
|
||||
|
||||
Button b2
|
||||
Attributes
|
||||
@@ -204,3 +248,82 @@ Button b9
|
||||
Touch Press Event
|
||||
page popupNotify
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
// data available
|
||||
if(usize>1)
|
||||
{
|
||||
bufferPos=0
|
||||
while(bufferPos<usize)
|
||||
{
|
||||
// check for 0x55 0xBB - Command Init Secuence
|
||||
if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
||||
{
|
||||
//remove garbage at the start of the buffer if there's any to free buffer for command
|
||||
if(u[bufferPos]!=1)
|
||||
{
|
||||
udelete bufferPos-1
|
||||
}
|
||||
//instruction is now aligned with buffer, because we deleted garbage before instrcution
|
||||
//get length after init sequence (check if there are more than to bytes in buffer)
|
||||
if(3<usize)
|
||||
{
|
||||
// check if serial buffer has reached the announced length
|
||||
ucopy payloadLength,2,2,0
|
||||
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
||||
payloadLength+=3
|
||||
// payload length does also not contain crc, so we are adding another 2 bytes for crc
|
||||
payloadLength+=2
|
||||
if(payloadLength<usize)
|
||||
{
|
||||
// calculate crc
|
||||
crcrest 1,0xFFFF
|
||||
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
||||
//crcputu 3,u[2]
|
||||
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
||||
crcputu 0,payloadLength-1
|
||||
// get recived crc to be able to compare it
|
||||
ucopy recvCrc,payloadLength-1,2,0
|
||||
// compare crc with recived value
|
||||
if(crcval==recvCrc)
|
||||
{
|
||||
// crc is okay
|
||||
// here is the location where acual code should be
|
||||
// write command to variable strCommand
|
||||
ucopy strCommand.txt,4,payloadLength-5,0
|
||||
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||
if(tInstruction.txt=="ping")
|
||||
{
|
||||
spstr strCommand.txt,tBench.txt,"~",1
|
||||
tSend.txt="pong,"+tBench.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,2
|
||||
crcputs tSend.txt,0
|
||||
//send cmd
|
||||
printh 55 bb
|
||||
prints sys0,2
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
bufferPos=0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// next character
|
||||
bufferPos++
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,12 @@ Variable (string) strCommand
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) strTmp
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 2
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -346,7 +352,7 @@ Text tNotifyText
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
|
||||
Text tTime
|
||||
Attributes
|
||||
@@ -493,6 +499,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -72,6 +72,20 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 41
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 40
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 6
|
||||
@@ -1014,14 +1028,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1068,14 +1075,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1223,86 +1223,80 @@ Timer tmSerial
|
||||
{
|
||||
//entn
|
||||
spstr strCommand.txt,entn.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text arm1
|
||||
spstr strCommand.txt,arm1.txt,"~",3
|
||||
spstr strCommand.txt,arm1.txt,"~",14
|
||||
if(arm1.txt!="")
|
||||
{
|
||||
vis arm1,1
|
||||
}
|
||||
//id arm1
|
||||
spstr strCommand.txt,va1.txt,"~",4
|
||||
spstr strCommand.txt,va1.txt,"~",15
|
||||
//text arm2
|
||||
spstr strCommand.txt,arm2.txt,"~",5
|
||||
spstr strCommand.txt,arm2.txt,"~",16
|
||||
if(arm2.txt!="")
|
||||
{
|
||||
vis arm2,1
|
||||
}
|
||||
//id arm2
|
||||
spstr strCommand.txt,va2.txt,"~",6
|
||||
spstr strCommand.txt,va2.txt,"~",17
|
||||
//text arm3
|
||||
spstr strCommand.txt,arm3.txt,"~",7
|
||||
spstr strCommand.txt,arm3.txt,"~",18
|
||||
if(arm3.txt!="")
|
||||
{
|
||||
vis arm3,1
|
||||
}
|
||||
//id arm3
|
||||
spstr strCommand.txt,va3.txt,"~",8
|
||||
spstr strCommand.txt,va3.txt,"~",19
|
||||
//text arm4
|
||||
spstr strCommand.txt,arm4.txt,"~",9
|
||||
spstr strCommand.txt,arm4.txt,"~",20
|
||||
if(arm4.txt!="")
|
||||
{
|
||||
vis arm4,1
|
||||
}
|
||||
//id arm4
|
||||
spstr strCommand.txt,va4.txt,"~",10
|
||||
spstr strCommand.txt,va4.txt,"~",21
|
||||
//icon
|
||||
spstr strCommand.txt,tIcon.txt,"~",11
|
||||
spstr strCommand.txt,tIcon.txt,"~",22
|
||||
//icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon.pco=sys0
|
||||
//numpad status
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
if(tTmp.txt!="disable")
|
||||
{
|
||||
vis b0,1
|
||||
@@ -1335,7 +1329,7 @@ Timer tmSerial
|
||||
vis tCode,0
|
||||
}
|
||||
//flashing status
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
if(tTmp.txt=="enable")
|
||||
{
|
||||
tmFlash.en=1
|
||||
@@ -1344,13 +1338,13 @@ Timer tmSerial
|
||||
tmFlash.en=0
|
||||
}
|
||||
// extra button
|
||||
spstr strCommand.txt,b9.txt,"~",15
|
||||
spstr strCommand.txt,b9.txt,"~",26
|
||||
if(b9.txt!="")
|
||||
{
|
||||
vis b9,1
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,b9.pco,0,0
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
|
||||
@@ -58,6 +58,20 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 32
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 31
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 3
|
||||
@@ -280,14 +294,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -334,14 +341,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -559,48 +559,42 @@ Timer tmSerial
|
||||
if(tInstruction.txt=="entityUpd")
|
||||
{
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// extract color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,vaColorL.val,0,0
|
||||
// prepare dark color
|
||||
sys0=vaColorL.val>>11 // red
|
||||
@@ -612,7 +606,7 @@ Timer tmSerial
|
||||
//
|
||||
// detect nValues and maxValue
|
||||
vNValues.val=0
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
while(sya0>0)
|
||||
{
|
||||
@@ -623,7 +617,7 @@ Timer tmSerial
|
||||
}
|
||||
// next
|
||||
vNValues.val++
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
}
|
||||
//
|
||||
@@ -638,7 +632,7 @@ Timer tmSerial
|
||||
//
|
||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||
spstr strCommand.txt,strTmp.txt,"~",5
|
||||
spstr strCommand.txt,strTmp.txt,"~",16
|
||||
sya1=0
|
||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||
strlen tTmp.txt,sya0
|
||||
@@ -671,7 +665,7 @@ Timer tmSerial
|
||||
}
|
||||
//
|
||||
// y achis label
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
// tTmp.txt="Gas [kW]"
|
||||
strlen tTmp.txt,sys1
|
||||
sya1=sys1*12+m0.h-48/2
|
||||
@@ -687,7 +681,7 @@ Timer tmSerial
|
||||
vaValues.txt+="~"
|
||||
}
|
||||
// extract next entry
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||
// calculate left
|
||||
sys1=sys0*5*vaUnit.val
|
||||
sys1+=vaLeft.val
|
||||
|
||||
@@ -109,42 +109,56 @@ Variable (string) entn1
|
||||
ID : 48
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
ID : 49
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
ID : 50
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
ID : 51
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn5
|
||||
Attributes
|
||||
ID : 61
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn6
|
||||
Attributes
|
||||
ID : 88
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 90
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 89
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
@@ -1453,14 +1467,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1507,14 +1514,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -3049,50 +3049,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis bUp1,0
|
||||
@@ -3107,14 +3101,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",5
|
||||
spstr strCommand.txt,tIcon1.txt,"~",16
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="shutter")
|
||||
@@ -3127,7 +3121,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr strCommand.txt,tId.txt,"~",19
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3178,7 +3172,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -3195,7 +3189,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="button"||type1.txt=="input_sel")
|
||||
{
|
||||
@@ -3210,7 +3204,7 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="number")
|
||||
{
|
||||
@@ -3223,7 +3217,7 @@ Timer tmSerial
|
||||
vis hSlider1,1
|
||||
vis nNum1,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
//first value is current value
|
||||
spstr bText1.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -3239,9 +3233,9 @@ Timer tmSerial
|
||||
hSlider1.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis bUp2,0
|
||||
@@ -3256,14 +3250,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",11
|
||||
spstr strCommand.txt,tIcon2.txt,"~",22
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="shutter")
|
||||
@@ -3276,7 +3270,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr strCommand.txt,tId.txt,"~",25
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3327,7 +3321,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -3344,7 +3338,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="button"||type2.txt=="input_sel")
|
||||
{
|
||||
@@ -3359,7 +3353,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="number")
|
||||
{
|
||||
@@ -3372,7 +3366,7 @@ Timer tmSerial
|
||||
vis hSlider2,1
|
||||
vis nNum2,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
//first value is current value
|
||||
spstr bText2.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -3388,9 +3382,9 @@ Timer tmSerial
|
||||
hSlider2.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis bUp3,0
|
||||
@@ -3405,14 +3399,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon3.txt,"~",17
|
||||
spstr strCommand.txt,tIcon3.txt,"~",28
|
||||
vis tIcon3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
if(type3.txt=="shutter")
|
||||
@@ -3425,7 +3419,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr strCommand.txt,tId.txt,"~",31
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3476,7 +3470,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff3.val=sys0
|
||||
}
|
||||
@@ -3493,7 +3487,7 @@ Timer tmSerial
|
||||
bText3.pco=65535
|
||||
bText3.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="button"||type3.txt=="input_sel")
|
||||
{
|
||||
@@ -3508,7 +3502,7 @@ Timer tmSerial
|
||||
bText3.pco=1374
|
||||
bText3.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="number")
|
||||
{
|
||||
@@ -3521,7 +3515,7 @@ Timer tmSerial
|
||||
vis hSlider3,1
|
||||
vis nNum3,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
//first value is current value
|
||||
spstr bText3.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -3537,9 +3531,9 @@ Timer tmSerial
|
||||
hSlider3.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis bUp4,0
|
||||
@@ -3554,14 +3548,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon4.txt,"~",23
|
||||
spstr strCommand.txt,tIcon4.txt,"~",34
|
||||
vis tIcon4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
if(type4.txt=="shutter")
|
||||
@@ -3574,7 +3568,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr strCommand.txt,tId.txt,"~",37
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3625,7 +3619,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff4.val=sys0
|
||||
}
|
||||
@@ -3642,7 +3636,7 @@ Timer tmSerial
|
||||
bText4.pco=65535
|
||||
bText4.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="button"||type4.txt=="input_sel")
|
||||
{
|
||||
@@ -3657,7 +3651,7 @@ Timer tmSerial
|
||||
bText4.pco=1374
|
||||
bText4.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="number")
|
||||
{
|
||||
@@ -3670,7 +3664,7 @@ Timer tmSerial
|
||||
vis hSlider4,1
|
||||
vis nNum4,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
//first value is current value
|
||||
spstr bText4.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -3686,9 +3680,9 @@ Timer tmSerial
|
||||
hSlider4.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis bUp5,0
|
||||
@@ -3703,14 +3697,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon5.txt,"~",29
|
||||
spstr strCommand.txt,tIcon5.txt,"~",40
|
||||
vis tIcon5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
if(type5.txt=="shutter")
|
||||
@@ -3723,7 +3717,7 @@ Timer tmSerial
|
||||
vis hSlider5,0
|
||||
vis nNum5,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",32
|
||||
spstr strCommand.txt,tId.txt,"~",43
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3774,7 +3768,7 @@ Timer tmSerial
|
||||
vis hSlider5,0
|
||||
vis nNum5,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff5.val=sys0
|
||||
}
|
||||
@@ -3791,7 +3785,7 @@ Timer tmSerial
|
||||
bText5.pco=65535
|
||||
bText5.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
}
|
||||
if(type5.txt=="button"||type5.txt=="input_sel")
|
||||
{
|
||||
@@ -3806,7 +3800,7 @@ Timer tmSerial
|
||||
bText5.pco=1374
|
||||
bText5.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
}
|
||||
if(type5.txt=="number")
|
||||
{
|
||||
@@ -3819,7 +3813,7 @@ Timer tmSerial
|
||||
vis hSlider5,1
|
||||
vis nNum5,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
//first value is current value
|
||||
spstr bText5.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -3835,9 +3829,9 @@ Timer tmSerial
|
||||
hSlider5.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis bUp6,0
|
||||
@@ -3852,14 +3846,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon6.txt,"~",35
|
||||
spstr strCommand.txt,tIcon6.txt,"~",46
|
||||
vis tIcon6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
if(type6.txt=="shutter")
|
||||
@@ -3872,7 +3866,7 @@ Timer tmSerial
|
||||
vis hSlider6,0
|
||||
vis nNum6,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",38
|
||||
spstr strCommand.txt,tId.txt,"~",49
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -3923,7 +3917,7 @@ Timer tmSerial
|
||||
vis hSlider6,0
|
||||
vis nNum6,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
spstr strCommand.txt,tTmp.txt,"~",49
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff6.val=sys0
|
||||
}
|
||||
@@ -3940,7 +3934,7 @@ Timer tmSerial
|
||||
bText6.pco=65535
|
||||
bText6.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
}
|
||||
if(type6.txt=="button"||type6.txt=="input_sel")
|
||||
{
|
||||
@@ -3955,7 +3949,7 @@ Timer tmSerial
|
||||
bText6.pco=1374
|
||||
bText6.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
}
|
||||
if(type6.txt=="number")
|
||||
{
|
||||
@@ -3968,7 +3962,7 @@ Timer tmSerial
|
||||
vis hSlider6,1
|
||||
vis nNum6,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
//first value is current value
|
||||
spstr bText6.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -96,12 +96,26 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 42
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 500
|
||||
Max. Text Size: 700
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
@@ -905,14 +919,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -959,14 +966,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1082,10 +1082,6 @@ Timer tmLP
|
||||
{
|
||||
page popupFan
|
||||
}
|
||||
if(tTmp.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
@@ -1143,50 +1139,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1194,20 +1184,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",5
|
||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1215,20 +1205,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",11
|
||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1236,20 +1226,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",17
|
||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1257,20 +1247,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",23
|
||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1278,20 +1268,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",29
|
||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1299,14 +1289,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",35
|
||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,6 +101,20 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 58
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 57
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 5
|
||||
@@ -1200,14 +1214,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1254,14 +1261,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1419,72 +1419,66 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//title
|
||||
spstr strCommand.txt,tTitle.txt,"~",4
|
||||
spstr strCommand.txt,tTitle.txt,"~",15
|
||||
//title farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tTitle.pco,0,0
|
||||
}
|
||||
//author
|
||||
spstr strCommand.txt,tAuthor.txt,"~",6
|
||||
spstr strCommand.txt,tAuthor.txt,"~",17
|
||||
//author farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tAuthor.pco,0,0
|
||||
}
|
||||
//volume
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hVolume.val=sys0
|
||||
//icon
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",9
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",20
|
||||
// on off button
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis t5,0
|
||||
@@ -1494,7 +1488,7 @@ Timer tmSerial
|
||||
covx tTmp.txt,t5.pco,0,0
|
||||
}
|
||||
// shuffel btn
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis tShuffle,0
|
||||
@@ -1504,9 +1498,9 @@ Timer tmSerial
|
||||
tShuffle.txt=tTmp.txt
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",12
|
||||
spstr strCommand.txt,type1.txt,"~",23
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",13
|
||||
spstr strCommand.txt,entn1.txt,"~",24
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1514,20 +1508,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",14
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",16
|
||||
spstr strCommand.txt,tEntity1.txt,"~",27
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",18
|
||||
spstr strCommand.txt,type2.txt,"~",29
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",19
|
||||
spstr strCommand.txt,entn2.txt,"~",30
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1535,20 +1529,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",20
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",22
|
||||
spstr strCommand.txt,tEntity2.txt,"~",33
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",24
|
||||
spstr strCommand.txt,type3.txt,"~",35
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",25
|
||||
spstr strCommand.txt,entn3.txt,"~",36
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1556,20 +1550,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",26
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",28
|
||||
spstr strCommand.txt,tEntity3.txt,"~",39
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",30
|
||||
spstr strCommand.txt,type4.txt,"~",41
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",31
|
||||
spstr strCommand.txt,entn4.txt,"~",42
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1577,20 +1571,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",32
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",34
|
||||
spstr strCommand.txt,tEntity4.txt,"~",45
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",36
|
||||
spstr strCommand.txt,type5.txt,"~",47
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",37
|
||||
spstr strCommand.txt,entn5.txt,"~",48
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1598,20 +1592,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",38
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",40
|
||||
spstr strCommand.txt,tEntity5.txt,"~",51
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",42
|
||||
spstr strCommand.txt,type6.txt,"~",53
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",43
|
||||
spstr strCommand.txt,entn6.txt,"~",54
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1619,14 +1613,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",44
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",45
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",46
|
||||
spstr strCommand.txt,tEntity6.txt,"~",57
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
@@ -1694,6 +1688,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardPower
|
||||
}
|
||||
if(tId.txt=="cardChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -65,6 +65,20 @@ Page cardPower
|
||||
}
|
||||
}
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 44
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 5
|
||||
@@ -801,14 +815,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardPower,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -855,14 +862,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1061,63 +1061,57 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// icon color home
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,t1.pco,0,0
|
||||
// icon home
|
||||
spstr strCommand.txt,t1.txt,"~",4
|
||||
spstr strCommand.txt,t1.txt,"~",15
|
||||
// text home
|
||||
spstr strCommand.txt,tHome.txt,"~",5
|
||||
spstr strCommand.txt,tHome.txt,"~",16
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,t0Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||
spstr strCommand.txt,t0Icon.txt,"~",18
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,t0Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t0u.txt,"~",9
|
||||
spstr strCommand.txt,t0u.txt,"~",20
|
||||
if(t0Icon.txt!="")
|
||||
{
|
||||
vis t0Icon,1
|
||||
@@ -1130,15 +1124,15 @@ Timer tmSerial
|
||||
vis h0,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
covx tTmp.txt,t1Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||
spstr strCommand.txt,t1Icon.txt,"~",22
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,t1Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t1u.txt,"~",13
|
||||
spstr strCommand.txt,t1u.txt,"~",24
|
||||
if(t1Icon.txt!="")
|
||||
{
|
||||
vis t1Icon,1
|
||||
@@ -1151,15 +1145,15 @@ Timer tmSerial
|
||||
vis h1,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,t2Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||
spstr strCommand.txt,t2Icon.txt,"~",26
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,t2Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t2u.txt,"~",17
|
||||
spstr strCommand.txt,t2u.txt,"~",28
|
||||
if(t2Icon.txt!="")
|
||||
{
|
||||
vis t2Icon,1
|
||||
@@ -1172,15 +1166,15 @@ Timer tmSerial
|
||||
vis h2,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,t3Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||
spstr strCommand.txt,t3Icon.txt,"~",30
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,t3Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t3u.txt,"~",21
|
||||
spstr strCommand.txt,t3u.txt,"~",32
|
||||
if(t3Icon.txt!="")
|
||||
{
|
||||
vis t3Icon,1
|
||||
@@ -1193,15 +1187,15 @@ Timer tmSerial
|
||||
vis h3,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
covx tTmp.txt,t4Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||
spstr strCommand.txt,t4Icon.txt,"~",34
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,t4Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t4u.txt,"~",25
|
||||
spstr strCommand.txt,t4u.txt,"~",36
|
||||
if(t4Icon.txt!="")
|
||||
{
|
||||
vis t4Icon,1
|
||||
@@ -1214,15 +1208,15 @@ Timer tmSerial
|
||||
vis h4,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,t5Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||
spstr strCommand.txt,t5Icon.txt,"~",38
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,t5Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t5u.txt,"~",29
|
||||
spstr strCommand.txt,t5u.txt,"~",40
|
||||
if(t5Icon.txt!="")
|
||||
{
|
||||
vis t5Icon,1
|
||||
|
||||
@@ -81,12 +81,26 @@ Variable (string) entn2
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 33
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 32
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 6
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 275
|
||||
Max. Text Size: 400
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -338,14 +352,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardQR,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -392,14 +399,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -745,52 +745,46 @@ Timer tmSerial
|
||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||
//tHeading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text qrcode
|
||||
spstr strCommand.txt,vaQR.txt,"~",3
|
||||
spstr strCommand.txt,vaQR.txt,"~",14
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",4
|
||||
spstr strCommand.txt,type1.txt,"~",15
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",5
|
||||
spstr strCommand.txt,entn1.txt,"~",16
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis btOnOff1,0
|
||||
@@ -800,14 +794,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
||||
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
||||
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
@@ -815,7 +809,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -824,7 +818,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -836,7 +830,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
if(type1.txt=="button")
|
||||
{
|
||||
@@ -846,12 +840,12 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",10
|
||||
spstr strCommand.txt,type2.txt,"~",21
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",11
|
||||
spstr strCommand.txt,entn2.txt,"~",22
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis btOnOff2,0
|
||||
@@ -861,14 +855,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
||||
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
||||
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
@@ -876,7 +870,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -885,7 +879,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -897,7 +891,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="button")
|
||||
{
|
||||
@@ -907,7 +901,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
|
||||
@@ -72,12 +72,26 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 56
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 55
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -634,14 +648,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -688,14 +695,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1557,64 +1557,58 @@ Timer tmSerial
|
||||
{
|
||||
//heading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//currentTemp
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",4
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",15
|
||||
//dstTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
covx tTmp.txt,xTempDest1.val,0,0
|
||||
xTempDest.val=xTempDest1.val
|
||||
//status
|
||||
spstr strCommand.txt,tStatus.txt,"~",6
|
||||
spstr strCommand.txt,tStatus.txt,"~",17
|
||||
//minTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,xTempMin1.val,0,0
|
||||
//maxTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,xTempMax1.val,0,0
|
||||
//tempStep
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,xTempStep1.val,0,0
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -1626,137 +1620,137 @@ Timer tmSerial
|
||||
vis bt6,0
|
||||
vis bt7,0
|
||||
//bt0
|
||||
spstr strCommand.txt,bt0.txt,"~",10
|
||||
spstr strCommand.txt,bt0.txt,"~",21
|
||||
if(bt0.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
covx tTmp.txt,bt0.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,bt0.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va0.txt,"~",13
|
||||
spstr strCommand.txt,va0.txt,"~",24
|
||||
//enable
|
||||
vis bt0,1
|
||||
}
|
||||
//bt1
|
||||
spstr strCommand.txt,bt1.txt,"~",14
|
||||
spstr strCommand.txt,bt1.txt,"~",25
|
||||
if(bt1.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,bt1.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,bt1.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va1.txt,"~",17
|
||||
spstr strCommand.txt,va1.txt,"~",28
|
||||
//enable
|
||||
vis bt1,1
|
||||
}
|
||||
//bt2
|
||||
spstr strCommand.txt,bt2.txt,"~",18
|
||||
spstr strCommand.txt,bt2.txt,"~",29
|
||||
if(bt2.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
covx tTmp.txt,bt2.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,bt2.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va2.txt,"~",21
|
||||
spstr strCommand.txt,va2.txt,"~",32
|
||||
//enable
|
||||
vis bt2,1
|
||||
}
|
||||
//bt3
|
||||
spstr strCommand.txt,bt3.txt,"~",22
|
||||
spstr strCommand.txt,bt3.txt,"~",33
|
||||
if(bt3.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
spstr strCommand.txt,tTmp.txt,"~",34
|
||||
covx tTmp.txt,bt3.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,bt3.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va3.txt,"~",25
|
||||
spstr strCommand.txt,va3.txt,"~",36
|
||||
//enable
|
||||
vis bt3,1
|
||||
}
|
||||
//bt4
|
||||
spstr strCommand.txt,bt4.txt,"~",26
|
||||
spstr strCommand.txt,bt4.txt,"~",37
|
||||
if(bt4.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,bt4.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,bt4.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va4.txt,"~",29
|
||||
spstr strCommand.txt,va4.txt,"~",40
|
||||
//enable
|
||||
vis bt4,1
|
||||
}
|
||||
//bt5
|
||||
spstr strCommand.txt,bt5.txt,"~",30
|
||||
spstr strCommand.txt,bt5.txt,"~",41
|
||||
if(bt5.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
spstr strCommand.txt,tTmp.txt,"~",42
|
||||
covx tTmp.txt,bt5.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,bt5.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va5.txt,"~",33
|
||||
spstr strCommand.txt,va5.txt,"~",44
|
||||
//enable
|
||||
vis bt5,1
|
||||
}
|
||||
//bt6
|
||||
spstr strCommand.txt,bt6.txt,"~",34
|
||||
spstr strCommand.txt,bt6.txt,"~",45
|
||||
if(bt6.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
covx tTmp.txt,bt6.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,bt6.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va6.txt,"~",37
|
||||
spstr strCommand.txt,va6.txt,"~",48
|
||||
//enable
|
||||
vis bt6,1
|
||||
}
|
||||
//bt7
|
||||
spstr strCommand.txt,bt7.txt,"~",38
|
||||
spstr strCommand.txt,bt7.txt,"~",49
|
||||
if(bt7.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,bt7.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",40
|
||||
spstr strCommand.txt,tTmp.txt,"~",51
|
||||
covx tTmp.txt,bt7.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va7.txt,"~",41
|
||||
spstr strCommand.txt,va7.txt,"~",52
|
||||
//enable
|
||||
vis bt7,1
|
||||
}
|
||||
//Text tCurTempLbl
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",42
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",53
|
||||
//Text tStateLbl
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",43
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",54
|
||||
//Text tALbl
|
||||
//spstr strCommand.txt,tALbl.txt,"~",44
|
||||
//spstr strCommand.txt,tALbl.txt,"~",55
|
||||
//Text tCF
|
||||
spstr strCommand.txt,tCF.txt,"~",45
|
||||
spstr strCommand.txt,tCF.txt,"~",56
|
||||
tCF1.txt=tCF.txt
|
||||
tCF2.txt=tCF.txt
|
||||
//Second Temperature
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
spstr strCommand.txt,tTmp.txt,"~",57
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,xTempDest2.val,0,0
|
||||
@@ -1774,8 +1768,8 @@ Timer tmSerial
|
||||
vis tCF2,1
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
if(tTmp.txt=="1")
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
if(tTmp.txt!="1")
|
||||
{
|
||||
vis btDetail,1
|
||||
}else
|
||||
|
||||
@@ -10,6 +10,10 @@ pageTest
|
||||
14 Component(s)
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
408 Line(s) of event code
|
||||
@@ -22,18 +26,18 @@ popupFan
|
||||
27 Component(s)
|
||||
351 Line(s) of event code
|
||||
204 Unique line(s) of event code
|
||||
cardChart
|
||||
31 Component(s)
|
||||
452 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
398 Line(s) of event code
|
||||
232 Unique line(s) of event code
|
||||
cardPower
|
||||
45 Component(s)
|
||||
412 Line(s) of event code
|
||||
289 Unique line(s) of event code
|
||||
screensaver
|
||||
45 Component(s)
|
||||
410 Line(s) of event code
|
||||
298 Unique line(s) of event code
|
||||
429 Line(s) of event code
|
||||
301 Unique line(s) of event code
|
||||
popupShutter
|
||||
25 Component(s)
|
||||
398 Line(s) of event code
|
||||
@@ -42,45 +46,41 @@ popupThermo
|
||||
44 Component(s)
|
||||
519 Line(s) of event code
|
||||
274 Unique line(s) of event code
|
||||
cardPower
|
||||
43 Component(s)
|
||||
439 Line(s) of event code
|
||||
299 Unique line(s) of event code
|
||||
cardGrid
|
||||
42 Component(s)
|
||||
542 Line(s) of event code
|
||||
301 Unique line(s) of event code
|
||||
cardMedia
|
||||
57 Component(s)
|
||||
660 Line(s) of event code
|
||||
325 Unique line(s) of event code
|
||||
cardQR
|
||||
32 Component(s)
|
||||
44 Component(s)
|
||||
511 Line(s) of event code
|
||||
289 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
425 Line(s) of event code
|
||||
244 Unique line(s) of event code
|
||||
290 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
637 Line(s) of event code
|
||||
316 Unique line(s) of event code
|
||||
cardAlarm
|
||||
42 Component(s)
|
||||
415 Line(s) of event code
|
||||
253 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
528 Line(s) of event code
|
||||
313 Unique line(s) of event code
|
||||
popupTimer
|
||||
42 Component(s)
|
||||
512 Line(s) of event code
|
||||
255 Unique line(s) of event code
|
||||
cardThermo
|
||||
55 Component(s)
|
||||
555 Line(s) of event code
|
||||
322 Unique line(s) of event code
|
||||
popupInSel
|
||||
34 Component(s)
|
||||
617 Line(s) of event code
|
||||
295 Unique line(s) of event code
|
||||
cardAlarm
|
||||
40 Component(s)
|
||||
442 Line(s) of event code
|
||||
262 Unique line(s) of event code
|
||||
cardEntities
|
||||
89 Component(s)
|
||||
1636 Line(s) of event code
|
||||
701 Unique line(s) of event code
|
||||
91 Component(s)
|
||||
1609 Line(s) of event code
|
||||
690 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
19 Page(s)
|
||||
693 Component(s)
|
||||
8830 Line(s) of event code
|
||||
2253 Unique line(s) of event code
|
||||
709 Component(s)
|
||||
8633 Line(s) of event code
|
||||
2247 Unique line(s) of event code
|
||||
|
||||
@@ -402,7 +402,7 @@ Text tVersion
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
|
||||
@@ -863,7 +863,7 @@ Text tNotifyText
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
Word wrap : enabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
@@ -1065,6 +1065,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
@@ -63,6 +63,18 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -482,14 +494,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -514,14 +519,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -640,86 +638,80 @@ Timer tmSerial
|
||||
{
|
||||
//entn
|
||||
spstr strCommand.txt,entn.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text arm1
|
||||
spstr strCommand.txt,arm1.txt,"~",3
|
||||
spstr strCommand.txt,arm1.txt,"~",14
|
||||
if(arm1.txt!="")
|
||||
{
|
||||
vis arm1,1
|
||||
}
|
||||
//id arm1
|
||||
spstr strCommand.txt,va1.txt,"~",4
|
||||
spstr strCommand.txt,va1.txt,"~",15
|
||||
//text arm2
|
||||
spstr strCommand.txt,arm2.txt,"~",5
|
||||
spstr strCommand.txt,arm2.txt,"~",16
|
||||
if(arm2.txt!="")
|
||||
{
|
||||
vis arm2,1
|
||||
}
|
||||
//id arm2
|
||||
spstr strCommand.txt,va2.txt,"~",6
|
||||
spstr strCommand.txt,va2.txt,"~",17
|
||||
//text arm3
|
||||
spstr strCommand.txt,arm3.txt,"~",7
|
||||
spstr strCommand.txt,arm3.txt,"~",18
|
||||
if(arm3.txt!="")
|
||||
{
|
||||
vis arm3,1
|
||||
}
|
||||
//id arm3
|
||||
spstr strCommand.txt,va3.txt,"~",8
|
||||
spstr strCommand.txt,va3.txt,"~",19
|
||||
//text arm4
|
||||
spstr strCommand.txt,arm4.txt,"~",9
|
||||
spstr strCommand.txt,arm4.txt,"~",20
|
||||
if(arm4.txt!="")
|
||||
{
|
||||
vis arm4,1
|
||||
}
|
||||
//id arm4
|
||||
spstr strCommand.txt,va4.txt,"~",10
|
||||
spstr strCommand.txt,va4.txt,"~",21
|
||||
//icon
|
||||
spstr strCommand.txt,tIcon.txt,"~",11
|
||||
spstr strCommand.txt,tIcon.txt,"~",22
|
||||
//icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon.pco=sys0
|
||||
//numpad status
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
if(tTmp.txt!="disable")
|
||||
{
|
||||
vis b0,1
|
||||
@@ -752,7 +744,7 @@ Timer tmSerial
|
||||
vis tCode,0
|
||||
}
|
||||
//flashing status
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
if(tTmp.txt=="enable")
|
||||
{
|
||||
tmFlash.en=1
|
||||
@@ -761,13 +753,13 @@ Timer tmSerial
|
||||
tmFlash.en=0
|
||||
}
|
||||
// extra button
|
||||
spstr strCommand.txt,b9.txt,"~",15
|
||||
spstr strCommand.txt,b9.txt,"~",26
|
||||
if(b9.txt!="")
|
||||
{
|
||||
vis b9,1
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,b9.pco,0,0
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",17
|
||||
spstr strCommand.txt,vaAddBtn.txt,"~",28
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
|
||||
@@ -49,6 +49,18 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -179,14 +191,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -211,14 +216,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardChart,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -399,48 +397,42 @@ Timer tmSerial
|
||||
if(tInstruction.txt=="entityUpd")
|
||||
{
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// extract color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,vaColorL.val,0,0
|
||||
// prepare dark color
|
||||
sys0=vaColorL.val>>11 // red
|
||||
@@ -452,7 +444,7 @@ Timer tmSerial
|
||||
//
|
||||
// detect nValues and maxValue
|
||||
vNValues.val=0
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
while(sya0>0)
|
||||
{
|
||||
@@ -463,7 +455,7 @@ Timer tmSerial
|
||||
}
|
||||
// next
|
||||
vNValues.val++
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
|
||||
strlen tTmp.txt,sya0
|
||||
}
|
||||
//
|
||||
@@ -478,7 +470,7 @@ Timer tmSerial
|
||||
//
|
||||
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
|
||||
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
|
||||
spstr strCommand.txt,strTmp.txt,"~",5
|
||||
spstr strCommand.txt,strTmp.txt,"~",16
|
||||
sya1=0
|
||||
spstr strTmp.txt,tTmp.txt,":",sya1
|
||||
strlen tTmp.txt,sya0
|
||||
@@ -511,7 +503,7 @@ Timer tmSerial
|
||||
}
|
||||
//
|
||||
// y achis label
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
// tTmp.txt="Gas [kW]"
|
||||
strlen tTmp.txt,sys1
|
||||
sya1=sys1*12+m0.h-48/2
|
||||
@@ -527,7 +519,7 @@ Timer tmSerial
|
||||
vaValues.txt+="~"
|
||||
}
|
||||
// extract next entry
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+6
|
||||
spstr strCommand.txt,tTmp.txt,"~",sys0+17
|
||||
// calculate left
|
||||
sys1=sys0*5*vaUnit.val
|
||||
sys1+=vaLeft.val
|
||||
|
||||
@@ -100,37 +100,49 @@ Variable (string) entn1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn5
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) entn6
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Max. Text Size: 65
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
@@ -731,14 +743,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -763,14 +768,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardEntities,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1710,50 +1708,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis bUp1,0
|
||||
@@ -1768,14 +1760,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",5
|
||||
spstr strCommand.txt,tIcon1.txt,"~",16
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="shutter")
|
||||
@@ -1788,7 +1780,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr strCommand.txt,tId.txt,"~",19
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1839,7 +1831,7 @@ Timer tmSerial
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -1856,7 +1848,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="button"||type1.txt=="input_sel")
|
||||
{
|
||||
@@ -1871,7 +1863,7 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
}
|
||||
if(type1.txt=="number")
|
||||
{
|
||||
@@ -1884,7 +1876,7 @@ Timer tmSerial
|
||||
vis hSlider1,1
|
||||
vis nNum1,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText1.txt,"~",8
|
||||
spstr strCommand.txt,bText1.txt,"~",19
|
||||
//first value is current value
|
||||
spstr bText1.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1900,9 +1892,9 @@ Timer tmSerial
|
||||
hSlider1.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis bUp2,0
|
||||
@@ -1917,14 +1909,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",11
|
||||
spstr strCommand.txt,tIcon2.txt,"~",22
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="shutter")
|
||||
@@ -1937,7 +1929,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr strCommand.txt,tId.txt,"~",25
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -1988,7 +1980,7 @@ Timer tmSerial
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -2005,7 +1997,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="button"||type2.txt=="input_sel")
|
||||
{
|
||||
@@ -2020,7 +2012,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
}
|
||||
if(type2.txt=="number")
|
||||
{
|
||||
@@ -2033,7 +2025,7 @@ Timer tmSerial
|
||||
vis hSlider2,1
|
||||
vis nNum2,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText2.txt,"~",14
|
||||
spstr strCommand.txt,bText2.txt,"~",25
|
||||
//first value is current value
|
||||
spstr bText2.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2049,9 +2041,9 @@ Timer tmSerial
|
||||
hSlider2.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis bUp3,0
|
||||
@@ -2066,14 +2058,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon3.txt,"~",17
|
||||
spstr strCommand.txt,tIcon3.txt,"~",28
|
||||
vis tIcon3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
if(type3.txt=="shutter")
|
||||
@@ -2086,7 +2078,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr strCommand.txt,tId.txt,"~",31
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2137,7 +2129,7 @@ Timer tmSerial
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff3.val=sys0
|
||||
}
|
||||
@@ -2154,7 +2146,7 @@ Timer tmSerial
|
||||
bText3.pco=65535
|
||||
bText3.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="button"||type3.txt=="input_sel")
|
||||
{
|
||||
@@ -2169,7 +2161,7 @@ Timer tmSerial
|
||||
bText3.pco=1374
|
||||
bText3.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
}
|
||||
if(type3.txt=="number")
|
||||
{
|
||||
@@ -2182,7 +2174,7 @@ Timer tmSerial
|
||||
vis hSlider3,1
|
||||
vis nNum3,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText3.txt,"~",20
|
||||
spstr strCommand.txt,bText3.txt,"~",31
|
||||
//first value is current value
|
||||
spstr bText3.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2198,9 +2190,9 @@ Timer tmSerial
|
||||
hSlider3.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis bUp4,0
|
||||
@@ -2215,14 +2207,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon4.txt,"~",23
|
||||
spstr strCommand.txt,tIcon4.txt,"~",34
|
||||
vis tIcon4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
if(type4.txt=="shutter")
|
||||
@@ -2235,7 +2227,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr strCommand.txt,tId.txt,"~",37
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2286,7 +2278,7 @@ Timer tmSerial
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff4.val=sys0
|
||||
}
|
||||
@@ -2303,7 +2295,7 @@ Timer tmSerial
|
||||
bText4.pco=65535
|
||||
bText4.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="button"||type4.txt=="input_sel")
|
||||
{
|
||||
@@ -2318,7 +2310,7 @@ Timer tmSerial
|
||||
bText4.pco=1374
|
||||
bText4.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
}
|
||||
if(type4.txt=="number")
|
||||
{
|
||||
@@ -2331,7 +2323,7 @@ Timer tmSerial
|
||||
vis hSlider4,1
|
||||
vis nNum4,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText4.txt,"~",26
|
||||
spstr strCommand.txt,bText4.txt,"~",37
|
||||
//first value is current value
|
||||
spstr bText4.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2347,9 +2339,9 @@ Timer tmSerial
|
||||
hSlider4.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis bUp5,0
|
||||
@@ -2364,14 +2356,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon5.txt,"~",29
|
||||
spstr strCommand.txt,tIcon5.txt,"~",40
|
||||
vis tIcon5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
if(type5.txt=="shutter")
|
||||
@@ -2384,7 +2376,7 @@ Timer tmSerial
|
||||
vis hSlider5,0
|
||||
vis nNum5,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",32
|
||||
spstr strCommand.txt,tId.txt,"~",43
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2435,7 +2427,7 @@ Timer tmSerial
|
||||
vis hSlider5,0
|
||||
vis nNum5,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff5.val=sys0
|
||||
}
|
||||
@@ -2452,7 +2444,7 @@ Timer tmSerial
|
||||
bText5.pco=65535
|
||||
bText5.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
}
|
||||
if(type5.txt=="button"||type5.txt=="input_sel")
|
||||
{
|
||||
@@ -2467,7 +2459,7 @@ Timer tmSerial
|
||||
bText5.pco=1374
|
||||
bText5.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
}
|
||||
if(type5.txt=="number")
|
||||
{
|
||||
@@ -2480,7 +2472,7 @@ Timer tmSerial
|
||||
vis hSlider5,1
|
||||
vis nNum5,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText5.txt,"~",32
|
||||
spstr strCommand.txt,bText5.txt,"~",43
|
||||
//first value is current value
|
||||
spstr bText5.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -2496,9 +2488,9 @@ Timer tmSerial
|
||||
hSlider5.maxval=sys0
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis bUp6,0
|
||||
@@ -2513,14 +2505,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon6.txt,"~",35
|
||||
spstr strCommand.txt,tIcon6.txt,"~",46
|
||||
vis tIcon6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
if(type6.txt=="shutter")
|
||||
@@ -2533,7 +2525,7 @@ Timer tmSerial
|
||||
vis hSlider6,0
|
||||
vis nNum6,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",38
|
||||
spstr strCommand.txt,tId.txt,"~",49
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -2584,7 +2576,7 @@ Timer tmSerial
|
||||
vis hSlider6,0
|
||||
vis nNum6,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
spstr strCommand.txt,tTmp.txt,"~",49
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff6.val=sys0
|
||||
}
|
||||
@@ -2601,7 +2593,7 @@ Timer tmSerial
|
||||
bText6.pco=65535
|
||||
bText6.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
}
|
||||
if(type6.txt=="button"||type6.txt=="input_sel")
|
||||
{
|
||||
@@ -2616,7 +2608,7 @@ Timer tmSerial
|
||||
bText6.pco=1374
|
||||
bText6.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
}
|
||||
if(type6.txt=="number")
|
||||
{
|
||||
@@ -2629,7 +2621,7 @@ Timer tmSerial
|
||||
vis hSlider6,1
|
||||
vis nNum6,1
|
||||
// get config (optional Value) (use bText as variable)
|
||||
spstr strCommand.txt,bText6.txt,"~",38
|
||||
spstr strCommand.txt,bText6.txt,"~",49
|
||||
//first value is current value
|
||||
spstr bText6.txt,tTmp.txt,"|",0
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -82,11 +82,23 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 500
|
||||
Max. Text Size: 700
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
@@ -519,14 +531,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -551,14 +556,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardGrid,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -637,10 +635,6 @@ Timer tmLP
|
||||
{
|
||||
page popupFan
|
||||
}
|
||||
if(tTmp.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
@@ -697,50 +691,44 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",3
|
||||
spstr strCommand.txt,type1.txt,"~",14
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",4
|
||||
spstr strCommand.txt,entn1.txt,"~",15
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -748,20 +736,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",5
|
||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",7
|
||||
spstr strCommand.txt,tEntity1.txt,"~",18
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",9
|
||||
spstr strCommand.txt,type2.txt,"~",20
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",10
|
||||
spstr strCommand.txt,entn2.txt,"~",21
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -769,20 +757,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",11
|
||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",13
|
||||
spstr strCommand.txt,tEntity2.txt,"~",24
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",15
|
||||
spstr strCommand.txt,type3.txt,"~",26
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",16
|
||||
spstr strCommand.txt,entn3.txt,"~",27
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -790,20 +778,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",17
|
||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",19
|
||||
spstr strCommand.txt,tEntity3.txt,"~",30
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",21
|
||||
spstr strCommand.txt,type4.txt,"~",32
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",22
|
||||
spstr strCommand.txt,entn4.txt,"~",33
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -811,20 +799,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",23
|
||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",25
|
||||
spstr strCommand.txt,tEntity4.txt,"~",36
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",27
|
||||
spstr strCommand.txt,type5.txt,"~",38
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",28
|
||||
spstr strCommand.txt,entn5.txt,"~",39
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -832,20 +820,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",29
|
||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",31
|
||||
spstr strCommand.txt,tEntity5.txt,"~",42
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",33
|
||||
spstr strCommand.txt,type6.txt,"~",44
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",34
|
||||
spstr strCommand.txt,entn6.txt,"~",45
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -853,14 +841,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",35
|
||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",37
|
||||
spstr strCommand.txt,tEntity6.txt,"~",48
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,18 @@ Variable (string) entn6
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -766,14 +778,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -798,14 +803,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardMedia,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -933,72 +931,66 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//title
|
||||
spstr strCommand.txt,tTitle.txt,"~",4
|
||||
spstr strCommand.txt,tTitle.txt,"~",15
|
||||
//title farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tTitle.pco,0,0
|
||||
}
|
||||
//author
|
||||
spstr strCommand.txt,tAuthor.txt,"~",6
|
||||
spstr strCommand.txt,tAuthor.txt,"~",17
|
||||
//author farbe
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tAuthor.pco,0,0
|
||||
}
|
||||
//volume
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hVolume.val=sys0
|
||||
//icon
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",9
|
||||
spstr strCommand.txt,tPlayPause.txt,"~",20
|
||||
// on off button
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis t5,0
|
||||
@@ -1008,7 +1000,7 @@ Timer tmSerial
|
||||
covx tTmp.txt,t5.pco,0,0
|
||||
}
|
||||
// shuffel btn
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis tShuffle,0
|
||||
@@ -1018,9 +1010,9 @@ Timer tmSerial
|
||||
tShuffle.txt=tTmp.txt
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",12
|
||||
spstr strCommand.txt,type1.txt,"~",23
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",13
|
||||
spstr strCommand.txt,entn1.txt,"~",24
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis tEntity1,0
|
||||
@@ -1028,20 +1020,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",14
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
vis bEntity1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",16
|
||||
spstr strCommand.txt,tEntity1.txt,"~",27
|
||||
vis tEntity1,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",18
|
||||
spstr strCommand.txt,type2.txt,"~",29
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",19
|
||||
spstr strCommand.txt,entn2.txt,"~",30
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis tEntity2,0
|
||||
@@ -1049,20 +1041,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",20
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
vis bEntity2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",22
|
||||
spstr strCommand.txt,tEntity2.txt,"~",33
|
||||
vis tEntity2,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type3.txt,"~",24
|
||||
spstr strCommand.txt,type3.txt,"~",35
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn3.txt,"~",25
|
||||
spstr strCommand.txt,entn3.txt,"~",36
|
||||
if(type3.txt=="delete"||type3.txt=="")
|
||||
{
|
||||
vis tEntity3,0
|
||||
@@ -1070,20 +1062,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",26
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
vis bEntity3,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity3.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity3.txt,"~",28
|
||||
spstr strCommand.txt,tEntity3.txt,"~",39
|
||||
vis tEntity3,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type4.txt,"~",30
|
||||
spstr strCommand.txt,type4.txt,"~",41
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn4.txt,"~",31
|
||||
spstr strCommand.txt,entn4.txt,"~",42
|
||||
if(type4.txt=="delete"||type4.txt=="")
|
||||
{
|
||||
vis tEntity4,0
|
||||
@@ -1091,20 +1083,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",32
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
vis bEntity4,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity4.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity4.txt,"~",34
|
||||
spstr strCommand.txt,tEntity4.txt,"~",45
|
||||
vis tEntity4,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type5.txt,"~",36
|
||||
spstr strCommand.txt,type5.txt,"~",47
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn5.txt,"~",37
|
||||
spstr strCommand.txt,entn5.txt,"~",48
|
||||
if(type5.txt=="delete"||type5.txt=="")
|
||||
{
|
||||
vis tEntity5,0
|
||||
@@ -1112,20 +1104,20 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",38
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
vis bEntity5,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity5.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity5.txt,"~",40
|
||||
spstr strCommand.txt,tEntity5.txt,"~",51
|
||||
vis tEntity5,1
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type6.txt,"~",42
|
||||
spstr strCommand.txt,type6.txt,"~",53
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn6.txt,"~",43
|
||||
spstr strCommand.txt,entn6.txt,"~",54
|
||||
if(type6.txt=="delete"||type6.txt=="")
|
||||
{
|
||||
vis tEntity6,0
|
||||
@@ -1133,14 +1125,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",44
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
vis bEntity6,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",45
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bEntity6.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity6.txt,"~",46
|
||||
spstr strCommand.txt,tEntity6.txt,"~",57
|
||||
vis tEntity6,1
|
||||
}
|
||||
}
|
||||
@@ -1208,6 +1200,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardPower
|
||||
}
|
||||
if(tId.txt=="cardChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -57,6 +57,18 @@ Page cardPower
|
||||
}
|
||||
}
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -346,14 +358,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardPower,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -378,14 +383,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -555,63 +553,57 @@ Timer tmSerial
|
||||
{
|
||||
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
// icon color home
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
covx tTmp.txt,t1.pco,0,0
|
||||
// icon home
|
||||
spstr strCommand.txt,t1.txt,"~",4
|
||||
spstr strCommand.txt,t1.txt,"~",15
|
||||
// text home
|
||||
spstr strCommand.txt,tHome.txt,"~",5
|
||||
spstr strCommand.txt,tHome.txt,"~",16
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
covx tTmp.txt,t0Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||
spstr strCommand.txt,t0Icon.txt,"~",18
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,t0Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t0u.txt,"~",9
|
||||
spstr strCommand.txt,t0u.txt,"~",20
|
||||
if(t0Icon.txt!="")
|
||||
{
|
||||
vis t0Icon,1
|
||||
@@ -624,15 +616,15 @@ Timer tmSerial
|
||||
vis h0,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
spstr strCommand.txt,tTmp.txt,"~",21
|
||||
covx tTmp.txt,t1Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||
spstr strCommand.txt,t1Icon.txt,"~",22
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,t1Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t1u.txt,"~",13
|
||||
spstr strCommand.txt,t1u.txt,"~",24
|
||||
if(t1Icon.txt!="")
|
||||
{
|
||||
vis t1Icon,1
|
||||
@@ -645,15 +637,15 @@ Timer tmSerial
|
||||
vis h1,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",14
|
||||
spstr strCommand.txt,tTmp.txt,"~",25
|
||||
covx tTmp.txt,t2Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||
spstr strCommand.txt,t2Icon.txt,"~",26
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,t2Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t2u.txt,"~",17
|
||||
spstr strCommand.txt,t2u.txt,"~",28
|
||||
if(t2Icon.txt!="")
|
||||
{
|
||||
vis t2Icon,1
|
||||
@@ -666,15 +658,15 @@ Timer tmSerial
|
||||
vis h2,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
covx tTmp.txt,t3Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||
spstr strCommand.txt,t3Icon.txt,"~",30
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,t3Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t3u.txt,"~",21
|
||||
spstr strCommand.txt,t3u.txt,"~",32
|
||||
if(t3Icon.txt!="")
|
||||
{
|
||||
vis t3Icon,1
|
||||
@@ -687,15 +679,15 @@ Timer tmSerial
|
||||
vis h3,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
spstr strCommand.txt,tTmp.txt,"~",33
|
||||
covx tTmp.txt,t4Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||
spstr strCommand.txt,t4Icon.txt,"~",34
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,t4Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t4u.txt,"~",25
|
||||
spstr strCommand.txt,t4u.txt,"~",36
|
||||
if(t4Icon.txt!="")
|
||||
{
|
||||
vis t4Icon,1
|
||||
@@ -708,15 +700,15 @@ Timer tmSerial
|
||||
vis h4,0
|
||||
}
|
||||
// iconColor
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
spstr strCommand.txt,tTmp.txt,"~",37
|
||||
covx tTmp.txt,t5Icon.pco,0,0
|
||||
// icon
|
||||
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||
spstr strCommand.txt,t5Icon.txt,"~",38
|
||||
// speed
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,t5Speed.val,0,0
|
||||
// lower text
|
||||
spstr strCommand.txt,t5u.txt,"~",29
|
||||
spstr strCommand.txt,t5u.txt,"~",40
|
||||
if(t5Icon.txt!="")
|
||||
{
|
||||
vis t5Icon,1
|
||||
|
||||
@@ -70,11 +70,23 @@ Variable (string) entn2
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 275
|
||||
Max. Text Size: 400
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -187,14 +199,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardQR,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -219,14 +224,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -446,52 +444,46 @@ Timer tmSerial
|
||||
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
|
||||
//tHeading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//text qrcode
|
||||
spstr strCommand.txt,vaQR.txt,"~",3
|
||||
spstr strCommand.txt,vaQR.txt,"~",14
|
||||
// get Type
|
||||
spstr strCommand.txt,type1.txt,"~",4
|
||||
spstr strCommand.txt,type1.txt,"~",15
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn1.txt,"~",5
|
||||
spstr strCommand.txt,entn1.txt,"~",16
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
vis btOnOff1,0
|
||||
@@ -501,14 +493,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon1.txt,"~",6
|
||||
spstr strCommand.txt,tIcon1.txt,"~",17
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon1.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity1.txt,"~",8
|
||||
spstr strCommand.txt,tEntity1.txt,"~",19
|
||||
vis tEntity1,1
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
@@ -516,7 +508,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -525,7 +517,7 @@ Timer tmSerial
|
||||
vis btOnOff1,1
|
||||
vis bText1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
}
|
||||
@@ -537,7 +529,7 @@ Timer tmSerial
|
||||
bText1.pco=65535
|
||||
bText1.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
if(type1.txt=="button")
|
||||
{
|
||||
@@ -547,12 +539,12 @@ Timer tmSerial
|
||||
bText1.pco=1374
|
||||
bText1.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText1.txt,"~",9
|
||||
spstr strCommand.txt,bText1.txt,"~",20
|
||||
}
|
||||
// get Type
|
||||
spstr strCommand.txt,type2.txt,"~",10
|
||||
spstr strCommand.txt,type2.txt,"~",21
|
||||
// get internal name
|
||||
spstr strCommand.txt,entn2.txt,"~",11
|
||||
spstr strCommand.txt,entn2.txt,"~",22
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
vis btOnOff2,0
|
||||
@@ -562,14 +554,14 @@ Timer tmSerial
|
||||
}else
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tIcon2.txt,"~",12
|
||||
spstr strCommand.txt,tIcon2.txt,"~",23
|
||||
vis tIcon2,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",13
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
covx tTmp.txt,sys0,0,0
|
||||
tIcon2.pco=sys0
|
||||
// set name
|
||||
spstr strCommand.txt,tEntity2.txt,"~",14
|
||||
spstr strCommand.txt,tEntity2.txt,"~",25
|
||||
vis tEntity2,1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
@@ -577,7 +569,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -586,7 +578,7 @@ Timer tmSerial
|
||||
vis btOnOff2,1
|
||||
vis bText2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff2.val=sys0
|
||||
}
|
||||
@@ -598,7 +590,7 @@ Timer tmSerial
|
||||
bText2.pco=65535
|
||||
bText2.pco2=65535
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="button")
|
||||
{
|
||||
@@ -608,7 +600,7 @@ Timer tmSerial
|
||||
bText2.pco=1374
|
||||
bText2.pco2=1374
|
||||
// get Text (optional Value)
|
||||
spstr strCommand.txt,bText2.txt,"~",15
|
||||
spstr strCommand.txt,bText2.txt,"~",26
|
||||
}
|
||||
if(type2.txt=="delete"||type2.txt=="")
|
||||
{
|
||||
|
||||
@@ -63,11 +63,23 @@ Variable (string) entn
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
@@ -294,14 +306,7 @@ Button bNext
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bNext.txt=="î")
|
||||
{
|
||||
tSend.txt+="bHome"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bNext"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -326,14 +331,7 @@ Button bPrev
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,cardThermo,"
|
||||
if(bPrev.txt=="î¶")
|
||||
{
|
||||
tSend.txt+="bUp"
|
||||
}else
|
||||
{
|
||||
tSend.txt+="bPrev"
|
||||
}
|
||||
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -835,64 +833,58 @@ Timer tmSerial
|
||||
{
|
||||
//heading
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
// navigation icons
|
||||
spstr strCommand.txt,tId.txt,"~",2
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon left
|
||||
spstr strCommand.txt,tTmp.txt,"~",2 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bPrev,0
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent1.txt,"~",3
|
||||
// change icon
|
||||
spstr strCommand.txt,bPrev.txt,"~",4
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bPrev.pco=sys0
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,1
|
||||
tsw mSwipeUp,0
|
||||
bPrev.txt="î°"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bPrev,1
|
||||
tsw mSwipePrev,0
|
||||
tsw mSwipeUp,1
|
||||
bPrev.txt="î¶"
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
// navigation icon right
|
||||
spstr strCommand.txt,tTmp.txt,"~",8 //type
|
||||
if(tTmp.txt=="delete"||tTmp.txt=="")
|
||||
{
|
||||
vis bNext,0
|
||||
tsw mSwipeNext,0
|
||||
}
|
||||
if(tTmp.txt=="1")
|
||||
}else
|
||||
{
|
||||
// get internal name
|
||||
spstr strCommand.txt,nent2.txt,"~",9
|
||||
// change icon
|
||||
spstr strCommand.txt,bNext.txt,"~",10
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
covx tTmp.txt,sys0,0,0
|
||||
bNext.pco=sys0
|
||||
vis bNext,1
|
||||
tsw mSwipeNext,1
|
||||
bNext.txt="î³"
|
||||
}
|
||||
if(tTmp.txt=="2")
|
||||
{
|
||||
vis bNext,1
|
||||
bNext.txt="î"
|
||||
}
|
||||
//entity name
|
||||
spstr strCommand.txt,entn.txt,"~",3
|
||||
spstr strCommand.txt,entn.txt,"~",14
|
||||
//currentTemp
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",4
|
||||
spstr strCommand.txt,tCurTemp.txt,"~",15
|
||||
//dstTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
covx tTmp.txt,xTempDest1.val,0,0
|
||||
xTempDest.val=xTempDest1.val
|
||||
//status
|
||||
spstr strCommand.txt,tStatus.txt,"~",6
|
||||
spstr strCommand.txt,tStatus.txt,"~",17
|
||||
//minTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",18
|
||||
covx tTmp.txt,xTempMin1.val,0,0
|
||||
//maxTemp
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
covx tTmp.txt,xTempMax1.val,0,0
|
||||
//tempStep
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
covx tTmp.txt,xTempStep1.val,0,0
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -904,137 +896,137 @@ Timer tmSerial
|
||||
vis bt6,0
|
||||
vis bt7,0
|
||||
//bt0
|
||||
spstr strCommand.txt,bt0.txt,"~",10
|
||||
spstr strCommand.txt,bt0.txt,"~",21
|
||||
if(bt0.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
spstr strCommand.txt,tTmp.txt,"~",22
|
||||
covx tTmp.txt,bt0.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",12
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
covx tTmp.txt,bt0.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va0.txt,"~",13
|
||||
spstr strCommand.txt,va0.txt,"~",24
|
||||
//enable
|
||||
vis bt0,1
|
||||
}
|
||||
//bt1
|
||||
spstr strCommand.txt,bt1.txt,"~",14
|
||||
spstr strCommand.txt,bt1.txt,"~",25
|
||||
if(bt1.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",15
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,bt1.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",16
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
covx tTmp.txt,bt1.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va1.txt,"~",17
|
||||
spstr strCommand.txt,va1.txt,"~",28
|
||||
//enable
|
||||
vis bt1,1
|
||||
}
|
||||
//bt2
|
||||
spstr strCommand.txt,bt2.txt,"~",18
|
||||
spstr strCommand.txt,bt2.txt,"~",29
|
||||
if(bt2.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",19
|
||||
spstr strCommand.txt,tTmp.txt,"~",30
|
||||
covx tTmp.txt,bt2.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",20
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
covx tTmp.txt,bt2.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va2.txt,"~",21
|
||||
spstr strCommand.txt,va2.txt,"~",32
|
||||
//enable
|
||||
vis bt2,1
|
||||
}
|
||||
//bt3
|
||||
spstr strCommand.txt,bt3.txt,"~",22
|
||||
spstr strCommand.txt,bt3.txt,"~",33
|
||||
if(bt3.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
spstr strCommand.txt,tTmp.txt,"~",34
|
||||
covx tTmp.txt,bt3.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",24
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
covx tTmp.txt,bt3.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va3.txt,"~",25
|
||||
spstr strCommand.txt,va3.txt,"~",36
|
||||
//enable
|
||||
vis bt3,1
|
||||
}
|
||||
//bt4
|
||||
spstr strCommand.txt,bt4.txt,"~",26
|
||||
spstr strCommand.txt,bt4.txt,"~",37
|
||||
if(bt4.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",27
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,bt4.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",28
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
covx tTmp.txt,bt4.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va4.txt,"~",29
|
||||
spstr strCommand.txt,va4.txt,"~",40
|
||||
//enable
|
||||
vis bt4,1
|
||||
}
|
||||
//bt5
|
||||
spstr strCommand.txt,bt5.txt,"~",30
|
||||
spstr strCommand.txt,bt5.txt,"~",41
|
||||
if(bt5.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",31
|
||||
spstr strCommand.txt,tTmp.txt,"~",42
|
||||
covx tTmp.txt,bt5.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
spstr strCommand.txt,tTmp.txt,"~",43
|
||||
covx tTmp.txt,bt5.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va5.txt,"~",33
|
||||
spstr strCommand.txt,va5.txt,"~",44
|
||||
//enable
|
||||
vis bt5,1
|
||||
}
|
||||
//bt6
|
||||
spstr strCommand.txt,bt6.txt,"~",34
|
||||
spstr strCommand.txt,bt6.txt,"~",45
|
||||
if(bt6.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
covx tTmp.txt,bt6.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",36
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
covx tTmp.txt,bt6.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va6.txt,"~",37
|
||||
spstr strCommand.txt,va6.txt,"~",48
|
||||
//enable
|
||||
vis bt6,1
|
||||
}
|
||||
//bt7
|
||||
spstr strCommand.txt,bt7.txt,"~",38
|
||||
spstr strCommand.txt,bt7.txt,"~",49
|
||||
if(bt7.txt!="")
|
||||
{
|
||||
// set text color on active state
|
||||
spstr strCommand.txt,tTmp.txt,"~",39
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,bt7.pco2,0,0
|
||||
// set state
|
||||
spstr strCommand.txt,tTmp.txt,"~",40
|
||||
spstr strCommand.txt,tTmp.txt,"~",51
|
||||
covx tTmp.txt,bt7.val,0,0
|
||||
// save action
|
||||
spstr strCommand.txt,va7.txt,"~",41
|
||||
spstr strCommand.txt,va7.txt,"~",52
|
||||
//enable
|
||||
vis bt7,1
|
||||
}
|
||||
//Text tCurTempLbl
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",42
|
||||
spstr strCommand.txt,tCurTempLbl.txt,"~",53
|
||||
//Text tStateLbl
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",43
|
||||
spstr strCommand.txt,tStateLbl.txt,"~",54
|
||||
//Text tALbl
|
||||
//spstr strCommand.txt,tALbl.txt,"~",44
|
||||
//spstr strCommand.txt,tALbl.txt,"~",55
|
||||
//Text tCF
|
||||
spstr strCommand.txt,tCF.txt,"~",45
|
||||
spstr strCommand.txt,tCF.txt,"~",56
|
||||
tCF1.txt=tCF.txt
|
||||
tCF2.txt=tCF.txt
|
||||
//Second Temperature
|
||||
spstr strCommand.txt,tTmp.txt,"~",46
|
||||
spstr strCommand.txt,tTmp.txt,"~",57
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,xTempDest2.val,0,0
|
||||
@@ -1052,8 +1044,8 @@ Timer tmSerial
|
||||
vis tCF2,1
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
if(tTmp.txt=="1")
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
if(tTmp.txt!="1")
|
||||
{
|
||||
vis btDetail,1
|
||||
}else
|
||||
|
||||
@@ -152,7 +152,7 @@ Text tVersion
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
|
||||
@@ -346,7 +346,7 @@ Text tNotifyText
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
|
||||
Text tTime
|
||||
Attributes
|
||||
@@ -493,6 +493,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -91,7 +91,7 @@ Variable (string) strCommand
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
|
||||
@@ -18,10 +18,10 @@ cardChart
|
||||
33 Component(s)
|
||||
425 Line(s) of event code
|
||||
290 Unique line(s) of event code
|
||||
screensaver
|
||||
47 Component(s)
|
||||
411 Line(s) of event code
|
||||
299 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
popupFan
|
||||
27 Component(s)
|
||||
351 Line(s) of event code
|
||||
@@ -38,10 +38,6 @@ popupShutter
|
||||
25 Component(s)
|
||||
398 Line(s) of event code
|
||||
218 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
181 Line(s) of event code
|
||||
129 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
398 Line(s) of event code
|
||||
@@ -78,9 +74,13 @@ cardThermo
|
||||
57 Component(s)
|
||||
528 Line(s) of event code
|
||||
313 Unique line(s) of event code
|
||||
screensaver
|
||||
47 Component(s)
|
||||
430 Line(s) of event code
|
||||
302 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
19 Page(s)
|
||||
694 Component(s)
|
||||
8217 Line(s) of event code
|
||||
2124 Unique line(s) of event code
|
||||
8236 Line(s) of event code
|
||||
2127 Unique line(s) of event code
|
||||
|
||||
@@ -402,7 +402,7 @@ Text tVersion
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
|
||||
@@ -903,7 +903,7 @@ Text tNotifyText
|
||||
Vertical Alignment : top
|
||||
Input Type : character
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
Word wrap : enabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
@@ -1105,6 +1105,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
@@ -79,7 +79,7 @@ Variable (string) strCommand
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 250
|
||||
Max. Text Size: 750
|
||||
|
||||
Variable (string) tId
|
||||
Attributes
|
||||
|
||||
@@ -152,7 +152,7 @@ Text tVersion
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text : 46
|
||||
Text : 47
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
|
||||
@@ -365,7 +365,7 @@ Text tNotifyText
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text :
|
||||
Max. Text Size : 80
|
||||
Max. Text Size : 120
|
||||
|
||||
Text tTime
|
||||
Attributes
|
||||
@@ -512,6 +512,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,sleepTimeout,0,0
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
vis tMainIcon,1
|
||||
|
||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
13
README.md
13
README.md
@@ -47,3 +47,16 @@ Some (not all) screenshots from the US Portrait Version:
|
||||
## Documentation
|
||||
|
||||
Visit https://docs.nspanel.pky.eu/ for installation instructions and documentation of the configuration.
|
||||
|
||||
## Other Resources
|
||||
|
||||
### Alternative Backends for other SmartHome Systems
|
||||
|
||||
ioBroker: https://forum.iobroker.net/topic/58170/sonoff-nspanel-mit-lovelace-ui/
|
||||
|
||||
IP Symcon: https://community.symcon.de/t/beta-modul-nspanel-lovelace-ui/130109
|
||||
|
||||
SmartHomeNG: https://github.com/sisamiwe/shng-nspanel-plugin
|
||||
|
||||
OpenHAB: https://github.com/donoo/o2n2l
|
||||
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
from itertools import pairwise
|
||||
import uuid
|
||||
import secrets
|
||||
import string
|
||||
|
||||
import apis
|
||||
|
||||
def uuid():
|
||||
alphabet = string.ascii_letters + string.digits
|
||||
return ''.join(secrets.choice(alphabet) for _ in range(10))
|
||||
|
||||
class Entity(object):
|
||||
def __init__(self, entity_input_config):
|
||||
self.uuid = f"uuid.{uuid.uuid4().hex}"
|
||||
self.uuid = f"uuid.{uuid()}"
|
||||
if type(entity_input_config) is not dict:
|
||||
#self._ha_api.log("Config error, not a dict check your entity configs")
|
||||
self.entityId = "error"
|
||||
@@ -17,13 +21,14 @@ class Entity(object):
|
||||
self.status = entity_input_config.get("status")
|
||||
self.condState = entity_input_config.get("state")
|
||||
self.condStateNot = entity_input_config.get("state_not")
|
||||
self.condTemplate = entity_input_config.get("state_template")
|
||||
self.assumedState = entity_input_config.get("assumed_state", False)
|
||||
self.data = entity_input_config.get("data", {})
|
||||
self.entity_input_config = entity_input_config
|
||||
|
||||
class Card(object):
|
||||
def __init__(self, card_input_config, hidden=False):
|
||||
self.uuid = f"uuid.{uuid.uuid4().hex}"
|
||||
self.uuid = f"uuid.{uuid()}"
|
||||
self.uuid_prev = None
|
||||
self.uuid_next = None
|
||||
self.hidden = hidden
|
||||
@@ -31,6 +36,8 @@ class Card(object):
|
||||
self.cardType = card_input_config.get("type", "unknown")
|
||||
self.title = card_input_config.get("title", "unknown")
|
||||
self.key = card_input_config.get("key", "unknown")
|
||||
self.nav1Override = card_input_config.get("navItem1")
|
||||
self.nav2Override = card_input_config.get("navItem2")
|
||||
# for single entity card like climate or media
|
||||
self.entity = None
|
||||
if card_input_config.get("entity") is not None:
|
||||
@@ -151,33 +158,28 @@ class LuiBackendConfig(object):
|
||||
apis.ha_api.log("Input config: %s", inconfig)
|
||||
self._config = self.dict_recursive_update(inconfig, self._DEFAULT_CONFIG)
|
||||
apis.ha_api.log("Loaded config: %s", self._config)
|
||||
|
||||
|
||||
# parse cards
|
||||
for card in self.get("cards"):
|
||||
self._config_cards.append(Card(card))
|
||||
|
||||
|
||||
# setup prev and next uuids
|
||||
top_level_cards = filter(lambda card: not card.hidden, self._config_cards)
|
||||
first_card = None
|
||||
last_card = None
|
||||
for cur, next in pairwise(top_level_cards):
|
||||
if first_card is None:
|
||||
first_card = cur
|
||||
last_card = next
|
||||
cur.uuid_next = next.uuid
|
||||
next.uuid_prev = cur.uuid
|
||||
# if there is only one top level card first and last card will be none
|
||||
if first_card and last_card:
|
||||
first_card.uuid_prev = last_card.uuid
|
||||
last_card.uuid_next = first_card.uuid
|
||||
top_level_cards = list(filter(lambda card: not card.hidden, self._config_cards))
|
||||
card_ids = [card.id for card in top_level_cards]
|
||||
|
||||
prev_ids = card_ids[-1:] + card_ids[:-1]
|
||||
next_ids = card_ids[ 1:] + card_ids[: 1]
|
||||
|
||||
if len(card_ids) > 1:
|
||||
for prev_id, card, next_id in zip(prev_ids, top_level_cards, next_ids):
|
||||
(card.uuid_prev, card.uuid_next) = (prev_id, next_id)
|
||||
|
||||
# parse screensaver
|
||||
self._config_screensaver = Card(self.get("screensaver"))
|
||||
|
||||
# parse hidden cards
|
||||
for card in self.get("hiddenCards"):
|
||||
self._config_cards.append(Card(card, hidden=True))
|
||||
|
||||
# all entites sorted by generated key, to be able to use short identifiers
|
||||
self._config_entites_table = {x.uuid: x for x in self.get_all_entitys()}
|
||||
self._config_card_table = {x.uuid: x for x in self._config_cards}
|
||||
@@ -210,7 +212,7 @@ class LuiBackendConfig(object):
|
||||
entities.extend(card.get_entity_list())
|
||||
return entities
|
||||
|
||||
def searchCard(self, id):
|
||||
def search_card(self, id):
|
||||
id = id.replace("navigate.", "")
|
||||
if id.startswith("uuid"):
|
||||
return self.get_card_by_uuid(id)
|
||||
@@ -230,11 +232,11 @@ class LuiBackendConfig(object):
|
||||
|
||||
def get_default_card(self):
|
||||
defaultCard = self._config.get("screensaver.defaultCard")
|
||||
defaultCard = apis.ha_api.render_template(defaultCard)
|
||||
if defaultCard is not None:
|
||||
defaultCard = apis.ha_api.render_template(defaultCard)
|
||||
defaultCard = self.search_card(defaultCard)
|
||||
if defaultCard is not None:
|
||||
return defaultCard
|
||||
if defaultCard is not None:
|
||||
return defaultCard
|
||||
else:
|
||||
return self._config_cards[0]
|
||||
|
||||
|
||||
@@ -11,21 +11,21 @@ class LuiController(object):
|
||||
self._send_mqtt_msg = send_mqtt_msg
|
||||
|
||||
self._current_card = self._config._config_screensaver
|
||||
|
||||
self._previous_cards = []
|
||||
# first card (default, after startup)
|
||||
self._previous_cards.append(self._config.get_default_card())
|
||||
|
||||
self._pages_gen = LuiPagesGen(config, send_mqtt_msg)
|
||||
|
||||
# send panel back to startup page on restart of this script
|
||||
self._pages_gen.page_type("pageStartup")
|
||||
|
||||
|
||||
# calculate current brightness
|
||||
self.current_screensaver_brightness = self.calc_current_brightness(self._config.get("sleepBrightness"))
|
||||
self.current_screen_brightness = self.calc_current_brightness(self._config.get("screenBrightness"))
|
||||
|
||||
# register callbacks
|
||||
self.register_callbacks()
|
||||
self.register_callbacks()
|
||||
|
||||
|
||||
def startup(self):
|
||||
apis.ha_api.log(f"Startup Event")
|
||||
@@ -180,17 +180,18 @@ class LuiController(object):
|
||||
|
||||
def detail_open(self, detail_type, entity_id):
|
||||
if detail_type == "popupShutter":
|
||||
self._pages_gen.generate_shutter_detail_page(entity_id)
|
||||
self._pages_gen.generate_shutter_detail_page(entity_id, True)
|
||||
if detail_type == "popupLight":
|
||||
self._pages_gen.generate_light_detail_page(entity_id)
|
||||
self._pages_gen.generate_light_detail_page(entity_id, True)
|
||||
if detail_type == "popupFan":
|
||||
self._pages_gen.generate_fan_detail_page(entity_id)
|
||||
self._pages_gen.generate_fan_detail_page(entity_id, True)
|
||||
if detail_type == "popupThermo":
|
||||
self._pages_gen.generate_thermo_detail_page(entity_id)
|
||||
self._pages_gen.generate_thermo_detail_page(entity_id, True)
|
||||
if detail_type == "popupInSel":
|
||||
self._pages_gen.generate_input_select_detail_page(entity_id)
|
||||
self._pages_gen.generate_input_select_detail_page(entity_id, True)
|
||||
if detail_type == "popupTimer":
|
||||
self._pages_gen.generate_timer_detail_page(entity_id)
|
||||
self._pages_gen.generate_timer_detail_page(entity_id, True)
|
||||
|
||||
def button_press(self, entity_id, button_type, value):
|
||||
apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ")
|
||||
# internal buttons
|
||||
@@ -200,7 +201,7 @@ class LuiController(object):
|
||||
if defaultCard is not None:
|
||||
defaultCard = apis.ha_api.render_template(defaultCard)
|
||||
apis.ha_api.log(f"Searching for the following page as defaultPage: {defaultCard}")
|
||||
dstCard = self._config.searchCard(defaultCard)
|
||||
dstCard = self._config.search_card(defaultCard)
|
||||
apis.ha_api.log(f"Result for the following page as defaultPage: {dstCard}")
|
||||
if dstCard is not None:
|
||||
self._previous_cards = []
|
||||
@@ -284,7 +285,7 @@ class LuiController(object):
|
||||
dstCard = self._config.get_card_by_uuid(entity_id.replace('navigate.',''))
|
||||
# internal for navigation to nested pages
|
||||
else:
|
||||
dstCard = self._config.searchCard(entity_id)
|
||||
dstCard = self._config.search_card(entity_id)
|
||||
if dstCard is not None:
|
||||
if dstCard.hidden:
|
||||
self._previous_cards.append(self._current_card)
|
||||
@@ -425,4 +426,4 @@ class LuiController(object):
|
||||
if button_type == "timer-pause":
|
||||
apis.ha_api.get_entity(entity_id).call_service("pause")
|
||||
if button_type == "timer-finish":
|
||||
apis.ha_api.get_entity(entity_id).call_service("finish")
|
||||
apis.ha_api.get_entity(entity_id).call_service("finish")
|
||||
|
||||
@@ -64,11 +64,12 @@ class LuiMqttSender(object):
|
||||
self._topic_send = topic_send
|
||||
self._prev_msg = ""
|
||||
|
||||
def send_mqtt_msg(self, msg, topic=None):
|
||||
if self._prev_msg == msg:
|
||||
def send_mqtt_msg(self, msg, topic=None, force=False):
|
||||
if not force and self._prev_msg == msg:
|
||||
self._ha_api.log(f"Dropping identical consecutive message: {msg}")
|
||||
return
|
||||
self._prev_msg = msg
|
||||
if topic is None:
|
||||
topic = self._topic_send
|
||||
self._ha_api.log(f"Sending MQTT Message: {msg}")
|
||||
apis.mqtt_api.mqtt_publish(topic, msg)
|
||||
apis.mqtt_api.mqtt_publish(topic, msg)
|
||||
|
||||
@@ -229,14 +229,15 @@ class LuiPagesGen(object):
|
||||
return ""
|
||||
if item.condStateNot is not None and item.condStateNot == state:
|
||||
return ""
|
||||
if item.condTemplate is not None and apis.ha_api.render_template(item.condTemplate):
|
||||
return ""
|
||||
|
||||
# Internal types
|
||||
if entityType == "delete":
|
||||
return f"~{entityType}~~~~~"
|
||||
if entityType == "navigate":
|
||||
page_search_res = self._config.searchCard(entityId)
|
||||
page_search_res = self._config.search_card(entityId)
|
||||
if page_search_res is not None:
|
||||
icon_res = get_icon_ha(entityId, overwrite=icon)
|
||||
name = name if name is not None else page_search_res.title
|
||||
text = get_translation(self._locale, "frontend.ui.card.button.press")
|
||||
if status_entity:
|
||||
@@ -249,6 +250,7 @@ class LuiPagesGen(object):
|
||||
else:
|
||||
#icon_color = rgb_dec565(colorOverride) if colorOverride is not None and type(colorOverride) is list else 17299
|
||||
icon_color = self.get_entity_color(entityId, overwrite=colorOverride)
|
||||
icon_res = get_icon_ha(entityId, overwrite=icon)
|
||||
return f"~button~{entityId}~{icon_res}~{icon_color}~{name}~{text}"
|
||||
else:
|
||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~"
|
||||
@@ -645,32 +647,37 @@ class LuiPagesGen(object):
|
||||
|
||||
def render_card(self, card, send_page_type=True):
|
||||
|
||||
l = self.generate_entities_item(Entity(
|
||||
{
|
||||
'entity': f'navigate.{card.uuid_prev}',
|
||||
'icon': 'mdi:arrow-left-bold',
|
||||
'color': [255, 255, 255],
|
||||
}
|
||||
))[1:]
|
||||
r = self.generate_entities_item(Entity(
|
||||
{
|
||||
'entity': f'navigate.{card.uuid_next}',
|
||||
'icon': 'mdi:arrow-right-bold',
|
||||
'color': [255, 255, 255],
|
||||
}
|
||||
))[1:]
|
||||
leftBtn = "delete~~~~~"
|
||||
if card.uuid_prev is not None:
|
||||
leftBtn = self.generate_entities_item(Entity(
|
||||
{
|
||||
'entity': f'navigate.{card.uuid_prev}',
|
||||
'icon': 'mdi:arrow-left-bold',
|
||||
'color': [255, 255, 255],
|
||||
}
|
||||
))[1:]
|
||||
|
||||
if len(self._config._config_cards) == 1:
|
||||
l = "delete~~~~~"
|
||||
r = "delete~~~~~"
|
||||
rightBtn = "delete~~~~~"
|
||||
if card.uuid_prev is not None:
|
||||
rightBtn = self.generate_entities_item(Entity(
|
||||
{
|
||||
'entity': f'navigate.{card.uuid_next}',
|
||||
'icon': 'mdi:arrow-right-bold',
|
||||
'color': [255, 255, 255],
|
||||
}
|
||||
))[1:]
|
||||
|
||||
if card.hidden:
|
||||
l = f"x~navUp~{get_icon_id('mdi:arrow-up-bold')}~65535~~"
|
||||
r = "delete~~~~~"
|
||||
# r = 0
|
||||
# if self._config.get("homeButton"):
|
||||
# r = 2
|
||||
navigation = f"{l}~{r}"
|
||||
leftBtn = f"x~navUp~{get_icon_id('mdi:arrow-up-bold')}~65535~~"
|
||||
rightBtn = "delete~~~~~"
|
||||
|
||||
if card.nav1Override is not None:
|
||||
leftBtn = self.generate_entities_item(Entity(card.nav1Override))[1:]
|
||||
|
||||
if card.nav2Override is not None:
|
||||
rightBtn = self.generate_entities_item(Entity(card.nav2Override))[1:]
|
||||
|
||||
navigation = f"{leftBtn}~{rightBtn}"
|
||||
|
||||
# Switch to page
|
||||
if send_page_type:
|
||||
@@ -706,7 +713,7 @@ class LuiPagesGen(object):
|
||||
self.generate_power_page(navigation, card.title, card.entities)
|
||||
return
|
||||
|
||||
def generate_light_detail_page(self, entity_id):
|
||||
def generate_light_detail_page(self, entity_id, is_open_detail=False):
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
switch_val = 1 if entity.state == "on" else 0
|
||||
icon_color = self.get_entity_color(entity)
|
||||
@@ -741,9 +748,9 @@ class LuiPagesGen(object):
|
||||
color_translation = "Color"
|
||||
brightness_translation = get_translation(self._locale, "frontend.ui.card.light.brightness")
|
||||
color_temp_translation = get_translation(self._locale, "frontend.ui.card.light.color_temperature")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}~{effect_supported}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}~{effect_supported}", force=is_open_detail)
|
||||
|
||||
def generate_shutter_detail_page(self, entity_id):
|
||||
def generate_shutter_detail_page(self, entity_id, is_open_detail=False):
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
entityType = "cover"
|
||||
device_class = entity.attributes.get("device_class", "window")
|
||||
@@ -809,9 +816,9 @@ class LuiPagesGen(object):
|
||||
if(tilt_pos == 100):
|
||||
iconTiltLeftStatus = "disable"
|
||||
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}~{textTilt}~{iconTiltLeft}~{iconTiltStop}~{iconTiltRight}~{iconTiltLeftStatus}~{iconTiltStopStatus}~{iconTiltRightStatus}~{tilt_pos}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}~{textTilt}~{iconTiltLeft}~{iconTiltStop}~{iconTiltRight}~{iconTiltLeftStatus}~{iconTiltStopStatus}~{iconTiltRightStatus}~{tilt_pos}", force=is_open_detail)
|
||||
|
||||
def generate_fan_detail_page(self, entity_id):
|
||||
def generate_fan_detail_page(self, entity_id, is_open_detail=False):
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
switch_val = 1 if entity.state == "on" else 0
|
||||
icon_color = self.get_entity_color(entity)
|
||||
@@ -835,9 +842,9 @@ class LuiPagesGen(object):
|
||||
else:
|
||||
preset_modes = ""
|
||||
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{switch_val}~{speed}~{speedMax}~{speed_translation}~{preset_mode}~{preset_modes}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{switch_val}~{speed}~{speedMax}~{speed_translation}~{preset_mode}~{preset_modes}", force=is_open_detail)
|
||||
|
||||
def generate_thermo_detail_page(self, entity_id):
|
||||
def generate_thermo_detail_page(self, entity_id, is_open_detail=False):
|
||||
icon_id = get_icon_ha(entity_id)
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
icon_color = self.get_entity_color(entity, ha_type="climate")
|
||||
@@ -859,9 +866,9 @@ class LuiPagesGen(object):
|
||||
if modes:
|
||||
modes_out += f"{heading}~{mode}~{cur_mode}~{modes_res}~"
|
||||
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{icon_id}~{icon_color}~{modes_out}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{icon_id}~{icon_color}~{modes_out}", force=is_open_detail)
|
||||
|
||||
def generate_input_select_detail_page(self, entity_id):
|
||||
def generate_input_select_detail_page(self, entity_id, is_open_detail=False):
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
options = []
|
||||
icon_color = 0
|
||||
@@ -876,9 +883,9 @@ class LuiPagesGen(object):
|
||||
state = entity.attributes.get("source", "")
|
||||
options = entity.attributes.get("source_list", [])
|
||||
options = "?".join(options)
|
||||
self._send_mqtt_msg(f"entityUpdateDetail2~{entity_id}~~{icon_color}~{ha_type}~{state}~{options}~")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail2~{entity_id}~~{icon_color}~{ha_type}~{state}~{options}~", force=is_open_detail)
|
||||
|
||||
def generate_timer_detail_page(self, entity_id):
|
||||
def generate_timer_detail_page(self, entity_id, is_open_detail=False):
|
||||
if isinstance(entity_id, dict):
|
||||
entity_id = entity_id["entity_id"]
|
||||
entity = apis.ha_api.get_entity(entity_id)
|
||||
@@ -912,7 +919,7 @@ class LuiPagesGen(object):
|
||||
label1 = get_translation(self._locale, "frontend.ui.card.timer.actions.pause")
|
||||
label2 = get_translation(self._locale, "frontend.ui.card.timer.actions.cancel")
|
||||
label3 = get_translation(self._locale, "frontend.ui.card.timer.actions.finish")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}", force=is_open_detail)
|
||||
|
||||
def send_message_page(self, ident, heading, msg, b1, b2):
|
||||
self._send_mqtt_msg(f"pageType~popupNotify")
|
||||
|
||||
@@ -27,8 +27,8 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
||||
controller = LuiController(cfg, mqttsend.send_mqtt_msg)
|
||||
|
||||
desired_tasmota_driver_version = 8
|
||||
desired_display_firmware_version = 46
|
||||
version = "v3.7.0"
|
||||
desired_display_firmware_version = 47
|
||||
version = "v3.8.0"
|
||||
|
||||
model = cfg.get("model")
|
||||
if model == "us-l":
|
||||
|
||||
@@ -30,7 +30,8 @@ appdaemon:
|
||||
type: mqtt
|
||||
namespace: mqtt
|
||||
client_id: "appdaemon"
|
||||
client_host: 192.168.75.30
|
||||
client_host: core-mosquitto.local.hass.io # This should work if you are using supervised HomeAssistant; if not use the IP Address instead.
|
||||
#client_host: 192.168.75.30
|
||||
client_port: 1883
|
||||
client_user: "mqttuser"
|
||||
client_password: "mqttpassword"
|
||||
|
||||
@@ -88,6 +88,15 @@ This sensor will only be shown on the card if it's state is not equal to `on`
|
||||
state_not: "on"
|
||||
```
|
||||
|
||||
## Hide item based on HA Template
|
||||
|
||||
The template must evaluate to `true` for the entity to hide.
|
||||
|
||||
```yaml
|
||||
- entity: binary_sensor.sensor_kueche_contact
|
||||
state_template: '{{ state_attr("sun.sun","azimuth") < 200 }}'
|
||||
```
|
||||
|
||||
## Calling service directly as button
|
||||
|
||||
The following example shows how to call services directly, this enables you to call services on entities not (yet) supported by the backend and also to pass data to services.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
You can configure entities with with the prefix `navigate`, that are navigating to cards, in case it's hidden card, the navigation items will change and the arrow is bringing you back to the previous page.
|
||||
|
||||
```yaml
|
||||
- entity: navigate.cardGrid_testKey
|
||||
- entity: navigate.testKey
|
||||
```
|
||||
|
||||
will allow you to navigate to a cardGrid page with the configured key testKey
|
||||
@@ -22,6 +22,21 @@ will allow you to navigate to a cardGrid page with the configured key testKey
|
||||
You can override the status of navigation items, to make them look like different entities.
|
||||
|
||||
```yaml
|
||||
- entity: navigate.cardGrid_test
|
||||
- entity: navigate.testKey
|
||||
status: climate.test
|
||||
```
|
||||
|
||||
# Override Navigation Items itself
|
||||
|
||||

|
||||
|
||||
```
|
||||
cards:
|
||||
- type: cardGrid
|
||||
title: Wohnzimmer
|
||||
navItem1:
|
||||
entity: light.bad_lights
|
||||
navItem2:
|
||||
entity: light.bad_lights
|
||||
entities:
|
||||
```
|
||||
|
||||
533
ioBroker/Blockly/Homatic_nonIP_Thermostate.xml
Normal file
533
ioBroker/Blockly/Homatic_nonIP_Thermostate.xml
Normal file
@@ -0,0 +1,533 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable id="%/xR(^)g5^9E^=:iOg`*">userdataPath</variable>
|
||||
</variables>
|
||||
<block type="variables_set" id="X-j`W}}BF!)o-3+*efc-" x="-138" y="-462">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
<value name="VALUE">
|
||||
<block type="text" id="27EXAifV@j[WLi|X89v}">
|
||||
<field name="TEXT">0_userdata.0.Homatic.Thermostate.OEQ0667828.4.</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="comment" id=",uvQcLX`j6C.AA75DrZW">
|
||||
<field name="COMMENT">Am NSPanel wird auf Auto geschaltet </field>
|
||||
<next>
|
||||
<block type="on_ext" id="j{K~|bW6;I@lofgT4vd$">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid" id="UL3m@7$weS]7=yq(I?P0">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="Gys1,yJgxvc6*zDXIGVA">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="[8diiUW8Ym4)4=KQ$s=H">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="[)sRA~!%$1n=Fz#{QE:O">
|
||||
<field name="TEXT">Automatic</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="control_ex" id="rHON.R*}k%w0VO)Q@U5," inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid" id="-2GGVvyn8C)-7s]y!iFC">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text" id="5+BLW_qM@Lr+~7M[@#L-">
|
||||
<field name="TEXT">hm-rpc.0.OEQ0667828.4.AUTO_MODE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean" id="`naj-n,uyc0.)vdOJ$rH">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="9jTx$$DZvix^u]0-#_C(">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="CU}e7)/uBktOHiK/i^}r">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="control_ex" id="A=8psqHjhHW$);in.k0O" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="LmoSZw/CjrQed[4-l=bN">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="f]x+|[f!W}GNzf0KVu}f">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="GzG^:cECXD^-jPam+|Cm">
|
||||
<field name="TEXT">Manual</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="eKG~%BD/0r3!hGgZ?4H/">
|
||||
<field name="BOOL">FALSE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="/xUS7X!_0tHjQ/lYYlj9">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="comment" id=".^0uHrUM+21EPMnW@/Aa">
|
||||
<field name="COMMENT">Am NSPanel wird auf Temperatur geändert</field>
|
||||
<next>
|
||||
<block type="on_ext" id="rnf$MuxnU`senfY-F8SM">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid" id="rJx5Vxq(4|Y~.;2F6D!)">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="Ec_?0i@=m]@]L5gEjOi?">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id=".LVxszhxY,x/Y[ht(2Dk">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="qIz$pgvJ|fZU}eKV%H@;">
|
||||
<field name="TEXT">Setpoint</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="control_ex" id="VAa5[r[!O|XD?h2zs4.L" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid" id="vteW+w!_2:C,eGV!!1De">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="P:53ISJM8Wt12`LLp5C?">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="^8EdIaZlvDJ`Z:PxenQJ">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="rpq:atBJz,=pL/Tpfk?j">
|
||||
<field name="TEXT">Manual</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="l1zqaM6/jSPS#ZF2YQT]">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="gzX:oq*R46?@J;sEN^Y{">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="control_ex" id="a!%A#%_448?cbF0#E20I" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="Z=X7ZS=5{oFLhPFl$6J*">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="LNZ/Yu]eOv*pYj!.D^Hp">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="f(?W0s5a%=`*e.bl+U;j">
|
||||
<field name="TEXT">Automatic</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="C;jj4,F7s4Dh0_q^GJ(p">
|
||||
<field name="BOOL">FALSE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="cY5}Nl-3}~q8av0Z,^:%">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="control_ex" id="vOC7f,;-wN|E6q66A#y5" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid" id="33Vhu-2{oMtX)_7C5xNJ">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text" id="cwRLYaGfnesiWV4ME~02">
|
||||
<field name="TEXT">hm-rpc.0.OEQ0667828.4.SET_TEMPERATUR</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean" id="R6~2VB4nRpE-=epf^!.2">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="on_source" id="{iIWE58cs91`J:+%zsHP">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="IX574hj%MQ)uiFy(QXfC">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="comment" id="~k%4o/5,IR_W}Vo9z5E5">
|
||||
<field name="COMMENT">Am NSPanel wird auf Boost geschaltet</field>
|
||||
<next>
|
||||
<block type="on_ext" id="$[COE^lL{IylevSK@r$N">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="2E}4*|Pr_c6QxjZlXL#4">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="H{sw([OtBhyRLVy[WQ?@">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="ae-^6mBM`wUFkV9]!SUJ">
|
||||
<field name="TEXT">Boost</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="control_ex" id="t6(RKz=ul#7hL#Yd2xW?" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text" id="?Z[Yyrpj|OUCHpbA[r2b">
|
||||
<field name="TEXT">hm-rpc.0.OEQ0667828.4.BOOST_MODE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="ILc-KKS#II*=$?-)1@5;">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="b*rW5=g.eIn$UGCXpk{)">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="comment" id="pq{0z}/,!fFo[r=xL?3^">
|
||||
<field name="COMMENT">BATTERY_STATE im Adapter ändert sich</field>
|
||||
<next>
|
||||
<block type="on_ext" id="2!C]E4+ZovPwb#O![]o0">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid" id="v%SYL`)0SR7QG+O,}p:}">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="text" id="@*2/Gs5Z=d`=xtxpdg9l">
|
||||
<field name="TEXT">hm-rpc.0.OEQ0667828.4.BATTERY_STATE</field>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="comment" id="7aIa7fh7F8,20!qIV:aN">
|
||||
<field name="COMMENT">Wert 2,5 ist ausgedacht.</field>
|
||||
<next>
|
||||
<block type="comment" id="E{Eyaw120U8hRFMQTPP)">
|
||||
<field name="COMMENT">Keine Ahnung wann die Batterie wirklich leer ist</field>
|
||||
<next>
|
||||
<block type="controls_if" id="Bx%+dY))9YYdkklHAAqI">
|
||||
<mutation else="1"></mutation>
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="THZ:h0AIFqeS8a4Q^/o^">
|
||||
<field name="OP">LT</field>
|
||||
<value name="A">
|
||||
<block type="on_source" id="duq;S)%o5XaWTSmW}n}y">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="math_number" id="ie`:G}d9,(LC{q[i_J4h">
|
||||
<field name="NUM">2.5</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="control_ex" id="LClKu=C?jxEn~Ee]Wzc5" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid" id="Nw]~t%7!gKT6i=E)Map8">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="Q!0.BP9.%/0bX%]!wNfV">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="Tz3eTQdyBs9l;(pW(]]8">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="VmE~0^%|++P{ynPp?AHc">
|
||||
<field name="TEXT">Lowbat</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="Y}ZJdf5QlTB0=@nDq(%;">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="a!J*o-:pD($Y=(^YE_{K">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
<statement name="ELSE">
|
||||
<block type="control_ex" id=":s;z=CrWiuSM}Cs,l3*z" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="]c1m)N,]xKl.D]m+I9*w">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="4!qxcx`M[}GZ)~@7_a9Q">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="lYU+fpFo*l7D0xn;oqp^">
|
||||
<field name="TEXT">Lowbat</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="8RyZCBo`8%N/(/cJq@c@">
|
||||
<field name="BOOL">FALSE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="U=O6uX|-`QW%X}YaBD5]">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="comment" id="n`y@58sQ`+Ip[R!kBjk-">
|
||||
<field name="COMMENT">FAULT_REPORTING im Adapter ändert sich</field>
|
||||
<next>
|
||||
<block type="on_ext" id="f,5_N)xx_4E,RbWQiq-I">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="text" id="wO|:^@umOB:5.+=xrC:T">
|
||||
<field name="TEXT">hm-rpc.0.OEQ0667828.4.FAULT_REPORTING</field>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="controls_if" id="^Lti.NU)S9tV^JvxY#|V">
|
||||
<mutation else="1"></mutation>
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="twb2_~HKNJLw*t~iei7*">
|
||||
<field name="OP">NEQ</field>
|
||||
<value name="A">
|
||||
<block type="on_source" id="q;QmlW4j0L@[8SiNG(}!">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="math_number" id="P}F@tPT`pXxiD2`1ik,`">
|
||||
<field name="NUM">0</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="control_ex" id="lb15K]4z_=8NE6}RgxvS" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="Yy}ZGz$j4Xx;mzJEgM/*">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="#/N|`jy=,]jS#IOHI=F;">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="TQ?,RMkzfr{;,2bsh[=H">
|
||||
<field name="TEXT">Maintain</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="l;aa[h.esax%Z[EZy-|`">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="hN}}Siq_!z-@{iHHt-Do">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
<statement name="ELSE">
|
||||
<block type="control_ex" id="8=!5C.CtxhZqLmN=dqOs" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="q~qtEzni;`24R0C%!2ck">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="$f.qJVIwYLj4nvyEMxAB">
|
||||
<field name="VAR" id="%/xR(^)g5^9E^=:iOg`*">userdataPath</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="[WKkJ8E,SMv|]t_Su1:~">
|
||||
<field name="TEXT">Maintain</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="logic_boolean" id="^GMa:eYG*G{gdNUyOK2t">
|
||||
<field name="BOOL">FALSE</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="p#O@u,+TIl4_)K|MmXI-">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</xml>
|
||||
19
ioBroker/Blockly/Uhrzeit_Logging.xml
Normal file
19
ioBroker/Blockly/Uhrzeit_Logging.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="schedule" id="6Yu`)QwfE4qpNfmr268P" x="87" y="37">
|
||||
<field name="SCHEDULE">* * * * * *</field>
|
||||
<statement name="STATEMENT">
|
||||
<block type="debug" id="l?5O/}11]yr#/m#;`2FP">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text" id=";K3bqfLSLWG6r5B(k/C{">
|
||||
<field name="TEXT">test</field>
|
||||
</shadow>
|
||||
<block type="time_get" id="(NH7-ko5K-Lstw6QrhtK">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
|
||||
<field name="OPTION">hh:mm:ss.sss</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</xml>
|
||||
59
ioBroker/Blockly/WLED.js
Normal file
59
ioBroker/Blockly/WLED.js
Normal file
@@ -0,0 +1,59 @@
|
||||
// Pfad zum WLED-Modul
|
||||
const wledPath = 'wled.0.2cf43212d23c.';
|
||||
|
||||
// Pfad zu 0_userdata Datenpunkten
|
||||
const userdataPath = '0_userdata.0.NSPanelOwn.WLED.';
|
||||
|
||||
// WLED Effektliste als Konstante (Favoriten)
|
||||
// Listen müssen gleiche Werte wie im Panel haben
|
||||
|
||||
const presetList = ['Preset 0', 'Add Preset'];
|
||||
|
||||
const colorsList = ['Default', '* Color 1', '* Color Gradient', '* Colors 1&2', '* Colors Only', '* Random Cycle', 'Analogus','April Night', 'Aqua Flash', 'Atlantica', 'Aurora',
|
||||
'Beach', 'Beech', 'Blink Red', 'Breeze', 'C9', 'C9 New', 'Candy', 'Candy2', 'Cloud',
|
||||
'Cyane', 'Departure', 'Drywet', 'Fairy Reaf', 'Fire', 'Forest', 'etc'
|
||||
];
|
||||
|
||||
const effectsList = ['Solid', 'Android', 'Aurora', 'Blends', 'Blink', 'Blink Rainbow', 'Bouncing Balls','Bpm', 'Breathe', 'Candle', 'Candle Multi',
|
||||
'Candy Cane', 'Chase', 'Chase 1', 'Chase 2', 'Chase 3', 'Chase Flash', 'Chase Flash Rnd', 'Chase Rainbow', 'Chase Random',
|
||||
'Chunchun', 'Colorful', 'Colorloop', 'Colortwinkles', 'Colorwaves', 'Dancing Shadows', 'etc'
|
||||
];
|
||||
|
||||
on({id: userdataPath + 'Presets', change: "ne"}, async function (obj) {
|
||||
console.log(wledPath + 'ps' + ' = ' + obj.state.val);
|
||||
setState(wledPath + 'ps', obj.state.val)
|
||||
});
|
||||
|
||||
// Trigger auf NSPanel Colors
|
||||
on({id: userdataPath + 'Colors', change: "ne"}, async function (obj) {
|
||||
let wledObj = getObject(wledPath + 'seg.0.pal');
|
||||
let tempStringColor = colorsList[obj.state.val]
|
||||
|
||||
for (let i = 1; i < 71; i++) {
|
||||
if (wledObj.common.states[i] == undefined) {
|
||||
break;
|
||||
}
|
||||
if (wledObj.common.states[i] == tempStringColor) {
|
||||
console.log(i + ' - ' + wledObj.common.states[i]);
|
||||
setState(wledPath + 'seg.0.pal', i)
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Trigger auf NSPanel Effekte
|
||||
on({id: userdataPath + 'Effects', change: "ne"}, async function (obj) {
|
||||
let wledObj = getObject(wledPath + 'seg.0.fx');
|
||||
let tempStringEffect = effectsList[obj.state.val]
|
||||
|
||||
for (let i = 1; i < 118; i++) {
|
||||
if (wledObj.common.states[i] == undefined) {
|
||||
break;
|
||||
}
|
||||
if (wledObj.common.states[i] == tempStringEffect) {
|
||||
console.log(i + ' - ' + wledObj.common.states[i]);
|
||||
setState(wledPath + 'seg.0.fx', i)
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
TypeScript v3.7.3.1 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar/@Sternmiere/@Britzelpuf
|
||||
TypeScript v3.7.3.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar/@Sternmiere/@Britzelpuf
|
||||
- abgestimmt auf TFT 46 / v3.7.3 / BerryDriver 8 / Tasmota 12.3.1
|
||||
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
||||
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||
@@ -101,10 +101,11 @@ ReleaseNotes:
|
||||
- 20.12.2022 - v3.7.0 Add popUpTimer / New ALIAS Type level.timer
|
||||
- 21.12.2022 - v3.7.0 Add Fan / New ALIAS Type level.mode.fan
|
||||
- 22.12.2022 - v3.7.0 Add InSel - InputSelector with Alias Type buttonSensor (DP .VALUE)
|
||||
- 23.10.2022 - v3.7.0 Upgrade TFT 46
|
||||
- 23.10.2022 - v3.7.0 Upgrade TFT 46
|
||||
- 28.12.2022 - v3.7.3.0 Hotfix - bUp case
|
||||
- 28.12.2022 - v3.7.3.0 Update Berry Version 8
|
||||
- 28.12.2022 - v3.7.3.0 Update Berry Version 8
|
||||
- 29.12.2022 - v3.7.3.1 Hotfix - us-p - DateString - Use long/short Weekday and long/short Month
|
||||
- 29.12.2022 - v3.7.3.2 Add pageItem.id to Submenu; New Parameter targetPage by TT-TOM
|
||||
|
||||
*****************************************************************************************************************
|
||||
* Falls Aliase durch das Skript erstellt werden sollen, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
||||
@@ -2138,6 +2139,7 @@ function GeneratePageElements(page: Page): string {
|
||||
function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = false): string {
|
||||
try {
|
||||
let iconId = '0';
|
||||
let iconId2 = '0';
|
||||
if (pageItem.id == 'delete') {
|
||||
return '~delete~~~~~';
|
||||
}
|
||||
@@ -2147,38 +2149,127 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
|
||||
// ioBroker
|
||||
if (existsObject(pageItem.id) || pageItem.navigate === true) {
|
||||
|
||||
let iconColor = rgb_dec565(config.defaultColor);
|
||||
|
||||
if (pageItem.navigate) {
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
}
|
||||
|
||||
let o = getObject(pageItem.id)
|
||||
let optVal = '0';
|
||||
let val = null;
|
||||
|
||||
if (existsState(pageItem.id + '.GET')) {
|
||||
val = getState(pageItem.id + '.GET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.GET');
|
||||
} else if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
let o:any
|
||||
if (pageItem.id != null && existsObject(pageItem.id)) {
|
||||
o = getObject(pageItem.id);
|
||||
}
|
||||
|
||||
// Fallback if no name is given
|
||||
name = pageItem.name !== undefined ? pageItem.name : o.common.name.de;
|
||||
|
||||
if (existsState(pageItem.id + '.GET')) {
|
||||
val = getState(pageItem.id + '.GET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.GET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON_SET')) {
|
||||
val = getState(pageItem.id + '.ON_SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON')) {
|
||||
val = getState(pageItem.id + '.ON').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON');
|
||||
}
|
||||
|
||||
let optVal = '0';
|
||||
if (pageItem.navigate) {
|
||||
|
||||
if (pageItem.id == null && pageItem.targetPage != undefined){
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.targetPage + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
} else if (pageItem.id != null && pageItem.targetPage != undefined){
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
type = 'button';
|
||||
|
||||
switch (o.common.role) {
|
||||
case 'socket':
|
||||
case 'light':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
} else {
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
if (pageItem.icon !== undefined) {
|
||||
if (pageItem.icon2 !== undefined) {
|
||||
iconId = iconId2;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'blind':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('window-open');
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
||||
break;
|
||||
case 'door':
|
||||
case 'window':
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
if (getState(pageItem.id + '.ACTUAL').val) {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-open') : Icons.GetIcon('window-open-variant');
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
} else {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-closed') : Icons.GetIcon('window-closed-variant');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'info':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
if (val === true || val === 'true') {
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
} else {
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
if (pageItem.icon !== undefined) {
|
||||
if (pageItem.icon2 !== undefined) {
|
||||
iconId = iconId2;
|
||||
}
|
||||
}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
return '~delete~~~~~';
|
||||
}
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.targetPage + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
} else {
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
}
|
||||
}
|
||||
|
||||
switch (o.common.role) {
|
||||
case 'socket':
|
||||
case 'light':
|
||||
type = 'light';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
let iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
@@ -2200,11 +2291,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -2216,7 +2302,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
let huecolor = hsv2rgb(getState(pageItem.id + '.HUE').val, 1, 1);
|
||||
let rgb = <RGB>{ red: Math.round(huecolor[0]), green: Math.round(huecolor[1]), blue: Math.round(huecolor[2]) };
|
||||
iconColor = rgb_dec565(pageItem.interpolateColor !== undefined ? rgb : config.defaultOnColor);
|
||||
// RegisterDetailEntityWatcher(id + '.HUE');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2228,11 +2313,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON')) {
|
||||
val = getState(pageItem.id + '.ON').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -2245,11 +2325,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -2273,11 +2348,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1'
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -2301,14 +2371,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
} else if (existsState(pageItem.id + '.ON_SET')) {
|
||||
val = getState(pageItem.id + '.ON_SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_SET');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? 100 - getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
||||
@@ -2339,8 +2401,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
gateState = findLocale('window', 'opened');
|
||||
}
|
||||
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + gateState;
|
||||
@@ -2357,12 +2417,9 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
windowState = findLocale('window', 'opened');
|
||||
} else {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-closed') : Icons.GetIcon('window-closed-variant');
|
||||
//iconId = Icons.GetIcon('window-closed-variant');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
windowState = findLocale('window', 'closed');
|
||||
}
|
||||
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + windowState;
|
||||
@@ -2392,11 +2449,9 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
optVal = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
unit = pageItem.unit !== undefined ? pageItem.unit : GetUnitOfMeasurement(pageItem.id + '.ON_ACTUAL');
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
} else if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
optVal = getState(pageItem.id + '.ACTUAL').val;
|
||||
unit = pageItem.unit !== undefined ? pageItem.unit : GetUnitOfMeasurement(pageItem.id + '.ACTUAL');
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
if (o.common.role == 'value.temperature') {
|
||||
@@ -2459,11 +2514,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
}
|
||||
}
|
||||
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + optVal;
|
||||
|
||||
case 'lock':
|
||||
@@ -2483,7 +2533,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
lockState = findLocale('lock', 'LOCK');
|
||||
}
|
||||
lockState = pageItem.buttonText !== undefined ? pageItem.buttonText : lockState;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + lockState;
|
||||
@@ -2492,16 +2541,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
type = 'number';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('plus-minus-variant');
|
||||
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
iconColor = GetIconColor(pageItem, false, useColors)
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + val + '|' + pageItem.minValue + '|' + pageItem.maxValue;
|
||||
@@ -2509,15 +2548,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
case 'volumeGroup':
|
||||
case 'volume':
|
||||
type = 'number';
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
iconColor = GetIconColor(pageItem, false, useColors)
|
||||
if (existsState(pageItem.id + '.MUTE')) {
|
||||
getState(pageItem.id + '.MUTE').val ? iconColor = GetIconColor(pageItem, false, useColors) : iconColor = GetIconColor(pageItem, true, useColors);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
TypeScript v3.7.3.1 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar/@Sternmiere/@Britzelpuf
|
||||
TypeScript v3.7.3.2 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar/@Sternmiere/@Britzelpuf
|
||||
- abgestimmt auf TFT 46 / v3.7.3 / BerryDriver 8 / Tasmota 12.3.1
|
||||
@joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
||||
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||
@@ -101,10 +101,11 @@ ReleaseNotes:
|
||||
- 20.12.2022 - v3.7.0 Add popUpTimer / New ALIAS Type level.timer
|
||||
- 21.12.2022 - v3.7.0 Add Fan / New ALIAS Type level.mode.fan
|
||||
- 22.12.2022 - v3.7.0 Add InSel - InputSelector with Alias Type buttonSensor (DP .VALUE)
|
||||
- 23.10.2022 - v3.7.0 Upgrade TFT 46
|
||||
- 23.10.2022 - v3.7.0 Upgrade TFT 46
|
||||
- 28.12.2022 - v3.7.3.0 Hotfix - bUp case
|
||||
- 28.12.2022 - v3.7.3.0 Update Berry Version 8
|
||||
- 28.12.2022 - v3.7.3.0 Update Berry Version 8
|
||||
- 29.12.2022 - v3.7.3.1 Hotfix - us-p - DateString - Use long/short Weekday and long/short Month
|
||||
- 29.12.2022 - v3.7.3.2 Add pageItem.id to Submenu; New Parameter targetPage by TT-TOM / @tt-tom17
|
||||
|
||||
*****************************************************************************************************************
|
||||
* Falls Aliase durch das Skript erstellt werden sollen, muss in der JavaScript Instanz "setObect" gesetzt sein! *
|
||||
@@ -1725,6 +1726,7 @@ function GeneratePageElements(page: Page): string {
|
||||
function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = false): string {
|
||||
try {
|
||||
let iconId = '0';
|
||||
let iconId2 = '0';
|
||||
if (pageItem.id == 'delete') {
|
||||
return '~delete~~~~~';
|
||||
}
|
||||
@@ -1734,38 +1736,127 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
|
||||
// ioBroker
|
||||
if (existsObject(pageItem.id) || pageItem.navigate === true) {
|
||||
|
||||
let iconColor = rgb_dec565(config.defaultColor);
|
||||
|
||||
if (pageItem.navigate) {
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
}
|
||||
|
||||
let o = getObject(pageItem.id)
|
||||
let optVal = '0';
|
||||
let val = null;
|
||||
|
||||
if (existsState(pageItem.id + '.GET')) {
|
||||
val = getState(pageItem.id + '.GET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.GET');
|
||||
} else if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
let o:any
|
||||
if (pageItem.id != null && existsObject(pageItem.id)) {
|
||||
o = getObject(pageItem.id);
|
||||
}
|
||||
|
||||
// Fallback if no name is given
|
||||
name = pageItem.name !== undefined ? pageItem.name : o.common.name.de;
|
||||
|
||||
if (existsState(pageItem.id + '.GET')) {
|
||||
val = getState(pageItem.id + '.GET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.GET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON_SET')) {
|
||||
val = getState(pageItem.id + '.ON_SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ON')) {
|
||||
val = getState(pageItem.id + '.ON').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON');
|
||||
}
|
||||
|
||||
let optVal = '0';
|
||||
if (pageItem.navigate) {
|
||||
|
||||
if (pageItem.id == null && pageItem.targetPage != undefined){
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.targetPage + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
} else if (pageItem.id != null && pageItem.targetPage != undefined){
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
type = 'button';
|
||||
|
||||
switch (o.common.role) {
|
||||
case 'socket':
|
||||
case 'light':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
} else {
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
if (pageItem.icon !== undefined) {
|
||||
if (pageItem.icon2 !== undefined) {
|
||||
iconId = iconId2;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'blind':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('window-open');
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
||||
break;
|
||||
case 'door':
|
||||
case 'window':
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
if (getState(pageItem.id + '.ACTUAL').val) {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-open') : Icons.GetIcon('window-open-variant');
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
} else {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-closed') : Icons.GetIcon('window-closed-variant');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'info':
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
if (val === true || val === 'true') {
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
} else {
|
||||
iconColor = GetIconColor(pageItem, false, useColors);
|
||||
if (pageItem.icon !== undefined) {
|
||||
if (pageItem.icon2 !== undefined) {
|
||||
iconId = iconId2;
|
||||
}
|
||||
}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
return '~delete~~~~~';
|
||||
}
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.targetPage + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
} else {
|
||||
type = 'button';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
|
||||
|
||||
return '~' + type + '~' + 'navigate.' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
|
||||
}
|
||||
}
|
||||
|
||||
switch (o.common.role) {
|
||||
case 'socket':
|
||||
case 'light':
|
||||
type = 'light';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
let iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
iconId2 = pageItem.icon2 !== undefined ? Icons.GetIcon(pageItem.icon2) : o.common.role == 'socket' ? Icons.GetIcon('power-socket-de') : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
@@ -1787,11 +1878,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -1803,7 +1889,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
let huecolor = hsv2rgb(getState(pageItem.id + '.HUE').val, 1, 1);
|
||||
let rgb = <RGB>{ red: Math.round(huecolor[0]), green: Math.round(huecolor[1]), blue: Math.round(huecolor[2]) };
|
||||
iconColor = rgb_dec565(pageItem.interpolateColor !== undefined ? rgb : config.defaultOnColor);
|
||||
// RegisterDetailEntityWatcher(id + '.HUE');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1815,11 +1900,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON')) {
|
||||
val = getState(pageItem.id + '.ON').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -1832,11 +1912,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -1860,11 +1935,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1'
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.DIMMER') ? 100 - getState(pageItem.id + '.DIMMER').val : true, useColors);
|
||||
@@ -1888,14 +1958,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('lightbulb');
|
||||
optVal = '0';
|
||||
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
} else if (existsState(pageItem.id + '.ON_SET')) {
|
||||
val = getState(pageItem.id + '.ON_SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_SET');
|
||||
}
|
||||
|
||||
if (val === true || val === 'true') {
|
||||
optVal = '1';
|
||||
iconColor = GetIconColor(pageItem, existsState(pageItem.id + '.ACTUAL') ? 100 - getState(pageItem.id + '.ACTUAL').val : true, useColors);
|
||||
@@ -1926,8 +1988,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
gateState = findLocale('window', 'opened');
|
||||
}
|
||||
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + gateState;
|
||||
@@ -1944,12 +2004,9 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
windowState = findLocale('window', 'opened');
|
||||
} else {
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == 'door' ? Icons.GetIcon('door-closed') : Icons.GetIcon('window-closed-variant');
|
||||
//iconId = Icons.GetIcon('window-closed-variant');
|
||||
iconColor = GetIconColor(pageItem, true, useColors);
|
||||
windowState = findLocale('window', 'closed');
|
||||
}
|
||||
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + windowState;
|
||||
@@ -1979,11 +2036,9 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
if (existsState(pageItem.id + '.ON_ACTUAL')) {
|
||||
optVal = getState(pageItem.id + '.ON_ACTUAL').val;
|
||||
unit = pageItem.unit !== undefined ? pageItem.unit : GetUnitOfMeasurement(pageItem.id + '.ON_ACTUAL');
|
||||
RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
|
||||
} else if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
optVal = getState(pageItem.id + '.ACTUAL').val;
|
||||
unit = pageItem.unit !== undefined ? pageItem.unit : GetUnitOfMeasurement(pageItem.id + '.ACTUAL');
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
if (o.common.role == 'value.temperature') {
|
||||
@@ -2046,11 +2101,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
}
|
||||
}
|
||||
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + optVal;
|
||||
|
||||
case 'lock':
|
||||
@@ -2070,7 +2120,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
lockState = findLocale('lock', 'LOCK');
|
||||
}
|
||||
lockState = pageItem.buttonText !== undefined ? pageItem.buttonText : lockState;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + lockState;
|
||||
@@ -2079,16 +2128,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
type = 'number';
|
||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('plus-minus-variant');
|
||||
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
iconColor = GetIconColor(pageItem, false, useColors)
|
||||
|
||||
return '~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + val + '|' + pageItem.minValue + '|' + pageItem.maxValue;
|
||||
@@ -2096,15 +2135,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
||||
case 'volumeGroup':
|
||||
case 'volume':
|
||||
type = 'number';
|
||||
if (existsState(pageItem.id + '.SET')) {
|
||||
val = getState(pageItem.id + '.SET').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.SET');
|
||||
}
|
||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||
val = getState(pageItem.id + '.ACTUAL').val;
|
||||
RegisterEntityWatcher(pageItem.id + '.ACTUAL');
|
||||
}
|
||||
|
||||
iconColor = GetIconColor(pageItem, false, useColors)
|
||||
if (existsState(pageItem.id + '.MUTE')) {
|
||||
getState(pageItem.id + '.MUTE').val ? iconColor = GetIconColor(pageItem, false, useColors) : iconColor = GetIconColor(pageItem, true, useColors);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,7 +12,7 @@ repo_name: jobr99/nspanel-lovelace-ui
|
||||
repo_url: https://github.com/jobr99/nspanel-lovelace-ui
|
||||
edit_uri: ""
|
||||
|
||||
copyright: "Copyright © 2022 Johannes Braun"
|
||||
copyright: "Copyright © 2023 Johannes Braun"
|
||||
|
||||
docs_dir: docs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user