implemented status on cover buttons and cardQR type

This commit is contained in:
joBr99
2022-05-21 12:52:49 +02:00
parent 000ec5cd3a
commit 12557683ee
4 changed files with 29 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ head = sharedhead + """
""" + navigation """ + navigation
print(head) print(head)
start = 3 start = 3
for i in range(1,6): for i in range(1,5):
idxstart = start + (i-1)*6 idxstart = start + (i-1)*6
item = f""" item = f"""
// get Type // get Type
@@ -48,6 +48,30 @@ for i in range(1,6):
vis bText{i},0 vis bText{i},0
vis hSlider{i},0 vis hSlider{i},0
vis nNum{i},0 vis nNum{i},0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",{idxstart+5}
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
{{
bUp{i}.bco2=27501
tsw bUp{i},0
}}
else
{{
bUp{i}.bco2=14823
tsw bUp{i},1
}}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
{{
bDown{i}.bco2=27501
tsw bDown{i},0
}}
else
{{
bDown{i}.bco2=14823
tsw bDown{i},1
}}
}} }}
if(type{i}.txt=="light") if(type{i}.txt=="light")
{{ {{

View File

@@ -99,6 +99,10 @@ sharedfoot = """
{ {
page cardAlarm page cardAlarm
} }
if(tId.txt=="cardQR")
{
page cardQR
}
} }
if(tInstruction.txt=="time") if(tInstruction.txt=="time")
{ {

Binary file not shown.

Binary file not shown.