mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 06:27:01 +01:00
add back 6 entitites to power page, remove upper text box
This commit is contained in:
@@ -10,9 +10,11 @@ head = sharedhead + """
|
|||||||
covx tTmp.txt,t1.pco,0,0
|
covx tTmp.txt,t1.pco,0,0
|
||||||
// icon home
|
// icon home
|
||||||
spstr strCommand.txt,t1.txt,"~",4
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
"""
|
"""
|
||||||
print(head)
|
print(head)
|
||||||
start = 5
|
start = 6
|
||||||
for i in range(0,6):
|
for i in range(0,6):
|
||||||
idxstart = start + (i)*5
|
idxstart = start + (i)*5
|
||||||
item = f"""
|
item = f"""
|
||||||
@@ -24,21 +26,17 @@ for i in range(0,6):
|
|||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
|
||||||
covx tTmp.txt,t{i}Speed.val,0,0
|
covx tTmp.txt,t{i}Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t{i}o.txt,"~",{idxstart+3}
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t{i}u.txt,"~",{idxstart+4}
|
spstr strCommand.txt,t{i}u.txt,"~",{idxstart+3}
|
||||||
|
|
||||||
if(t{i}Icon.txt!="")
|
if(t{i}Icon.txt!="")
|
||||||
{{
|
{{
|
||||||
vis t{i}Icon,1
|
vis t{i}Icon,1
|
||||||
vis t{i}o,1
|
|
||||||
vis t{i}u,1
|
vis t{i}u,1
|
||||||
vis h{i},1
|
vis h{i},1
|
||||||
}}else
|
}}else
|
||||||
{{
|
{{
|
||||||
vis t{i}Icon,0
|
vis t{i}Icon,0
|
||||||
vis t{i}o,0
|
|
||||||
vis t{i}u,0
|
vis t{i}u,0
|
||||||
vis h{i},0
|
vis h{i},0
|
||||||
}}
|
}}
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
Reference in New Issue
Block a user