mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-26 19:02:15 +01:00
start reworking navigation paramters (#644) (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
f0c5b5b429
commit
f976e7a738
@@ -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
|
||||
@@ -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,7 +1319,7 @@ Button bStop4
|
||||
|
||||
Button bText1
|
||||
Attributes
|
||||
ID : 60
|
||||
ID : 58
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1366,7 +1366,7 @@ Button bText1
|
||||
|
||||
Button bText2
|
||||
Attributes
|
||||
ID : 61
|
||||
ID : 59
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1413,7 +1413,7 @@ Button bText2
|
||||
|
||||
Button bText3
|
||||
Attributes
|
||||
ID : 62
|
||||
ID : 60
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -1460,7 +1460,7 @@ Button bText3
|
||||
|
||||
Button bText4
|
||||
Attributes
|
||||
ID : 63
|
||||
ID : 61
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -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,7 +2077,7 @@ Hotspot mSpecial
|
||||
|
||||
Hotspot mSwipeNext
|
||||
Attributes
|
||||
ID : 57
|
||||
ID : 55
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2097,7 +2097,7 @@ Hotspot mSwipeNext
|
||||
|
||||
Hotspot mSwipePrev
|
||||
Attributes
|
||||
ID : 59
|
||||
ID : 57
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -2117,7 +2117,7 @@ Hotspot mSwipePrev
|
||||
|
||||
Hotspot mSwipeUp
|
||||
Attributes
|
||||
ID : 58
|
||||
ID : 56
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Disable release event after dragging: 0
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user