Compare commits
48 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6a403921a | ||
|
|
6229ca73df | ||
|
|
c70932ebd6 | ||
|
|
ed206adc56 | ||
|
|
e91a6e660d | ||
|
|
49b60ec6e9 | ||
|
|
b98a3574f2 | ||
|
|
696a6f92e2 | ||
|
|
3170f5fd6c | ||
|
|
3e68d167df | ||
|
|
091386d812 | ||
|
|
17d33da5fd | ||
|
|
6d8c2be95b | ||
|
|
81db0b5ae0 | ||
|
|
4da151c20f | ||
|
|
792aa6c3d2 | ||
|
|
beebb0afef | ||
|
|
5e513fbab6 | ||
|
|
e49f18b125 | ||
|
|
689f9e8bf8 | ||
|
|
4646781d93 | ||
|
|
c0521bac9e | ||
|
|
4e57b15206 | ||
|
|
3d927393a4 | ||
|
|
41b48a0237 | ||
|
|
6b9e8d6b92 | ||
|
|
bb07f36327 | ||
|
|
5c50bad008 | ||
|
|
229002088f | ||
|
|
ae33905463 | ||
|
|
035a4b5129 | ||
|
|
0be532bbce | ||
|
|
a2a42add20 | ||
|
|
2b252d4327 | ||
|
|
e84ce9cc1b | ||
|
|
69a5dd323d | ||
|
|
c7346ed02c | ||
|
|
57c5449dfc | ||
|
|
bf2023aa3e | ||
|
|
754f0dd4a7 | ||
|
|
5bf810ad5a | ||
|
|
a9576adf2f | ||
|
|
470a3d5d9e | ||
|
|
780f61d1c7 | ||
|
|
7cbbbc5b36 | ||
|
|
e01b23640c | ||
|
|
964be86c5d | ||
|
|
8b37b3b669 |
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: NsPanel Lovelace UI Docs
|
||||||
|
url: https://docs.nspanel.pky.eu
|
||||||
|
about: All the information related to flashing and configuration.
|
||||||
@@ -103,7 +103,7 @@ The following message can be used to update the content on the cardEntities Page
|
|||||||
|
|
||||||
### popupLight Page
|
### popupLight Page
|
||||||
|
|
||||||
`entityUpdateDetail~*iconId*~*iconColor*~*buttonState*~*sliderBrightnessPos*~*sliderColorTempPos*~*colorMode*~*color_translation*~*color_temp_translation*~*brightness_translation*`
|
`entityUpdateDetail~entityName~*iconId*~*iconColor*~*buttonState*~*sliderBrightnessPos*~*sliderColorTempPos*~*colorMode*~*color_translation*~*color_temp_translation*~*brightness_translation*`
|
||||||
|
|
||||||
`entityUpdateDetail~1~17299~1~100~78~enable`
|
`entityUpdateDetail~1~17299~1~100~78~enable`
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ The following message can be used to update the content on the cardEntities Page
|
|||||||
|
|
||||||
### popupShutter Page
|
### popupShutter Page
|
||||||
|
|
||||||
`entityUpdateDetail~*ignored*~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown~iconUpStatus~iconStopStatus~iconDownStatus~textTilt~iconTiltLeft~iconTiltStop~iconTiltRight~iconTiltLeftStatus~iconTiltStopStatus~iconTiltLeftStatus`
|
`entityUpdateDetail~entityName~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown~iconUpStatus~iconStopStatus~iconDownStatus~textTilt~iconTiltLeft~iconTiltStop~iconTiltRight~iconTiltLeftStatus~iconTiltStopStatus~iconTiltLeftStatus`
|
||||||
|
|
||||||
`entityUpdateDetail~1~77`
|
`entityUpdateDetail~1~77`
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
|
diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
|
||||||
--- HMI/n2t-out/Program.s.txt 2022-06-12 12:21:18.432756347 +0000
|
--- HMI/n2t-out/Program.s.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-06-12 12:21:19.348768343 +0000
|
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-06-17 21:31:53.966042754 +0000
|
||||||
@@ -11,6 +11,4 @@
|
@@ -11,6 +11,4 @@
|
||||||
// dim value
|
// dim value
|
||||||
int dimValue=40
|
int dimValue=40
|
||||||
@@ -9,8 +9,8 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
|
|||||||
- lcd_dev fffb 0002 0000 0020
|
- lcd_dev fffb 0002 0000 0020
|
||||||
page pageStartup
|
page pageStartup
|
||||||
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
|
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
|
||||||
--- HMI/n2t-out/pageStartup.txt 2022-06-12 12:21:18.432756347 +0000
|
--- HMI/n2t-out/pageStartup.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-06-12 12:21:19.348768343 +0000
|
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-06-17 21:31:53.966042754 +0000
|
||||||
@@ -177,7 +177,7 @@
|
@@ -177,7 +177,7 @@
|
||||||
recmod=1
|
recmod=1
|
||||||
bauds=115200
|
bauds=115200
|
||||||
|
|||||||
@@ -83,63 +83,63 @@ Variable (string) strCommand
|
|||||||
|
|
||||||
Variable (string) type1
|
Variable (string) type1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 45
|
ID : 41
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type2
|
Variable (string) type2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 46
|
ID : 42
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type3
|
Variable (string) type3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 47
|
ID : 43
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type4
|
Variable (string) type4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 48
|
ID : 44
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) entn1
|
Variable (string) entn1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 49
|
ID : 45
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn2
|
Variable (string) entn2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 50
|
ID : 46
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn3
|
Variable (string) entn3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 51
|
ID : 47
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn4
|
Variable (string) entn4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 52
|
ID : 48
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Number nNum1
|
Number nNum1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 58
|
ID : 54
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -169,7 +169,7 @@ Number nNum1
|
|||||||
|
|
||||||
Number nNum2
|
Number nNum2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 59
|
ID : 55
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -199,7 +199,7 @@ Number nNum2
|
|||||||
|
|
||||||
Number nNum3
|
Number nNum3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 60
|
ID : 56
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -229,7 +229,7 @@ Number nNum3
|
|||||||
|
|
||||||
Number nNum4
|
Number nNum4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 61
|
ID : 57
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -275,7 +275,7 @@ Text tHeading
|
|||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 2
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Font Color : 65535
|
Font Color : 65535
|
||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
@@ -666,7 +666,7 @@ Picture p0
|
|||||||
|
|
||||||
Slider hSlider1
|
Slider hSlider1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 54
|
ID : 50
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -709,7 +709,7 @@ Slider hSlider1
|
|||||||
|
|
||||||
Slider hSlider2
|
Slider hSlider2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 55
|
ID : 51
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -752,7 +752,7 @@ Slider hSlider2
|
|||||||
|
|
||||||
Slider hSlider3
|
Slider hSlider3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 56
|
ID : 52
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -795,7 +795,7 @@ Slider hSlider3
|
|||||||
|
|
||||||
Slider hSlider4
|
Slider hSlider4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 57
|
ID : 53
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1503,15 +1503,15 @@ Button bNext
|
|||||||
|
|
||||||
Button bText1
|
Button bText1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 37
|
ID : 61
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 292
|
x coordinate : 276
|
||||||
y coordinate : 84
|
y coordinate : 84
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1527,8 +1527,8 @@ Button bText1
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1550,15 +1550,15 @@ Button bText1
|
|||||||
|
|
||||||
Button bText2
|
Button bText2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 38
|
ID : 62
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 291
|
x coordinate : 276
|
||||||
y coordinate : 140
|
y coordinate : 140
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1574,8 +1574,8 @@ Button bText2
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1597,15 +1597,15 @@ Button bText2
|
|||||||
|
|
||||||
Button bText3
|
Button bText3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 39
|
ID : 63
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 292
|
x coordinate : 277
|
||||||
y coordinate : 197
|
y coordinate : 197
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1621,8 +1621,8 @@ Button bText3
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1644,15 +1644,15 @@ Button bText3
|
|||||||
|
|
||||||
Button bText4
|
Button bText4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 40
|
ID : 64
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 292
|
x coordinate : 277
|
||||||
y coordinate : 254
|
y coordinate : 254
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1668,8 +1668,8 @@ Button bText4
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1897,7 +1897,7 @@ Hotspot mSpecial
|
|||||||
|
|
||||||
Hotspot m2
|
Hotspot m2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 41
|
ID : 37
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1905,7 +1905,7 @@ Hotspot m2
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 40
|
x coordinate : 40
|
||||||
y coordinate : 184
|
y coordinate : 184
|
||||||
Width : 250
|
Width : 235
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1928,7 +1928,7 @@ Hotspot m2
|
|||||||
|
|
||||||
Hotspot m1
|
Hotspot m1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 42
|
ID : 38
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1936,7 +1936,7 @@ Hotspot m1
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 39
|
x coordinate : 39
|
||||||
y coordinate : 127
|
y coordinate : 127
|
||||||
Width : 247
|
Width : 236
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1959,7 +1959,7 @@ Hotspot m1
|
|||||||
|
|
||||||
Hotspot m0
|
Hotspot m0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 43
|
ID : 39
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1967,7 +1967,7 @@ Hotspot m0
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 37
|
x coordinate : 37
|
||||||
y coordinate : 70
|
y coordinate : 70
|
||||||
Width : 244
|
Width : 237
|
||||||
Height : 56
|
Height : 56
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1990,7 +1990,7 @@ Hotspot m0
|
|||||||
|
|
||||||
Hotspot m3
|
Hotspot m3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 44
|
ID : 40
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1998,7 +1998,7 @@ Hotspot m3
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 38
|
x coordinate : 38
|
||||||
y coordinate : 237
|
y coordinate : 237
|
||||||
Width : 244
|
Width : 236
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -2021,7 +2021,7 @@ Hotspot m3
|
|||||||
|
|
||||||
Hotspot mSwipeNext
|
Hotspot mSwipeNext
|
||||||
Attributes
|
Attributes
|
||||||
ID : 62
|
ID : 58
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2041,7 +2041,7 @@ Hotspot mSwipeNext
|
|||||||
|
|
||||||
Hotspot mSwipeUp
|
Hotspot mSwipeUp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 63
|
ID : 59
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2049,7 +2049,7 @@ Hotspot mSwipeUp
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 12
|
x coordinate : 12
|
||||||
y coordinate : 0
|
y coordinate : 0
|
||||||
Width : 454
|
Width : 453
|
||||||
Height : 9
|
Height : 9
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -2061,7 +2061,7 @@ Hotspot mSwipeUp
|
|||||||
|
|
||||||
Hotspot mSwipePrev
|
Hotspot mSwipePrev
|
||||||
Attributes
|
Attributes
|
||||||
ID : 64
|
ID : 60
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2953,7 +2953,7 @@ Timer tmSleep
|
|||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 53
|
ID : 49
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ cardMedia
|
|||||||
34 Component(s)
|
34 Component(s)
|
||||||
363 Line(s) of event code
|
363 Line(s) of event code
|
||||||
195 Unique line(s) of event code
|
195 Unique line(s) of event code
|
||||||
|
pageStartup
|
||||||
|
19 Component(s)
|
||||||
|
157 Line(s) of event code
|
||||||
|
117 Unique line(s) of event code
|
||||||
cardGrid
|
cardGrid
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
439 Line(s) of event code
|
439 Line(s) of event code
|
||||||
@@ -22,18 +26,18 @@ cardQR
|
|||||||
32 Component(s)
|
32 Component(s)
|
||||||
374 Line(s) of event code
|
374 Line(s) of event code
|
||||||
218 Unique line(s) of event code
|
218 Unique line(s) of event code
|
||||||
pageStartup
|
popupLight
|
||||||
19 Component(s)
|
27 Component(s)
|
||||||
157 Line(s) of event code
|
353 Line(s) of event code
|
||||||
117 Unique line(s) of event code
|
193 Unique line(s) of event code
|
||||||
popupNotify
|
popupNotify
|
||||||
17 Component(s)
|
17 Component(s)
|
||||||
204 Line(s) of event code
|
204 Line(s) of event code
|
||||||
128 Unique line(s) of event code
|
128 Unique line(s) of event code
|
||||||
popupShutter
|
popupShutter
|
||||||
25 Component(s)
|
25 Component(s)
|
||||||
330 Line(s) of event code
|
331 Line(s) of event code
|
||||||
162 Unique line(s) of event code
|
163 Unique line(s) of event code
|
||||||
screensaver
|
screensaver
|
||||||
38 Component(s)
|
38 Component(s)
|
||||||
319 Line(s) of event code
|
319 Line(s) of event code
|
||||||
@@ -42,10 +46,6 @@ cardEntities
|
|||||||
65 Component(s)
|
65 Component(s)
|
||||||
1133 Line(s) of event code
|
1133 Line(s) of event code
|
||||||
496 Unique line(s) of event code
|
496 Unique line(s) of event code
|
||||||
popupLight
|
|
||||||
27 Component(s)
|
|
||||||
352 Line(s) of event code
|
|
||||||
191 Unique line(s) of event code
|
|
||||||
cardThermo
|
cardThermo
|
||||||
53 Component(s)
|
53 Component(s)
|
||||||
555 Line(s) of event code
|
555 Line(s) of event code
|
||||||
@@ -58,5 +58,5 @@ cardAlarm
|
|||||||
Total
|
Total
|
||||||
13 Page(s)
|
13 Page(s)
|
||||||
412 Component(s)
|
412 Component(s)
|
||||||
4642 Line(s) of event code
|
4644 Line(s) of event code
|
||||||
1232 Unique line(s) of event code
|
1235 Unique line(s) of event code
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Variable (string) strCommand
|
|||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -320,7 +320,7 @@ Text tTmp
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 80
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -789,21 +789,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -821,7 +822,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -865,7 +866,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -886,11 +887,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Variable (string) strCommand
|
|||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -82,7 +82,7 @@ Variable (string) tTmp
|
|||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 80
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -770,10 +770,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -786,92 +787,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -769,8 +769,8 @@ Button bText1
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -794,8 +794,8 @@ Button bText2
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -819,8 +819,8 @@ Button bText3
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -844,8 +844,8 @@ Button bText4
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -151,7 +151,7 @@ Text tTmp
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 80
|
||||||
|
|
||||||
Text tInstruction
|
Text tInstruction
|
||||||
Attributes
|
Attributes
|
||||||
@@ -443,21 +443,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -475,7 +476,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -519,7 +520,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -540,11 +541,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -69,7 +69,7 @@ Variable (string) tTmp
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 80
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -441,10 +441,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -457,92 +458,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
|
diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
--- HMI/n2t-out/Program.s.txt 2022-06-12 12:21:18.432756347 +0000
|
--- HMI/n2t-out/Program.s.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-12 12:21:18.872762109 +0000
|
+++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
@@ -11,6 +11,6 @@
|
@@ -11,6 +11,6 @@
|
||||||
// dim value
|
// dim value
|
||||||
int dimValue=40
|
int dimValue=40
|
||||||
@@ -11,8 +11,8 @@ diff -bur HMI/n2t-out/Program.s.txt HMI/US/portrait/n2t-out/Program.s.txt
|
|||||||
+ //lcd_dev fffb 0002 0000 0020
|
+ //lcd_dev fffb 0002 0000 0020
|
||||||
page pageStartup
|
page pageStartup
|
||||||
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
|
diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
--- HMI/n2t-out/cardEntities.txt 2022-06-12 12:21:18.436756399 +0000
|
--- HMI/n2t-out/cardEntities.txt 2022-06-17 21:31:52.838043344 +0000
|
||||||
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-12 12:21:18.876762161 +0000
|
+++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
@@ -63,6 +63,16 @@
|
@@ -63,6 +63,16 @@
|
||||||
vis bText4,0
|
vis bText4,0
|
||||||
vis hSlider4,0
|
vis hSlider4,0
|
||||||
@@ -213,8 +213,8 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
|
|||||||
+ Disable release event after dragging: 0
|
+ Disable release event after dragging: 0
|
||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
+ State : unpressed
|
+ State : unpressed
|
||||||
+ Text : newtxt
|
+ Text :
|
||||||
+ Max. Text Size : 10
|
+ Max. Text Size : 20
|
||||||
+
|
+
|
||||||
+ Events
|
+ Events
|
||||||
+ Touch Press Event
|
+ Touch Press Event
|
||||||
@@ -468,8 +468,8 @@ diff -bur HMI/n2t-out/cardEntities.txt HMI/US/portrait/n2t-out/cardEntities.txt
|
|||||||
if(tInstruction.txt=="pageType")
|
if(tInstruction.txt=="pageType")
|
||||||
{
|
{
|
||||||
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
|
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
|
||||||
--- HMI/n2t-out/pageStartup.txt 2022-06-12 12:21:18.432756347 +0000
|
--- HMI/n2t-out/pageStartup.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-12 12:21:18.872762109 +0000
|
+++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
@@ -142,7 +142,7 @@
|
@@ -142,7 +142,7 @@
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
@@ -488,3 +488,27 @@ diff -bur HMI/n2t-out/pageStartup.txt HMI/US/portrait/n2t-out/pageStartup.txt
|
|||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
|
diff -bur HMI/n2t-out/popupLight.txt HMI/US/portrait/n2t-out/popupLight.txt
|
||||||
|
--- HMI/n2t-out/popupLight.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
|
+++ HMI/US/portrait/n2t-out/popupLight.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
|
@@ -151,7 +151,7 @@
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
- Max. Text Size : 80
|
||||||
|
+ Max. Text Size : 10
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
diff -bur HMI/n2t-out/popupShutter.txt HMI/US/portrait/n2t-out/popupShutter.txt
|
||||||
|
--- HMI/n2t-out/popupShutter.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
|
+++ HMI/US/portrait/n2t-out/popupShutter.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
- Max. Text Size: 80
|
||||||
|
+ Max. Text Size: 10
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
|||||||
@@ -1,16 +1,42 @@
|
|||||||
+++ HMI/US/portrait/diff-eu-version.txt 2022-06-12 12:21:18.904762528 +0000
|
+++ HMI/US/portrait/diff-eu-version.txt 2022-06-17 21:31:53.398043051 +0000
|
||||||
+--- HMI/n2t-out/Program.s.txt 2022-06-12 12:21:18.432756347 +0000
|
+--- HMI/n2t-out/Program.s.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-12 12:21:18.872762109 +0000
|
++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
+--- HMI/n2t-out/cardEntities.txt 2022-06-12 12:21:18.436756399 +0000
|
+--- HMI/n2t-out/cardEntities.txt 2022-06-17 21:31:52.838043344 +0000
|
||||||
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-12 12:21:18.876762161 +0000
|
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
+@@ -63,6 +63,16 @@
|
+@@ -63,6 +63,16 @@
|
||||||
+@@ -120,6 +130,18 @@
|
+@@ -120,6 +130,18 @@
|
||||||
+@@ -156,6 +178,15 @@
|
+@@ -156,6 +178,15 @@
|
||||||
+@@ -286,6 +317,26 @@
|
+@@ -286,6 +317,26 @@
|
||||||
+@@ -405,6 +456,34 @@
|
+@@ -405,6 +456,34 @@
|
||||||
+@@ -862,6 +941,106 @@
|
+@@ -862,6 +941,106 @@
|
||||||
|
++ Text :
|
||||||
|
++ Max. Text Size : 20
|
||||||
+@@ -970,6 +1149,33 @@
|
+@@ -970,6 +1149,33 @@
|
||||||
+@@ -1075,6 +1281,28 @@
|
+@@ -1075,6 +1281,28 @@
|
||||||
+@@ -1850,6 +2078,169 @@
|
+@@ -1850,6 +2078,169 @@
|
||||||
+--- HMI/n2t-out/pageStartup.txt 2022-06-12 12:21:18.432756347 +0000
|
+--- HMI/n2t-out/pageStartup.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-12 12:21:18.872762109 +0000
|
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
|
+diff -bur HMI/n2t-out/popupLight.txt HMI/US/portrait/n2t-out/popupLight.txt
|
||||||
|
+--- HMI/n2t-out/popupLight.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
|
++++ HMI/US/portrait/n2t-out/popupLight.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
|
+@@ -151,7 +151,7 @@
|
||||||
|
+ Send Component ID : disabled
|
||||||
|
+ Associated Keyboard : none
|
||||||
|
+ Text :
|
||||||
|
+- Max. Text Size : 80
|
||||||
|
++ Max. Text Size : 10
|
||||||
|
+
|
||||||
|
+ Text tInstruction
|
||||||
|
+ Attributes
|
||||||
|
+diff -bur HMI/n2t-out/popupShutter.txt HMI/US/portrait/n2t-out/popupShutter.txt
|
||||||
|
+--- HMI/n2t-out/popupShutter.txt 2022-06-17 21:31:52.834043346 +0000
|
||||||
|
++++ HMI/US/portrait/n2t-out/popupShutter.txt 2022-06-17 21:31:53.382043060 +0000
|
||||||
|
+@@ -69,7 +69,7 @@
|
||||||
|
+ Attributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+- Max. Text Size: 80
|
||||||
|
++ Max. Text Size: 10
|
||||||
|
+
|
||||||
|
+ Text tEntity
|
||||||
|
+ Attributes
|
||||||
|
|||||||
@@ -1684,8 +1684,8 @@ Button bText1
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1731,8 +1731,8 @@ Button bText2
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1778,8 +1778,8 @@ Button bText3
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1825,8 +1825,8 @@ Button bText4
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -2013,8 +2013,8 @@ Button bText5
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Program.s
|
|||||||
10 Unique line(s) of event code
|
10 Unique line(s) of event code
|
||||||
popupShutter
|
popupShutter
|
||||||
25 Component(s)
|
25 Component(s)
|
||||||
330 Line(s) of event code
|
331 Line(s) of event code
|
||||||
162 Unique line(s) of event code
|
163 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
6 Component(s)
|
6 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
@@ -14,18 +14,10 @@ pageTest
|
|||||||
14 Component(s)
|
14 Component(s)
|
||||||
14 Line(s) of event code
|
14 Line(s) of event code
|
||||||
14 Unique line(s) of event code
|
14 Unique line(s) of event code
|
||||||
popupLight
|
|
||||||
27 Component(s)
|
|
||||||
352 Line(s) of event code
|
|
||||||
191 Unique line(s) of event code
|
|
||||||
cardQR
|
cardQR
|
||||||
32 Component(s)
|
32 Component(s)
|
||||||
374 Line(s) of event code
|
374 Line(s) of event code
|
||||||
218 Unique line(s) of event code
|
218 Unique line(s) of event code
|
||||||
pageStartup
|
|
||||||
19 Component(s)
|
|
||||||
157 Line(s) of event code
|
|
||||||
117 Unique line(s) of event code
|
|
||||||
popupNotify
|
popupNotify
|
||||||
17 Component(s)
|
17 Component(s)
|
||||||
204 Line(s) of event code
|
204 Line(s) of event code
|
||||||
@@ -34,6 +26,10 @@ cardThermo
|
|||||||
53 Component(s)
|
53 Component(s)
|
||||||
555 Line(s) of event code
|
555 Line(s) of event code
|
||||||
292 Unique line(s) of event code
|
292 Unique line(s) of event code
|
||||||
|
pageStartup
|
||||||
|
19 Component(s)
|
||||||
|
157 Line(s) of event code
|
||||||
|
117 Unique line(s) of event code
|
||||||
cardMedia
|
cardMedia
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
363 Line(s) of event code
|
363 Line(s) of event code
|
||||||
@@ -42,6 +38,10 @@ screensaver
|
|||||||
38 Component(s)
|
38 Component(s)
|
||||||
319 Line(s) of event code
|
319 Line(s) of event code
|
||||||
253 Unique line(s) of event code
|
253 Unique line(s) of event code
|
||||||
|
popupLight
|
||||||
|
27 Component(s)
|
||||||
|
353 Line(s) of event code
|
||||||
|
193 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
77 Component(s)
|
77 Component(s)
|
||||||
1363 Line(s) of event code
|
1363 Line(s) of event code
|
||||||
@@ -58,5 +58,5 @@ cardAlarm
|
|||||||
Total
|
Total
|
||||||
13 Page(s)
|
13 Page(s)
|
||||||
424 Component(s)
|
424 Component(s)
|
||||||
4872 Line(s) of event code
|
4874 Line(s) of event code
|
||||||
1304 Unique line(s) of event code
|
1307 Unique line(s) of event code
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Variable (string) strCommand
|
|||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -789,21 +789,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -821,7 +822,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -865,7 +866,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -886,11 +887,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Variable (string) strCommand
|
|||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -770,10 +770,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -786,92 +787,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -848,8 +848,8 @@ Button bText1
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -873,8 +873,8 @@ Button bText2
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -898,8 +898,8 @@ Button bText3
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -923,8 +923,8 @@ Button bText4
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1023,8 +1023,8 @@ Button bText5
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -443,21 +443,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -475,7 +476,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -519,7 +520,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -540,11 +541,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -441,10 +441,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -457,92 +458,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,63 +83,63 @@ Variable (string) strCommand
|
|||||||
|
|
||||||
Variable (string) type1
|
Variable (string) type1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 45
|
ID : 41
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type2
|
Variable (string) type2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 46
|
ID : 42
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type3
|
Variable (string) type3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 47
|
ID : 43
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) type4
|
Variable (string) type4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 48
|
ID : 44
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) entn1
|
Variable (string) entn1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 49
|
ID : 45
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn2
|
Variable (string) entn2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 50
|
ID : 46
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn3
|
Variable (string) entn3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 51
|
ID : 47
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (string) entn4
|
Variable (string) entn4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 52
|
ID : 48
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Number nNum1
|
Number nNum1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 58
|
ID : 54
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -169,7 +169,7 @@ Number nNum1
|
|||||||
|
|
||||||
Number nNum2
|
Number nNum2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 59
|
ID : 55
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -199,7 +199,7 @@ Number nNum2
|
|||||||
|
|
||||||
Number nNum3
|
Number nNum3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 60
|
ID : 56
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -229,7 +229,7 @@ Number nNum3
|
|||||||
|
|
||||||
Number nNum4
|
Number nNum4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 61
|
ID : 57
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -666,7 +666,7 @@ Picture p0
|
|||||||
|
|
||||||
Slider hSlider1
|
Slider hSlider1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 54
|
ID : 50
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -709,7 +709,7 @@ Slider hSlider1
|
|||||||
|
|
||||||
Slider hSlider2
|
Slider hSlider2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 55
|
ID : 51
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -752,7 +752,7 @@ Slider hSlider2
|
|||||||
|
|
||||||
Slider hSlider3
|
Slider hSlider3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 56
|
ID : 52
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -795,7 +795,7 @@ Slider hSlider3
|
|||||||
|
|
||||||
Slider hSlider4
|
Slider hSlider4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 57
|
ID : 53
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1503,15 +1503,15 @@ Button bNext
|
|||||||
|
|
||||||
Button bText1
|
Button bText1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 37
|
ID : 61
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 277
|
x coordinate : 261
|
||||||
y coordinate : 84
|
y coordinate : 84
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1527,8 +1527,8 @@ Button bText1
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1550,15 +1550,15 @@ Button bText1
|
|||||||
|
|
||||||
Button bText2
|
Button bText2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 38
|
ID : 62
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 276
|
x coordinate : 261
|
||||||
y coordinate : 140
|
y coordinate : 140
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1574,8 +1574,8 @@ Button bText2
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1597,15 +1597,15 @@ Button bText2
|
|||||||
|
|
||||||
Button bText3
|
Button bText3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 39
|
ID : 63
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 277
|
x coordinate : 262
|
||||||
y coordinate : 197
|
y coordinate : 197
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1621,8 +1621,8 @@ Button bText3
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1644,15 +1644,15 @@ Button bText3
|
|||||||
|
|
||||||
Button bText4
|
Button bText4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 40
|
ID : 64
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 277
|
x coordinate : 262
|
||||||
y coordinate : 254
|
y coordinate : 254
|
||||||
Width : 145
|
Width : 166
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1668,8 +1668,8 @@ Button bText4
|
|||||||
Horizontal Alignment : right
|
Horizontal Alignment : right
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -1897,7 +1897,7 @@ Hotspot mSpecial
|
|||||||
|
|
||||||
Hotspot m2
|
Hotspot m2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 41
|
ID : 37
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1905,7 +1905,7 @@ Hotspot m2
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 25
|
x coordinate : 25
|
||||||
y coordinate : 184
|
y coordinate : 184
|
||||||
Width : 250
|
Width : 235
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1928,7 +1928,7 @@ Hotspot m2
|
|||||||
|
|
||||||
Hotspot m1
|
Hotspot m1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 42
|
ID : 38
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1936,7 +1936,7 @@ Hotspot m1
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 24
|
x coordinate : 24
|
||||||
y coordinate : 127
|
y coordinate : 127
|
||||||
Width : 247
|
Width : 236
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1959,7 +1959,7 @@ Hotspot m1
|
|||||||
|
|
||||||
Hotspot m0
|
Hotspot m0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 43
|
ID : 39
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1967,7 +1967,7 @@ Hotspot m0
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 22
|
x coordinate : 22
|
||||||
y coordinate : 70
|
y coordinate : 70
|
||||||
Width : 244
|
Width : 237
|
||||||
Height : 56
|
Height : 56
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -1990,7 +1990,7 @@ Hotspot m0
|
|||||||
|
|
||||||
Hotspot m3
|
Hotspot m3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 44
|
ID : 40
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -1998,7 +1998,7 @@ Hotspot m3
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 23
|
x coordinate : 23
|
||||||
y coordinate : 237
|
y coordinate : 237
|
||||||
Width : 244
|
Width : 236
|
||||||
Height : 60
|
Height : 60
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -2021,7 +2021,7 @@ Hotspot m3
|
|||||||
|
|
||||||
Hotspot mSwipeNext
|
Hotspot mSwipeNext
|
||||||
Attributes
|
Attributes
|
||||||
ID : 62
|
ID : 58
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2041,7 +2041,7 @@ Hotspot mSwipeNext
|
|||||||
|
|
||||||
Hotspot mSwipeUp
|
Hotspot mSwipeUp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 63
|
ID : 59
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2061,7 +2061,7 @@ Hotspot mSwipeUp
|
|||||||
|
|
||||||
Hotspot mSwipePrev
|
Hotspot mSwipePrev
|
||||||
Attributes
|
Attributes
|
||||||
ID : 64
|
ID : 60
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
@@ -2953,7 +2953,7 @@ Timer tmSleep
|
|||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 53
|
ID : 49
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
|
|||||||
@@ -18,22 +18,22 @@ popupNotify
|
|||||||
17 Component(s)
|
17 Component(s)
|
||||||
204 Line(s) of event code
|
204 Line(s) of event code
|
||||||
128 Unique line(s) of event code
|
128 Unique line(s) of event code
|
||||||
popupLight
|
popupShutter
|
||||||
27 Component(s)
|
25 Component(s)
|
||||||
352 Line(s) of event code
|
331 Line(s) of event code
|
||||||
191 Unique line(s) of event code
|
163 Unique line(s) of event code
|
||||||
pageStartup
|
|
||||||
19 Component(s)
|
|
||||||
157 Line(s) of event code
|
|
||||||
117 Unique line(s) of event code
|
|
||||||
cardMedia
|
cardMedia
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
363 Line(s) of event code
|
363 Line(s) of event code
|
||||||
195 Unique line(s) of event code
|
195 Unique line(s) of event code
|
||||||
popupShutter
|
pageStartup
|
||||||
25 Component(s)
|
19 Component(s)
|
||||||
330 Line(s) of event code
|
157 Line(s) of event code
|
||||||
162 Unique line(s) of event code
|
117 Unique line(s) of event code
|
||||||
|
popupLight
|
||||||
|
27 Component(s)
|
||||||
|
353 Line(s) of event code
|
||||||
|
193 Unique line(s) of event code
|
||||||
cardGrid
|
cardGrid
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
439 Line(s) of event code
|
439 Line(s) of event code
|
||||||
@@ -58,5 +58,5 @@ cardEntities
|
|||||||
Total
|
Total
|
||||||
13 Page(s)
|
13 Page(s)
|
||||||
412 Component(s)
|
412 Component(s)
|
||||||
4643 Line(s) of event code
|
4645 Line(s) of event code
|
||||||
1233 Unique line(s) of event code
|
1236 Unique line(s) of event code
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Variable (string) strCommand
|
|||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -320,7 +320,7 @@ Text tTmp
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 80
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
@@ -789,21 +789,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -821,7 +822,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -865,7 +866,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -886,11 +887,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Variable (string) strCommand
|
|||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -82,7 +82,7 @@ Variable (string) tTmp
|
|||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 80
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -770,10 +770,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -786,92 +787,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -769,8 +769,8 @@ Button bText1
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -794,8 +794,8 @@ Button bText2
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -819,8 +819,8 @@ Button bText3
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -844,8 +844,8 @@ Button bText4
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : newtxt
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 37
|
Text : 38
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -151,7 +151,7 @@ Text tTmp
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 80
|
||||||
|
|
||||||
Text tInstruction
|
Text tInstruction
|
||||||
Attributes
|
Attributes
|
||||||
@@ -443,21 +443,22 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
tIcon1.pco=sys0
|
tIcon1.pco=sys0
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
btOnOff1.val=sys0
|
btOnOff1.val=sys0
|
||||||
// get Brightness value
|
// get Brightness value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis t1,0
|
vis t1,0
|
||||||
@@ -475,7 +476,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
@@ -519,7 +520,7 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get Color value
|
// get Color value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
@@ -540,11 +541,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
spstr strCommand.txt,t0.txt,"~",7
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
spstr strCommand.txt,t4.txt,"~",8
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
spstr strCommand.txt,t1.txt,"~",9
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Variable (string) strCommand
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
@@ -69,7 +69,7 @@ Variable (string) tTmp
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 80
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -441,10 +441,11 @@ Timer tmSerial
|
|||||||
ucopy strCommand.txt,4,payloadLength-5,0
|
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)
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
spstr strCommand.txt,tInstruction.txt,"~",0
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
if(tInstruction.txt=="entityUpdateDetail")
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&tTmp.txt==entn.txt)
|
||||||
{
|
{
|
||||||
// get Position value
|
// get Position value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -457,92 +458,92 @@ Timer tmSerial
|
|||||||
vis hPosition,1
|
vis hPosition,1
|
||||||
}
|
}
|
||||||
// set tinfo1 text
|
// set tinfo1 text
|
||||||
spstr strCommand.txt,tInfo1.txt,"~",2
|
spstr strCommand.txt,tInfo1.txt,"~",3
|
||||||
// set tPosHeading (localization)
|
// set tPosHeading (localization)
|
||||||
spstr strCommand.txt,tPosHeading.txt,"~",3
|
spstr strCommand.txt,tPosHeading.txt,"~",4
|
||||||
// set tIcon1
|
// set tIcon1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.txt=tTmp.txt
|
tIcon1.txt=tTmp.txt
|
||||||
}
|
}
|
||||||
// set icon bUp
|
// set icon bUp
|
||||||
spstr strCommand.txt,tTmp.txt,"~",8
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bUp1,0
|
tsw bUp1,0
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
bUp1.pco=27501
|
bUp1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bUp1.txt,"~",5
|
spstr strCommand.txt,bUp1.txt,"~",6
|
||||||
tsw bUp1,1
|
tsw bUp1,1
|
||||||
bUp1.pco=65535
|
bUp1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bStop
|
// set icon bStop
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
tsw bStop1,0
|
tsw bStop1,0
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
bStop1.pco=27501
|
bStop1.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bStop1.txt,"~",6
|
spstr strCommand.txt,bStop1.txt,"~",7
|
||||||
tsw bStop1,1
|
tsw bStop1,1
|
||||||
bStop1.pco=65535
|
bStop1.pco=65535
|
||||||
}
|
}
|
||||||
// set icon bDown
|
// set icon bDown
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,0
|
||||||
|
bDown1.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bDown1.txt,"~",8
|
||||||
|
tsw bDown1,1
|
||||||
|
bDown1.pco=65535
|
||||||
|
}
|
||||||
|
// set tTiltHeading (localization)
|
||||||
|
spstr strCommand.txt,tTiltHeading.txt,"~",12
|
||||||
|
// set icon bUp
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTLeft,0
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
bTLeft.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTLeft.txt,"~",13
|
||||||
|
tsw bTLeft,1
|
||||||
|
bTLeft.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bStop
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
tsw bTStop,0
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
bTStop.pco=27501
|
||||||
|
}else if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
spstr strCommand.txt,bTStop.txt,"~",14
|
||||||
|
tsw bTStop,1
|
||||||
|
bTStop.pco=65535
|
||||||
|
}
|
||||||
|
// set icon bDown
|
||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bDown1,0
|
|
||||||
bDown1.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bDown1.txt,"~",7
|
|
||||||
tsw bDown1,1
|
|
||||||
bDown1.pco=65535
|
|
||||||
}
|
|
||||||
// set tTiltHeading (localization)
|
|
||||||
spstr strCommand.txt,tTiltHeading.txt,"~",11
|
|
||||||
// set icon bUp
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTLeft,0
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
bTLeft.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTLeft.txt,"~",12
|
|
||||||
tsw bTLeft,1
|
|
||||||
bTLeft.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bStop
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",16
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
tsw bTStop,0
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
bTStop.pco=27501
|
|
||||||
}else if(tTmp.txt=="enable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTStop.txt,"~",13
|
|
||||||
tsw bTStop,1
|
|
||||||
bTStop.pco=65535
|
|
||||||
}
|
|
||||||
// set icon bDown
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",9
|
|
||||||
if(tTmp.txt=="disable")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
|
||||||
tsw bTRight,0
|
tsw bTRight,0
|
||||||
bTRight.pco=27501
|
bTRight.pco=27501
|
||||||
}else if(tTmp.txt=="enable")
|
}else if(tTmp.txt=="enable")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,bTRight.txt,"~",14
|
spstr strCommand.txt,bTRight.txt,"~",15
|
||||||
tsw bTRight,1
|
tsw bTRight,1
|
||||||
bTRight.pco=65535
|
bTRight.pco=65535
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.tft
@@ -16,7 +16,7 @@ Or an TypeScript on your ioBroker Instance in case you are an ioBroker User.
|
|||||||
|
|
||||||
NsPanel needs to be flashed with Tasmota (or upcoming with ESPHome)
|
NsPanel needs to be flashed with Tasmota (or upcoming with ESPHome)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ class LuiBackendConfig(object):
|
|||||||
'locale': "en_US",
|
'locale': "en_US",
|
||||||
'timeFormat': "%H:%M",
|
'timeFormat': "%H:%M",
|
||||||
'dateFormatBabel': "full",
|
'dateFormatBabel': "full",
|
||||||
'dateAdditonalTemplate': "",
|
'dateAdditionalTemplate': "",
|
||||||
'timeAdditonalTemplate': "",
|
'timeAdditionalTemplate': "",
|
||||||
'dateFormat': "%A, %d. %B %Y",
|
'dateFormat': "%A, %d. %B %Y",
|
||||||
'cards': [{
|
'cards': [{
|
||||||
'type': 'cardEntities',
|
'type': 'cardEntities',
|
||||||
|
|||||||
@@ -241,9 +241,13 @@ class LuiController(object):
|
|||||||
if button_type == "button":
|
if button_type == "button":
|
||||||
if entity_id.startswith('navigate'):
|
if entity_id.startswith('navigate'):
|
||||||
# internal for navigation to nested pages
|
# internal for navigation to nested pages
|
||||||
|
dstCard = self._config.searchCard(entity_id)
|
||||||
|
if dstCard is not None:
|
||||||
self._previous_cards.append(self._current_card)
|
self._previous_cards.append(self._current_card)
|
||||||
self._current_card = self._config.searchCard(entity_id)
|
self._current_card = dstCard
|
||||||
self._pages_gen.render_card(self._current_card)
|
self._pages_gen.render_card(self._current_card)
|
||||||
|
else:
|
||||||
|
self._ha_api.log(f"No page with key {entity_id} found")
|
||||||
elif entity_id.startswith('scene'):
|
elif entity_id.startswith('scene'):
|
||||||
self._ha_api.get_entity(entity_id).call_service("turn_on")
|
self._ha_api.get_entity(entity_id).call_service("turn_on")
|
||||||
elif entity_id.startswith('script'):
|
elif entity_id.startswith('script'):
|
||||||
@@ -255,7 +259,7 @@ class LuiController(object):
|
|||||||
self._ha_api.get_entity(entity_id).call_service("unlock")
|
self._ha_api.get_entity(entity_id).call_service("unlock")
|
||||||
else:
|
else:
|
||||||
self._ha_api.get_entity(entity_id).call_service("lock")
|
self._ha_api.get_entity(entity_id).call_service("lock")
|
||||||
else:
|
elif entity_id.startswith('button') or entity_id.startswith('input_button'):
|
||||||
self._ha_api.get_entity(entity_id).call_service("press")
|
self._ha_api.get_entity(entity_id).call_service("press")
|
||||||
|
|
||||||
# for media page
|
# for media page
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
def update_time(self, kwargs):
|
def update_time(self, kwargs):
|
||||||
time = datetime.datetime.now().strftime(self._config.get("timeFormat"))
|
time = datetime.datetime.now().strftime(self._config.get("timeFormat"))
|
||||||
addTemplate = self._config.get("timeAdditonalTemplate")
|
addTemplate = self._config.get("timeAdditionalTemplate")
|
||||||
addTimeText = self._ha_api.render_template(addTemplate)
|
addTimeText = self._ha_api.render_template(addTemplate)
|
||||||
self._send_mqtt_msg(f"time~{time}~{addTimeText}")
|
self._send_mqtt_msg(f"time~{time}~{addTimeText}")
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ class LuiPagesGen(object):
|
|||||||
dateformat = self._config.get("dateFormat")
|
dateformat = self._config.get("dateFormat")
|
||||||
date = datetime.datetime.now().strftime(dateformat)
|
date = datetime.datetime.now().strftime(dateformat)
|
||||||
|
|
||||||
addTemplate = self._config.get("dateAdditonalTemplate")
|
addTemplate = self._config.get("dateAdditionalTemplate")
|
||||||
addDateText = self._ha_api.render_template(addTemplate)
|
addDateText = self._ha_api.render_template(addTemplate)
|
||||||
self._send_mqtt_msg(f"date~{date}{addDateText}")
|
self._send_mqtt_msg(f"date~{date}{addDateText}")
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ class LuiPagesGen(object):
|
|||||||
entity = self._ha_api.get_entity(statusIcon.get("entity"))
|
entity = self._ha_api.get_entity(statusIcon.get("entity"))
|
||||||
entityType = statusIcon.get("entity").split(".")[0]
|
entityType = statusIcon.get("entity").split(".")[0]
|
||||||
icon = get_icon_id_ha(entityType, state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon)
|
icon = get_icon_id_ha(entityType, state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon)
|
||||||
color = self.get_entity_color(entity)
|
color = self.get_entity_color(entity, overwrite=statusIcon.get("color", None))
|
||||||
status_res += f"~{icon}~{color}"
|
status_res += f"~{icon}~{color}"
|
||||||
|
|
||||||
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}{altLayout}{status_res}")
|
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}{altLayout}{status_res}")
|
||||||
@@ -172,7 +172,9 @@ class LuiPagesGen(object):
|
|||||||
status_entity = self._ha_api.get_entity(item.status)
|
status_entity = self._ha_api.get_entity(item.status)
|
||||||
icon_color = self.get_entity_color(status_entity)
|
icon_color = self.get_entity_color(status_entity)
|
||||||
if item.status.startswith("sensor") and cardType == "cardGrid":
|
if item.status.startswith("sensor") and cardType == "cardGrid":
|
||||||
icon_id = status_entity.state
|
icon_id = status_entity.state[:4]
|
||||||
|
if icon_id[-1] == ".":
|
||||||
|
icon_id = icon_id[:-1]
|
||||||
else:
|
else:
|
||||||
icon_color = 17299
|
icon_color = 17299
|
||||||
return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}"
|
return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}"
|
||||||
@@ -272,7 +274,7 @@ class LuiPagesGen(object):
|
|||||||
icon_id = get_icon_id_ha("input_text", overwrite=icon)
|
icon_id = get_icon_id_ha("input_text", overwrite=icon)
|
||||||
value = entity.state
|
value = entity.state
|
||||||
return f"~text~{entityId}~{icon_id}~17299~{name}~{value}"
|
return f"~text~{entityId}~{icon_id}~17299~{name}~{value}"
|
||||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~error~"
|
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~unsupported~"
|
||||||
|
|
||||||
def generate_entities_page(self, navigation, heading, items, cardType):
|
def generate_entities_page(self, navigation, heading, items, cardType):
|
||||||
command = f"entityUpd~{heading}~{navigation}"
|
command = f"entityUpd~{heading}~{navigation}"
|
||||||
@@ -509,8 +511,8 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
def generate_light_detail_page(self, entity):
|
def generate_light_detail_page(self, entity_id):
|
||||||
entity = self._ha_api.get_entity(entity)
|
entity = self._ha_api.get_entity(entity_id)
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
icon_color = self.get_entity_color(entity)
|
icon_color = self.get_entity_color(entity)
|
||||||
brightness = "disable"
|
brightness = "disable"
|
||||||
@@ -538,10 +540,10 @@ class LuiPagesGen(object):
|
|||||||
color_translation = "Color"
|
color_translation = "Color"
|
||||||
brightness_translation = get_translation(self._locale, "frontend.ui.card.light.brightness")
|
brightness_translation = get_translation(self._locale, "frontend.ui.card.light.brightness")
|
||||||
color_temp_translation = get_translation(self._locale, "frontend.ui.card.light.color_temperature")
|
color_temp_translation = get_translation(self._locale, "frontend.ui.card.light.color_temperature")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}")
|
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}")
|
||||||
|
|
||||||
def generate_shutter_detail_page(self, entity):
|
def generate_shutter_detail_page(self, entity_id):
|
||||||
entity = self._ha_api.get_entity(entity)
|
entity = self._ha_api.get_entity(entity_id)
|
||||||
entityType="cover"
|
entityType="cover"
|
||||||
device_class = entity.attributes.get("device_class", "window")
|
device_class = entity.attributes.get("device_class", "window")
|
||||||
icon_id = get_icon_id_ha(entityType, state=entity.state, device_class=device_class)
|
icon_id = get_icon_id_ha(entityType, state=entity.state, device_class=device_class)
|
||||||
@@ -572,7 +574,7 @@ class LuiPagesGen(object):
|
|||||||
icon_down_status = "disable"
|
icon_down_status = "disable"
|
||||||
|
|
||||||
pos_translation = get_translation(self._locale, "frontend.ui.card.cover.position")
|
pos_translation = get_translation(self._locale, "frontend.ui.card.cover.position")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}: {pos_status}~{pos_translation}~{icon_id}~{icon_up}~{icon_stop}~{icon_down}~{icon_up_status}~{icon_stop_status}~{icon_down_status}")
|
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}")
|
||||||
|
|
||||||
def send_message_page(self, ident, heading, msg, b1, b2):
|
def send_message_page(self, ident, heading, msg, b1, b2):
|
||||||
self._send_mqtt_msg(f"pageType~popupNotify")
|
self._send_mqtt_msg(f"pageType~popupNotify")
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ default_screensaver_color_mapping = {
|
|||||||
"tForecast4Val": "65535",
|
"tForecast4Val": "65535",
|
||||||
"bar": "65535",
|
"bar": "65535",
|
||||||
"tMRIcon": "65535",
|
"tMRIcon": "65535",
|
||||||
"tMR": "65535"
|
"tMR": "65535",
|
||||||
|
"tTimeAdd": "65535"
|
||||||
}
|
}
|
||||||
|
|
||||||
default_weather_icon_color_mapping = {
|
default_weather_icon_color_mapping = {
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
|||||||
|
|
||||||
controller = LuiController(self, cfg, send_mqtt_msg)
|
controller = LuiController(self, cfg, send_mqtt_msg)
|
||||||
|
|
||||||
desired_display_firmware_version = 37
|
desired_display_firmware_version = 38
|
||||||
version = "v3.0.0"
|
version = "v3.1.0"
|
||||||
|
|
||||||
model = cfg.get("model")
|
model = cfg.get("model")
|
||||||
if model == "us-l":
|
if model == "us-l":
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 985 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
@@ -1,4 +1,4 @@
|
|||||||
# Alarm Card
|
# Media Card
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -16,4 +16,4 @@ key | optional | type | default | description
|
|||||||
`title` | True | string | `None` | Title of the Page
|
`title` | True | string | `None` | Title of the Page
|
||||||
`entity` | False | string | `None` | contains the entity of the current card
|
`entity` | False | string | `None` | contains the entity of the current card
|
||||||
`key` | True | string | `None` | Used by navigate items
|
`key` | True | string | `None` | Used by navigate items
|
||||||
`alarmControl` | True | complex | `None` | overwrites the action executed on pressing the left bottom icon, by default this button is used to show a list of open sensors on a failed attempt to arm.
|
`mediaControl` | True | complex | `None` | overwrites the action executed on pressing the left upper icon (red circle), icon is showing the current type of media and cannot be changed
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ key | optional | type | default | description
|
|||||||
`locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization.
|
`locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization.
|
||||||
`dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
|
`dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
|
||||||
`timeFormat` | True | string | `%H:%M` | Time Format on screensaver. Substring after `?` is displayed in a seperate smaller textbox. Useful for 12h time format with AM/PM <pre>`"%I:%M ?%p"`</pre>
|
`timeFormat` | True | string | `%H:%M` | Time Format on screensaver. Substring after `?` is displayed in a seperate smaller textbox. Useful for 12h time format with AM/PM <pre>`"%I:%M ?%p"`</pre>
|
||||||
`dateAdditonalTemplate` | True | string | `""` | Addional Text dispayed after Date, can contain a Homeassistant Template Example `" - {{ states('sun.sun') }}"`
|
`dateAdditionalTemplate` | True | string | `""` | Addional Text dispayed after Date, can contain a Homeassistant Template Example `" - {{ states('sun.sun') }}"`
|
||||||
`timeAdditonalTemplate` | True | string | `""` | Addional Text dispayed below Time, can contain a Homeassistant Template
|
`timeAdditionalTemplate` | True | string | `""` | Addional Text dispayed below Time, can contain a Homeassistant Template
|
||||||
`dateFormat` | True | string | `%A, %d. %B %Y` | date format used if babel is not installed
|
`dateFormat` | True | string | `%A, %d. %B %Y` | date format used if babel is not installed
|
||||||
`cards` | False | complex | | configuration for cards that are displayed on panel; see docs for cards
|
`cards` | False | complex | | configuration for cards that are displayed on panel; see docs for cards
|
||||||
`screensaver` | True | complex | | configuration for screensaver; see docs for screensaver
|
`screensaver` | True | complex | | configuration for screensaver; see docs for screensaver
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ Example for the theme config:
|
|||||||
#bar: [220, 0, 255]
|
#bar: [220, 0, 255]
|
||||||
#tMRIcon: [220, 0, 255]
|
#tMRIcon: [220, 0, 255]
|
||||||
#tMR: [220, 0, 255]
|
#tMR: [220, 0, 255]
|
||||||
|
#tTimeAdd: [220, 0, 255]
|
||||||
|
|
||||||
#autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable.
|
#autoWeather automatically colors the screensaver weather icons based upon weather. Uncomment the following line to enable.
|
||||||
#autoWeather: true
|
#autoWeather: true
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ It is also possible to configure different icon overwrites per state:
|
|||||||
"off": mdi:lightbulb
|
"off": mdi:lightbulb
|
||||||
```
|
```
|
||||||
|
|
||||||
# Hide item based on state
|
## Hide item based on state
|
||||||
|
|
||||||
This sensor will only be shown on the card if it's state is equal to `off`
|
This sensor will only be shown on the card if it's state is equal to `off`
|
||||||
|
|
||||||
|
|||||||
22
docs/faq.md
@@ -2,7 +2,27 @@
|
|||||||
|
|
||||||
## Waiting for content - This is taking longer than usual on the screen
|
## Waiting for content - This is taking longer than usual on the screen
|
||||||
|
|
||||||
Please check your MQTT Topics in your apps.yaml and your mqtt configuration on tasmota.
|
You have most likely an error in your MQTT configuration somewhere. To find the error follow theese steps:
|
||||||
|
|
||||||
|
1. Check your appdaemon log. (Settings > Add-ons > AppDaemon > Log)
|
||||||
|
You should see something like this:
|
||||||
|
`INFO MQTT: MQTT Plugin initialization complete`
|
||||||
|
If you are seeing Messages like this:
|
||||||
|
`CRITICAL MQTT: Could not complete MQTT Plugin initialization, for Connection was refused due to Not Authorised`
|
||||||
|
Your appdaemon mqtt config is wrong, check your appdaemon.yaml.
|
||||||
|
The log of your mqtt broker might give you additional information.
|
||||||
|
|
||||||
|
2. Check MQTT Configuration of Tasmota.
|
||||||
|
Your Tasmota device needs to connect sucessfully to your MQTT Broker, if you are in the waiting for content screen, the panel will send periodic messages to it's mqtt topic.
|
||||||
|
|
||||||
|
3. Make sure that you are using the same topic in apps.yaml and in your tasmota configuration.
|
||||||
|
The example values are an working example. Please don't modify the Full Topic. [MQTT Config](https://docs.nspanel.pky.eu/configure_mqtt/)
|
||||||
|
|
||||||
|
4. If you are still in the waiting for content screen please share the following items:
|
||||||
|
- a screenshot of your tasmota mqtt configration (please censor your mqtt password)
|
||||||
|
- your appdaemon.yaml (please censor your mqtt password)
|
||||||
|
- your apps.yaml
|
||||||
|
- the appdaemon log, after restarting the container
|
||||||
|
|
||||||
## How to update
|
## How to update
|
||||||
|
|
||||||
|
|||||||
BIN
docs/img/card-alarm.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
docs/img/card-media.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
docs/img/card-qr.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
@@ -1,6 +1,6 @@
|
|||||||
# Flash Tasmota to your NSPanel
|
# Flash Tasmota to your NSPanel
|
||||||
|
|
||||||
You need to connect to your nspanel via serial and flash tasmtoa [tasmota32-nspanel.factory.bin](https://tasmota.github.io/install/firmware/development/tasmota32-nspanel.factory.bin) to your NSPanel.
|
You need to connect to your nspanel via serial and flash tasmtoa [tasmota32-nspanel.bin](https://tasmota.github.io/install/firmware/development/tasmota32-nspanel.bin) to your NSPanel.
|
||||||
You can use the Tasmota Web Installer to do so. [Tasmota Web Installer](https://tasmota.github.io/install/)
|
You can use the Tasmota Web Installer to do so. [Tasmota Web Installer](https://tasmota.github.io/install/)
|
||||||
|
|
||||||
Checkout Blakadders Template Repo for more information on flashing, do not use the autoexec.be from this page.
|
Checkout Blakadders Template Repo for more information on flashing, do not use the autoexec.be from this page.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Flash Tasmota to your NSPanel
|
# Flash Tasmota to your NSPanel
|
||||||
|
|
||||||
You need to connect to your nspanel via serial and flash tasmtoa [tasmota32-nspanel.factory.bin](https://tasmota.github.io/install/firmware/development/tasmota32-nspanel.factory.bin) to your NSPanel.
|
You need to connect to your nspanel via serial and flash tasmtoa [tasmota32-nspanel.bin](https://tasmota.github.io/install/firmware/development/tasmota32-nspanel.bin) to your NSPanel.
|
||||||
You can use the Tasmota Web Installer to do so. [Tasmota Web Installer](https://tasmota.github.io/install/)
|
You can use the Tasmota Web Installer to do so. [Tasmota Web Installer](https://tasmota.github.io/install/)
|
||||||
|
|
||||||
Checkout Blakadders Template Repo for more information on flashing, do not use the autoexec.be from this page.
|
Checkout Blakadders Template Repo for more information on flashing, do not use the autoexec.be from this page.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
TypeScript zur Steuerung des SONOFF NSPanel mit dem ioBroker
|
TypeScript zur Steuerung des SONOFF NSPanel mit dem ioBroker
|
||||||
- abgestimmt auf TFT 36 / v2.9.0 / BerryDriver 4 / Tasmota 11.1.0
|
- abgestimmt auf TFT 37 / v3.0.0 / BerryDriver 4 / Tasmota 11.1.0
|
||||||
joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker
|
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
|
NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts
|
||||||
icon_mapping.ts: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/icon_mapping.ts (TypeScript muss in global liegen)
|
icon_mapping.ts: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/icon_mapping.ts (TypeScript muss in global liegen)
|
||||||
@@ -13,11 +13,11 @@ ReleaseNotes:
|
|||||||
- 08.05.2022 - Menüpfeile bei HardwareButtons (button1Page; button2Page) mit Navigation auf Page 0
|
- 08.05.2022 - Menüpfeile bei HardwareButtons (button1Page; button2Page) mit Navigation auf Page 0
|
||||||
- 08.05.2022 - Standard-Brightness über neuen Parameter active einstellbar (Test mit 2.9.3)
|
- 08.05.2022 - Standard-Brightness über neuen Parameter active einstellbar (Test mit 2.9.3)
|
||||||
- 08.05.2022 - Schalter (Licht, Dimmer, Hue, etc) in cardGrid lassen sich wieder schalten
|
- 08.05.2022 - Schalter (Licht, Dimmer, Hue, etc) in cardGrid lassen sich wieder schalten
|
||||||
- 13.06.2022 - GitHub Issue #277 - HandleMessage -> pageOpenDetail does not work for Sub-Page
|
- 14.06.2022 - Aktion auf Submenüs schaltet unmittelbar auf vorheriges Mainmenu (Many thanks to Grrzzz)
|
||||||
|
- 14.06.2022 - Menü-Pfeile in Subpages (z.B. card QR, cardMedia, etc) (Many thanks to Grrzzz)
|
||||||
Known-Bugs --> Bugfix folgt:
|
- 15.06.2022 - Date/Time im Screensaver auf Basis localString (de-DE/en-EN/nl-NL/etc.)
|
||||||
- Aktion auf Submenüs schaltet unmittelbar auf vorheriges Mainmenu
|
- 16.06.2022 - Multilingual - config.locale (en-EN, de-DE, nl-NL, da-DK, es-ES, fr-FR, it-IT, ru-RU)
|
||||||
- Menü-Pfeile in Subpages (z.B. card QR, cardMedia, etc)
|
- 16.06.2022 - Bugfix by Grrzzz - Subpages
|
||||||
|
|
||||||
Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Releais) genutzt werden
|
Wenn Rule definiert, dann können die Hardware-Tasten ebenfalls für Seitensteuerung (dann nicht mehr als Releais) genutzt werden
|
||||||
Tasmota Konsole:
|
Tasmota Konsole:
|
||||||
@@ -71,10 +71,8 @@ Interne Sonoff-Sensoren (über Tasmota):
|
|||||||
(!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!!
|
(!!! Achtung: der interne Sonoff-Sensor liefert keine exakten Daten, da das NSPanel-Board und der ESP selbst Hitze produzieren !!!
|
||||||
ggf. Offset einplanen oder besser einen externen Sensor über Zigbee etc. verwenden)
|
ggf. Offset einplanen oder besser einen externen Sensor über Zigbee etc. verwenden)
|
||||||
Timestamp - wird in 0_userdata.0. Zeitpunkt der letzten Sensorübertragung
|
Timestamp - wird in 0_userdata.0. Zeitpunkt der letzten Sensorübertragung
|
||||||
|
|
||||||
Tasmota-Status0 - (zyklische Ausführung)
|
Tasmota-Status0 - (zyklische Ausführung)
|
||||||
liefert relevanten Tasmota-Informationen und kann bei Bedarf in "function get_tasmota_status0()" erweitert werden. Daten werden in 0_userdata.0. abgelegt
|
liefert relevanten Tasmota-Informationen und kann bei Bedarf in "function get_tasmota_status0()" erweitert werden. Daten werden in 0_userdata.0. abgelegt
|
||||||
|
|
||||||
Erforderliche Adapter:
|
Erforderliche Adapter:
|
||||||
Accu-Wheater: - Bei Nutzung der Wetterfunktionen (und zur Icon-Konvertierung) im Screensaver
|
Accu-Wheater: - Bei Nutzung der Wetterfunktionen (und zur Icon-Konvertierung) im Screensaver
|
||||||
Alexa2: - Bei Nutzung der dynamischen SpeakerList in der cardMedia
|
Alexa2: - Bei Nutzung der dynamischen SpeakerList in der cardMedia
|
||||||
@@ -82,10 +80,9 @@ Erforderliche Adapter:
|
|||||||
Alias-Manager - !!! ausschießlich für MEDIA-Alias
|
Alias-Manager - !!! ausschießlich für MEDIA-Alias
|
||||||
MQTT-Adapter - Für Kommunikation zwischen Skript und Tasmota
|
MQTT-Adapter - Für Kommunikation zwischen Skript und Tasmota
|
||||||
JavaScript-Adapter
|
JavaScript-Adapter
|
||||||
|
|
||||||
Upgrades in Konsole:
|
Upgrades in Konsole:
|
||||||
Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1
|
Tasmota BerryDriver : Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1
|
||||||
TFT EU STABLE Version : FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v2.9.0.tft
|
TFT EU STABLE Version : FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v3.0.0.tft
|
||||||
---------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
var Icons = new IconsSelector();
|
var Icons = new IconsSelector();
|
||||||
@@ -94,8 +91,9 @@ const NSPanel_Path = "0_userdata.0.NSPanel.1."
|
|||||||
const Debug = false;
|
const Debug = false;
|
||||||
var manually_Update = true;
|
var manually_Update = true;
|
||||||
|
|
||||||
const Months = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"];
|
//const Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
||||||
const Days = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"];
|
//const Days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
||||||
|
|
||||||
//const Off: RGB = { red: 68, green: 115, blue: 158 }; //Blau-Off
|
//const Off: RGB = { red: 68, green: 115, blue: 158 }; //Blau-Off
|
||||||
const Off: RGB = { red: 253, green: 128, blue: 0 }; //Orange-Off - schönere Farbübergänge
|
const Off: RGB = { red: 253, green: 128, blue: 0 }; //Orange-Off - schönere Farbübergänge
|
||||||
const On: RGB = { red: 253, green: 216, blue: 53 };
|
const On: RGB = { red: 253, green: 216, blue: 53 };
|
||||||
@@ -180,6 +178,7 @@ var Test_Licht: PageEntities =
|
|||||||
"heading": "Color Aliase",
|
"heading": "Color Aliase",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Test_Licht,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TestRGBLichteinzeln", name: "RGB-Licht Hex-Color", interpolateColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.TestRGBLichteinzeln", name: "RGB-Licht Hex-Color", interpolateColor: true},
|
||||||
//<PageItem>{ id: "alias.0.NSPanel_1.TestFarbtemperatur", name: "Farbtemperatur", interpolateColor: true},
|
//<PageItem>{ id: "alias.0.NSPanel_1.TestFarbtemperatur", name: "Farbtemperatur", interpolateColor: true},
|
||||||
@@ -195,6 +194,7 @@ var Test_Funktionen: PageEntities =
|
|||||||
"heading": "Sonstige Aliase",
|
"heading": "Sonstige Aliase",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Test_Funktionen,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TestLautstärke", offColor: MSRed /*if mute=true*/, onColor: MSGreen ,name: "Echo Spot Büro", minValue: 0, maxValue: 100},
|
<PageItem>{ id: "alias.0.NSPanel_1.TestLautstärke", offColor: MSRed /*if mute=true*/, onColor: MSGreen ,name: "Echo Spot Büro", minValue: 0, maxValue: 100},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TestTemperatur",name: "Temperatur außen", icon: "thermometer", onColor: White},
|
<PageItem>{ id: "alias.0.NSPanel_1.TestTemperatur",name: "Temperatur außen", icon: "thermometer", onColor: White},
|
||||||
@@ -209,6 +209,7 @@ var Buero_Seite_1: PageEntities =
|
|||||||
"heading": "Büro",
|
"heading": "Büro",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Buero_Seite_1,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe", interpolateColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe", interpolateColor: true},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung", interpolateColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung", interpolateColor: true},
|
||||||
@@ -223,6 +224,7 @@ var Fenster_1: PageEntities =
|
|||||||
"heading": "Fenster und Türen",
|
"heading": "Fenster und Türen",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Fenster_1,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TestFenster", offColor: MSRed, onColor: MSGreen, name: "Büro Fenster"},
|
<PageItem>{ id: "alias.0.NSPanel_1.TestFenster", offColor: MSRed, onColor: MSGreen, name: "Büro Fenster"},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Haustuer", offColor: MSRed, onColor: MSGreen, name: "Haustür"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Haustuer", offColor: MSRed, onColor: MSGreen, name: "Haustür"},
|
||||||
@@ -237,6 +239,7 @@ var Button_1: PageEntities =
|
|||||||
"heading": "Button Aliase",
|
"heading": "Button Aliase",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Button_1,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TestTastensensor", name: "Tastensensor (FFN)"},
|
<PageItem>{ id: "alias.0.NSPanel_1.TestTastensensor", name: "Tastensensor (FFN)"},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Radio.NDR2", icon: "radio", name: "Taste (NDR2)", onColor: colorRadio},
|
<PageItem>{ id: "alias.0.NSPanel_1.Radio.NDR2", icon: "radio", name: "Taste (NDR2)", onColor: colorRadio},
|
||||||
@@ -249,6 +252,7 @@ var Subpages_1: PageEntities =
|
|||||||
"heading": "Test Subpages",
|
"heading": "Test Subpages",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Subpages_1,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ navigate: true, id: "Abfall", onColor: White, name: "Abfallkalender"},
|
<PageItem>{ navigate: true, id: "Abfall", onColor: White, name: "Abfallkalender"},
|
||||||
<PageItem>{ navigate: true, id: "WLAN", onColor: White, name: "Gäste WLAN"},
|
<PageItem>{ navigate: true, id: "WLAN", onColor: White, name: "Gäste WLAN"},
|
||||||
@@ -262,6 +266,7 @@ var Abfall: PageEntities =
|
|||||||
"heading": "Abfallkalender",
|
"heading": "Abfallkalender",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": true,
|
"subPage": true,
|
||||||
|
"parent": Subpages_1,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Abfall.event1",icon: "trash-can"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Abfall.event1",icon: "trash-can"},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Abfall.event2",icon: "trash-can"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Abfall.event2",icon: "trash-can"},
|
||||||
@@ -276,6 +281,7 @@ var Buero_Seite_2: PageGrid =
|
|||||||
"heading": "Büro 2",
|
"heading": "Büro 2",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Buero_Seite_2,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe", name: "Schreibtisch"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe", name: "Schreibtisch"},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung", name: "Deckenlampe"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung", name: "Deckenlampe"},
|
||||||
@@ -292,6 +298,7 @@ var Alexa: PageMedia =
|
|||||||
"heading": "Alexa",
|
"heading": "Alexa",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Alexa,
|
||||||
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Alexa.PlayerBuero" }]
|
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Alexa.PlayerBuero" }]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -301,6 +308,7 @@ var Buero_Themostat: PageThermo =
|
|||||||
"heading": "Test Thermostat",
|
"heading": "Test Thermostat",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Buero_Themostat,
|
||||||
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Thermostat_Büro", minValue: 50, maxValue: 300 }]
|
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Thermostat_Büro", minValue: 50, maxValue: 300 }]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -310,6 +318,7 @@ var Buero_Klimaanlage: PageThermo =
|
|||||||
"heading": "Test Klimaanlage",
|
"heading": "Test Klimaanlage",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Buero_Klimaanlage,
|
||||||
"items": [<PageItem>{ id: "alias.0.NSPanel_1.TestKlimaanlage", minValue: 170, maxValue: 250}]
|
"items": [<PageItem>{ id: "alias.0.NSPanel_1.TestKlimaanlage", minValue: 170, maxValue: 250}]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -320,6 +329,7 @@ var WLAN: PageQR =
|
|||||||
"heading": "Gäste WLAN",
|
"heading": "Gäste WLAN",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": true,
|
"subPage": true,
|
||||||
|
"parent": Subpages_1,
|
||||||
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Guest_Wifi" }]
|
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Guest_Wifi" }]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -329,6 +339,7 @@ var Buero_Alarm: PageAlarm =
|
|||||||
"heading": "Alarm",
|
"heading": "Alarm",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Buero_Alarm,
|
||||||
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Alarm" }]
|
"items": [<PageItem>{ id: "alias.0.NSPanel_1.Alarm" }]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -338,6 +349,7 @@ var button1Page: PageGrid =
|
|||||||
"heading": "Radio",
|
"heading": "Radio",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": button1Page,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Radio.FFN", icon: "radio", name: "FFN", onColor: colorRadio},
|
<PageItem>{ id: "alias.0.NSPanel_1.Radio.FFN", icon: "radio", name: "FFN", onColor: colorRadio},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Radio.Antenne" , icon: "radio", name: "Antenne Nds.", onColor: colorRadio},
|
<PageItem>{ id: "alias.0.NSPanel_1.Radio.Antenne" , icon: "radio", name: "Antenne Nds.", onColor: colorRadio},
|
||||||
@@ -354,6 +366,7 @@ var button2Page: PageEntities =
|
|||||||
"heading": "Büro",
|
"heading": "Büro",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": button2Page,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe"},
|
<PageItem>{ id: "alias.0.NSPanel_1.Schreibtischlampe"},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung"}
|
<PageItem>{ id: "alias.0.NSPanel_1.Deckenbeleuchtung"}
|
||||||
@@ -367,6 +380,7 @@ var Service: PageEntities =
|
|||||||
"heading": "NSPanel Service",
|
"heading": "NSPanel Service",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": false,
|
"subPage": false,
|
||||||
|
"parent": Service,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_AutoUpdate", name: "Auto-Updates" ,icon: "update", offColor: MSRed, onColor: MSGreen},
|
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_AutoUpdate", name: "Auto-Updates" ,icon: "update", offColor: MSRed, onColor: MSGreen},
|
||||||
<PageItem>{ navigate: true, id: "NSPanel_Infos", icon: "information-outline", onColor: White, name: "NSPanel Infos"},
|
<PageItem>{ navigate: true, id: "NSPanel_Infos", icon: "information-outline", onColor: White, name: "NSPanel Infos"},
|
||||||
@@ -382,6 +396,7 @@ var NSPanel_Infos: PageEntities =
|
|||||||
"heading": "NSPanel Infos",
|
"heading": "NSPanel Infos",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": true,
|
"subPage": true,
|
||||||
|
"parent": Service,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_Hardware", name: "Hardware", icon: "memory", offColor: MSYellow, onColor: MSYellow, useColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_Hardware", name: "Hardware", icon: "memory", offColor: MSYellow, onColor: MSYellow, useColor: true},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_ESP_Temp", name: "ESP Temperatur", icon: "thermometer", unit: "°C", offColor: MSYellow, onColor: MSYellow, useColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.NSPanel_ESP_Temp", name: "ESP Temperatur", icon: "thermometer", unit: "°C", offColor: MSYellow, onColor: MSYellow, useColor: true},
|
||||||
@@ -397,6 +412,7 @@ var NSPanel_Einstellungen: PageEntities =
|
|||||||
"heading": "Screensaver",
|
"heading": "Screensaver",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": true,
|
"subPage": true,
|
||||||
|
"parent": Service,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Dimmode_BrightnessDay", name: "Brightness Tag", icon: "brightness-5", offColor: MSYellow, onColor: MSYellow, useColor: true, minValue: 5, maxValue: 10},
|
<PageItem>{ id: "alias.0.NSPanel_1.Dimmode_BrightnessDay", name: "Brightness Tag", icon: "brightness-5", offColor: MSYellow, onColor: MSYellow, useColor: true, minValue: 5, maxValue: 10},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Dimmode_BrightnessNight", name: "Brightness Nacht", icon: "brightness-4", offColor: MSYellow, onColor: MSYellow, useColor: true, minValue: 0, maxValue: 4},
|
<PageItem>{ id: "alias.0.NSPanel_1.Dimmode_BrightnessNight", name: "Brightness Nacht", icon: "brightness-4", offColor: MSYellow, onColor: MSYellow, useColor: true, minValue: 0, maxValue: 4},
|
||||||
@@ -412,6 +428,7 @@ var NSPanel_Firmware_Updates: PageEntities =
|
|||||||
"heading": "Firmware-Updates",
|
"heading": "Firmware-Updates",
|
||||||
"useColor": true,
|
"useColor": true,
|
||||||
"subPage": true,
|
"subPage": true,
|
||||||
|
"parent": Service,
|
||||||
"items": [
|
"items": [
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.Tasmota_Version", name: "Tasmota Firmware", useColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.Tasmota_Version", name: "Tasmota Firmware", useColor: true},
|
||||||
<PageItem>{ id: "alias.0.NSPanel_1.TFT_Firmware", name: "TFT-Firmware", useColor: true},
|
<PageItem>{ id: "alias.0.NSPanel_1.TFT_Firmware", name: "TFT-Firmware", useColor: true},
|
||||||
@@ -429,9 +446,9 @@ export const config: Config = {
|
|||||||
dimmode: 8,
|
dimmode: 8,
|
||||||
active: 100, //Standard-Brightness TFT
|
active: 100, //Standard-Brightness TFT
|
||||||
screenSaverDoubleClick: false,
|
screenSaverDoubleClick: false,
|
||||||
locale: "de_DE",
|
locale: "en-EN", //en-EN, de-DE, nl-NL, da-DK, es-ES, fr-FR, it-IT, ru-RU
|
||||||
timeFormat: "%H:%M",
|
timeFormat: "%H:%M", //currently not used
|
||||||
dateFormat: "%A, %d. %B %Y",
|
dateFormat: "%A, %d. %B %Y", //currently not used
|
||||||
weatherEntity: "alias.0.Wetter",
|
weatherEntity: "alias.0.Wetter",
|
||||||
defaultOffColor: Off,
|
defaultOffColor: Off,
|
||||||
defaultOnColor: On,
|
defaultOnColor: On,
|
||||||
@@ -494,7 +511,7 @@ var screensaverEnabled : boolean = false;
|
|||||||
var pageId = 0;
|
var pageId = 0;
|
||||||
|
|
||||||
//Neu für Subpages
|
//Neu für Subpages
|
||||||
var subPage_open = false;
|
var activePage = undefined;
|
||||||
|
|
||||||
schedule("* * * * *", function () {
|
schedule("* * * * *", function () {
|
||||||
SendTime();
|
SendTime();
|
||||||
@@ -526,15 +543,29 @@ schedule("*/30 * * * *", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Mit Start auf Updates checken
|
//Mit Start auf Updates checken
|
||||||
|
get_locales();
|
||||||
setState(config.panelSendTopic, 'pageType~pageStartup');
|
setState(config.panelSendTopic, 'pageType~pageStartup');
|
||||||
get_tasmota_status0()
|
get_tasmota_status0();
|
||||||
get_panel_update_data();
|
get_panel_update_data();
|
||||||
check_updates();
|
check_updates();
|
||||||
|
|
||||||
//------------------Begin Update Functions
|
//------------------Begin Update Functions
|
||||||
|
|
||||||
|
function get_locales() {
|
||||||
|
exec('curl https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/ioBroker/ioBroker_NSPanel_locales.json', function (error, result, stderr){
|
||||||
|
if (result) {
|
||||||
|
let BerryDriverVersionOnline = result.substring((result.indexOf("version_of_this_script = ") + 24), result.indexOf("version_of_this_script = ") + 27).replace(/\s+/g, '');
|
||||||
|
createState(NSPanel_Path + "NSPanel_locales_json");
|
||||||
|
var timer = setTimeout(function() {
|
||||||
|
setIfExists(NSPanel_Path + 'NSPanel_locales_json', result);
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function check_updates() {
|
function check_updates() {
|
||||||
|
|
||||||
const desired_display_firmware_version = 36;
|
const desired_display_firmware_version = 37;
|
||||||
const berry_driver_version = 4;
|
const berry_driver_version = 4;
|
||||||
|
|
||||||
if (Debug) console.log("Check-Updates");
|
if (Debug) console.log("Check-Updates");
|
||||||
@@ -768,7 +799,7 @@ function update_berry_driver_version() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function update_tft_firmware() {
|
function update_tft_firmware() {
|
||||||
const tft_version : string = "v2.9.0";
|
const tft_version : string = "v3.0.0";
|
||||||
var desired_display_firmware_url = "http://nspanel.pky.eu/lovelace-ui/github/nspanel-" + tft_version + ".tft"
|
var desired_display_firmware_url = "http://nspanel.pky.eu/lovelace-ui/github/nspanel-" + tft_version + ".tft"
|
||||||
require("request")((['http://',get_current_tasmota_ip_address(),'/cm?cmnd=FlashNextion ', desired_display_firmware_url].join('')), async function (error, response, result) {
|
require("request")((['http://',get_current_tasmota_ip_address(),'/cm?cmnd=FlashNextion ', desired_display_firmware_url].join('')), async function (error, response, result) {
|
||||||
createState(NSPanel_Path + "TFT_Firmware.onlineVersion");
|
createState(NSPanel_Path + "TFT_Firmware.onlineVersion");
|
||||||
@@ -849,21 +880,9 @@ function HandleMessage(typ: string, method: string, page: number, words: Array<s
|
|||||||
case "pageOpenDetail":
|
case "pageOpenDetail":
|
||||||
screensaverEnabled = false;
|
screensaverEnabled = false;
|
||||||
UnsubscribeWatcher();
|
UnsubscribeWatcher();
|
||||||
let pageItem = config.pages[pageId].items.find(e => e.id === words[3]);
|
let pageItem = findPageItem(words[3]);
|
||||||
if (pageItem !== undefined)
|
if (pageItem !== undefined)
|
||||||
SendToPanel(GenerateDetailPage(words[2], pageItem));
|
SendToPanel(GenerateDetailPage(words[2], pageItem));
|
||||||
else {
|
|
||||||
config.subPages.every (sp => {
|
|
||||||
let pageItem = sp.items.find(e => e.id === words[3]);
|
|
||||||
if (pageItem !== undefined) {
|
|
||||||
SendToPanel(GenerateDetailPage(words[2], pageItem));
|
|
||||||
console.log(words[2] + " - " + pageItem);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
case "buttonPress2":
|
case "buttonPress2":
|
||||||
screensaverEnabled = false;
|
screensaverEnabled = false;
|
||||||
HandleButtonEvent(words);
|
HandleButtonEvent(words);
|
||||||
@@ -879,6 +898,23 @@ function HandleMessage(typ: string, method: string, page: number, words: Array<s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function findPageItem(searching: String) : PageItem {
|
||||||
|
let pageItem = activePage.items.find(e => e.id === searching);
|
||||||
|
|
||||||
|
if (pageItem !== undefined) {
|
||||||
|
return pageItem;
|
||||||
|
}
|
||||||
|
config.subPages.every (sp => {
|
||||||
|
pageItem = sp.items.find(e => e.id === searching);
|
||||||
|
if (pageItem !== undefined) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
return pageItem;
|
||||||
|
}
|
||||||
|
|
||||||
function GeneratePage(page: Page): void {
|
function GeneratePage(page: Page): void {
|
||||||
switch (page.type) {
|
switch (page.type) {
|
||||||
case "cardEntities":
|
case "cardEntities":
|
||||||
@@ -926,27 +962,32 @@ function HandleStartupProcess(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SendDate(): void {
|
function SendDate(): void {
|
||||||
|
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var day = Days[d.getDay()];
|
|
||||||
var date = d.getDate();
|
|
||||||
var month = Months[d.getMonth()];
|
|
||||||
var year = d.getFullYear();
|
var year = d.getFullYear();
|
||||||
var _sendDate = "date~" + day + " " + date + " " + month + " " + year;
|
var month = d.getMonth();
|
||||||
SendToPanel(<Payload>{ payload: _sendDate });
|
var day = d.getDate();
|
||||||
|
const date = new Date(year,month,day,1,1,1);
|
||||||
|
const options : any = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
||||||
|
var _SendDate = date.toLocaleDateString(config.locale, options);
|
||||||
|
|
||||||
|
SendToPanel(<Payload>{ payload: "date~" + _SendDate });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function SendTime(): void {
|
function SendTime(): void {
|
||||||
var d = new Date();
|
|
||||||
var hr = d.getHours().toString();
|
|
||||||
var min = d.getMinutes().toString();
|
|
||||||
|
|
||||||
if (d.getHours() < 10) {
|
var d = new Date();
|
||||||
hr = "0" + d.getHours().toString();
|
var year = d.getFullYear();
|
||||||
}
|
var month = d.getMonth();
|
||||||
if (d.getMinutes() < 10) {
|
var day = d.getDate();
|
||||||
min = "0" + d.getMinutes().toString();
|
var hr = d.getHours();
|
||||||
}
|
var min = d.getMinutes();
|
||||||
SendToPanel(<Payload>{ payload: "time~" + hr + ":" + min });
|
const date = new Date(year, month, day, hr, min, 1);
|
||||||
|
|
||||||
|
var _SendTime = date.toLocaleTimeString(config.locale, { hour: '2-digit', minute: '2-digit', hour12: false});
|
||||||
|
|
||||||
|
SendToPanel(<Payload>{ payload: "time~" + _SendTime });
|
||||||
}
|
}
|
||||||
|
|
||||||
function ScreensaverDimmode() {
|
function ScreensaverDimmode() {
|
||||||
@@ -976,6 +1017,7 @@ function GenerateGridPage(page: PageGrid): Payload[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function GeneratePageElements(page: Page): string {
|
function GeneratePageElements(page: Page): string {
|
||||||
|
activePage = page;
|
||||||
let maxItems = 0;
|
let maxItems = 0;
|
||||||
switch (page.type) {
|
switch (page.type) {
|
||||||
case "cardThermo":
|
case "cardThermo":
|
||||||
@@ -1000,22 +1042,10 @@ function GeneratePageElements(page: Page): string {
|
|||||||
|
|
||||||
let pageData = "entityUpd~" + page.heading + "~" + GetNavigationString(pageId);
|
let pageData = "entityUpd~" + page.heading + "~" + GetNavigationString(pageId);
|
||||||
|
|
||||||
//--------------------------------------Subpage----------------
|
|
||||||
if (page.subPage) {
|
|
||||||
subPage_open = true;
|
|
||||||
pageData = "entityUpd~" + page.heading + "~" + "1|0";
|
|
||||||
}
|
|
||||||
//---------------------------------------------------------
|
|
||||||
for (let index = 0; index < maxItems; index++) {
|
for (let index = 0; index < maxItems; index++) {
|
||||||
if (page.items[index] !== undefined) {
|
if (page.items[index] !== undefined) {
|
||||||
pageData += CreateEntity(page.items[index], index + 1, page.useColor);
|
pageData += CreateEntity(page.items[index], index + 1, page.useColor);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
else {
|
|
||||||
pageData += CreateEntity(<PageItem>{ id: "delete" }, index + 1);
|
|
||||||
//muss das wirklich? Wo erforderlich wird es mitgegeben!
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
return pageData;
|
return pageData;
|
||||||
}
|
}
|
||||||
@@ -1206,12 +1236,12 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
if (getState(pageItem.id + ".ACTUAL").val) {
|
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");
|
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);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
var windowState = "opened"
|
var windowState = findLocale("window","opened");
|
||||||
} else {
|
} else {
|
||||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == "door" ? Icons.GetIcon("door-closed") : Icons.GetIcon("window-closed-variant");
|
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");
|
//iconId = Icons.GetIcon("window-closed-variant");
|
||||||
iconColor = GetIconColor(pageItem, true, useColors);
|
iconColor = GetIconColor(pageItem, true, useColors);
|
||||||
var windowState = "closed"
|
var windowState = findLocale("window","closed");
|
||||||
}
|
}
|
||||||
RegisterEntityWatcher(pageItem.id + ".ACTUAL");
|
RegisterEntityWatcher(pageItem.id + ".ACTUAL");
|
||||||
}
|
}
|
||||||
@@ -1272,12 +1302,13 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
if (getState(pageItem.id + ".ACTUAL").val) {
|
if (getState(pageItem.id + ".ACTUAL").val) {
|
||||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lock");
|
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lock");
|
||||||
iconColor = GetIconColor(pageItem, true, useColors);
|
iconColor = GetIconColor(pageItem, true, useColors);
|
||||||
var lockState = "UNLOCK"
|
var lockState = findLocale("lock","UNLOCK")
|
||||||
} else {
|
} else {
|
||||||
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lock-open-variant");
|
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lock-open-variant");
|
||||||
iconColor = GetIconColor(pageItem, false, useColors);
|
iconColor = GetIconColor(pageItem, false, useColors);
|
||||||
var lockState = "LOCK"
|
var lockState = findLocale("lock","LOCK")
|
||||||
}
|
}
|
||||||
|
lockState = pageItem.buttonText !== undefined ? pageItem.buttonText : lockState;
|
||||||
RegisterEntityWatcher(pageItem.id + ".ACTUAL");
|
RegisterEntityWatcher(pageItem.id + ".ACTUAL");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1344,6 +1375,20 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
return "~delete~~~~~"
|
return "~delete~~~~~"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function findLocale(controlsObject: string, controlsState: string) : string {
|
||||||
|
var locale = config.locale;
|
||||||
|
var strJson = getState(NSPanel_Path + 'NSPanel_locales_json').val;
|
||||||
|
var obj = JSON.parse(strJson);
|
||||||
|
var strLocale = obj[controlsObject][controlsState][locale];
|
||||||
|
|
||||||
|
if (strLocale != undefined) {
|
||||||
|
return strLocale;
|
||||||
|
} else {
|
||||||
|
return controlsState;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function GetIconColor(pageItem: PageItem, value: (boolean | number), useColors: boolean): number {
|
function GetIconColor(pageItem: PageItem, value: (boolean | number), useColors: boolean): number {
|
||||||
// dimmer
|
// dimmer
|
||||||
if ((pageItem.useColor || useColors) && pageItem.interpolateColor && typeof (value) === "number") {
|
if ((pageItem.useColor || useColors) && pageItem.interpolateColor && typeof (value) === "number") {
|
||||||
@@ -1373,12 +1418,12 @@ function RegisterEntityWatcher(id: string): void {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
subscriptions[id] = (on({ id: id, change: 'any' }, function (data) {
|
subscriptions[id] = (on({ id: id, change: 'any' }, function (data) {
|
||||||
if(pageId >= 0)
|
|
||||||
SendToPanel({ payload: GeneratePageElements(config.pages[pageId]) });
|
|
||||||
if(pageId == -1 && config.button1Page != undefined)
|
if(pageId == -1 && config.button1Page != undefined)
|
||||||
SendToPanel({ payload: GeneratePageElements(config.button1Page) });
|
SendToPanel({ payload: GeneratePageElements(config.button1Page) });
|
||||||
if(pageId == -2 && config.button2Page != undefined)
|
if(pageId == -2 && config.button2Page != undefined)
|
||||||
SendToPanel({ payload: GeneratePageElements(config.button2Page) });
|
SendToPanel({ payload: GeneratePageElements(config.button2Page) });
|
||||||
|
if(activePage!=undefined)
|
||||||
|
SendToPanel({ payload: GeneratePageElements(activePage) });
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1613,21 +1658,23 @@ function GenerateThermoPage(page: PageThermo): Payload[] {
|
|||||||
+ name + "~" //Heading
|
+ name + "~" //Heading
|
||||||
+ GetNavigationString(pageId) + "~" //Page Navigation
|
+ GetNavigationString(pageId) + "~" //Page Navigation
|
||||||
+ id + "~" //internalNameEntiy
|
+ id + "~" //internalNameEntiy
|
||||||
+ currentTemp + "°C" + "~" //Ist-Temperatur (String)
|
+ currentTemp + config.temperatureUnit + "~" //Ist-Temperatur (String)
|
||||||
+ destTemp + "~" //Soll-Temperatur (numerisch ohne Komma)
|
+ destTemp + "~" //Soll-Temperatur (numerisch ohne Komma)
|
||||||
+ statusStr + "~" //Mode
|
+ statusStr + "~" //Mode
|
||||||
+ minTemp + "~" //Thermostat Min-Temperatur
|
+ minTemp + "~" //Thermostat Min-Temperatur
|
||||||
+ maxTemp + "~" //Thermostat Max-Temperatur
|
+ maxTemp + "~" //Thermostat Max-Temperatur
|
||||||
+ stepTemp + "~" //Schritte für Soll (5°C)
|
+ stepTemp + "~" //Schritte für Soll (5°C)
|
||||||
+ icon_res //Icons Status
|
+ icon_res //Icons Status
|
||||||
+ "Aktuell" + "~" //Bezeicher vor Aktueller Raumtemperatur
|
+ findLocale("thermostat","Currently") + "~" //Bezeicher vor Aktueller Raumtemperatur
|
||||||
+ "Status" + "~" //Bezeicner vor
|
+ findLocale("thermostat","State") + "~" //Bezeicner vor
|
||||||
+ "HVAC" + "~" //Bezeichner vor HVAC
|
+ findLocale("thermostat","Action") + "~" //Bezeichner vor HVAC
|
||||||
+ "°C"}) //Bezeichner Hinter Solltemp
|
+ config.temperatureUnit + "~" //Bezeichner hinter Solltemp
|
||||||
|
+ "" + "~" //iconTemperature
|
||||||
|
+ "" //dstTempTwoTempMode
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Debug) console.log(out_msgs);
|
if (Debug) console.log(out_msgs);
|
||||||
return out_msgs
|
return out_msgs
|
||||||
}
|
}
|
||||||
@@ -1788,6 +1835,8 @@ function GenerateAlarmPage(page: PageAlarm): Payload[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function GenerateQRPage(page: PageQR): Payload[] {
|
function GenerateQRPage(page: PageQR): Payload[] {
|
||||||
|
activePage = page;
|
||||||
|
|
||||||
var id = page.items[0].id
|
var id = page.items[0].id
|
||||||
var out_msgs: Array<Payload> = [];
|
var out_msgs: Array<Payload> = [];
|
||||||
out_msgs.push({ payload: "pageType~cardQR" });
|
out_msgs.push({ payload: "pageType~cardQR" });
|
||||||
@@ -1897,14 +1946,19 @@ function HandleButtonEvent(words): void {
|
|||||||
var pageNum = ((pageId - 1) % config.pages.length);
|
var pageNum = ((pageId - 1) % config.pages.length);
|
||||||
pageId = Math.abs(pageNum);
|
pageId = Math.abs(pageNum);
|
||||||
UnsubscribeWatcher();
|
UnsubscribeWatcher();
|
||||||
GeneratePage(config.pages[pageId]);
|
if(activePage!=undefined && activePage.parent!=undefined) {
|
||||||
|
//update pageID
|
||||||
//-------------Subpage
|
for (let i=0; i<config.pages.length; i++) {
|
||||||
if (subPage_open) {
|
if(config.pages[i] == activePage.parent) {
|
||||||
subPage_open = false;
|
pageId = i;
|
||||||
HandleButtonEvent(['event','buttonPress2','cardEntities','bNext'])
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
GeneratePage(activePage.parent);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
GeneratePage(config.pages[pageId]);
|
||||||
}
|
}
|
||||||
//--------------------------------
|
|
||||||
break;
|
break;
|
||||||
case "bExit":
|
case "bExit":
|
||||||
if (config.screenSaverDoubleClick) {
|
if (config.screenSaverDoubleClick) {
|
||||||
@@ -1913,7 +1967,7 @@ function HandleButtonEvent(words): void {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Debug) console.log("bExit: " + words[4] + " - "+ pageId)
|
if (Debug) console.log("bExit: " + words[4] + " - "+ pageId)
|
||||||
GeneratePage(config.pages[pageId]);
|
GeneratePage(activePage);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "notifyAction":
|
case "notifyAction":
|
||||||
@@ -2001,18 +2055,8 @@ function HandleButtonEvent(words): void {
|
|||||||
timeoutSlider = setTimeout(async function () {
|
timeoutSlider = setTimeout(async function () {
|
||||||
if (existsObject(id)) {
|
if (existsObject(id)) {
|
||||||
let o = getObject(id);
|
let o = getObject(id);
|
||||||
let pageItem = config.pages[pageId].items.find(e => e.id === id);
|
let pageItem = findPageItem(id);
|
||||||
if (pageItem == undefined) {
|
|
||||||
config.subPages.every (sp => {
|
|
||||||
pageItem = sp.items.find(e => e.id === id);
|
|
||||||
if (pageItem !== undefined) {
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
switch (o.common.role) {
|
switch (o.common.role) {
|
||||||
case "dimmer":
|
case "dimmer":
|
||||||
if (pageItem.minValueBrightness != undefined && pageItem.maxValueBrightness != undefined) {
|
if (pageItem.minValueBrightness != undefined && pageItem.maxValueBrightness != undefined) {
|
||||||
@@ -2040,17 +2084,7 @@ function HandleButtonEvent(words): void {
|
|||||||
case "colorTempSlider": // Armilar - Slider tickt verkehrt - Hell = 0 / Dunkel = 100 -> Korrektur
|
case "colorTempSlider": // Armilar - Slider tickt verkehrt - Hell = 0 / Dunkel = 100 -> Korrektur
|
||||||
(function () {if (timeoutSlider) {clearTimeout(timeoutSlider); timeoutSlider = null;}})();
|
(function () {if (timeoutSlider) {clearTimeout(timeoutSlider); timeoutSlider = null;}})();
|
||||||
timeoutSlider = setTimeout(async function () {
|
timeoutSlider = setTimeout(async function () {
|
||||||
let pageItem = config.pages[pageId].items.find(e => e.id === id);
|
let pageItem = findPageItem(id);
|
||||||
if (pageItem == undefined) {
|
|
||||||
config.subPages.every (sp => {
|
|
||||||
pageItem = sp.items.find(e => e.id === id);
|
|
||||||
if (pageItem !== undefined) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
if (pageItem.minValueColorTemp !== undefined && pageItem.minValueColorTemp !== undefined) {
|
if (pageItem.minValueColorTemp !== undefined && pageItem.minValueColorTemp !== undefined) {
|
||||||
let colorTempK = Math.trunc(scale(parseInt(words[4]), 0, 100, pageItem.minValueColorTemp, pageItem.maxValueColorTemp));
|
let colorTempK = Math.trunc(scale(parseInt(words[4]), 0, 100, pageItem.minValueColorTemp, pageItem.maxValueColorTemp));
|
||||||
setIfExists(id + ".TEMPERATURE", (colorTempK));
|
setIfExists(id + ".TEMPERATURE", (colorTempK));
|
||||||
@@ -2221,7 +2255,9 @@ function HandleButtonEvent(words): void {
|
|||||||
|
|
||||||
function GetNavigationString(pageId: number): string {
|
function GetNavigationString(pageId: number): string {
|
||||||
if (Debug) console.log(pageId);
|
if (Debug) console.log(pageId);
|
||||||
if (Debug) console.log(subPage_open);
|
|
||||||
|
if(activePage.subPage)
|
||||||
|
return "1|0";
|
||||||
|
|
||||||
switch (pageId) {
|
switch (pageId) {
|
||||||
case 0:
|
case 0:
|
||||||
@@ -2276,9 +2312,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ "disable" + "~" //sliderBrightnessPos
|
+ "disable" + "~" //sliderBrightnessPos
|
||||||
+ "disable" + "~" //sliderColorTempPos
|
+ "disable" + "~" //sliderColorTempPos
|
||||||
+ "disable" + "~" //colorMode
|
+ "disable" + "~" //colorMode
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
}
|
}
|
||||||
|
|
||||||
//Dimmer
|
//Dimmer
|
||||||
@@ -2323,9 +2359,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ brightness + "~" //sliderBrightnessPos
|
+ brightness + "~" //sliderBrightnessPos
|
||||||
+ "disable" + "~" //sliderColorTempPos
|
+ "disable" + "~" //sliderColorTempPos
|
||||||
+ "disable" + "~" //colorMod
|
+ "disable" + "~" //colorMod
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2387,9 +2423,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ brightness + "~" //sliderBrightnessPos
|
+ brightness + "~" //sliderBrightnessPos
|
||||||
+ colorTemp + "~" //sliderColorTempPos
|
+ colorTemp + "~" //sliderColorTempPos
|
||||||
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
}
|
}
|
||||||
|
|
||||||
//RGB-Licht
|
//RGB-Licht
|
||||||
@@ -2449,9 +2485,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ brightness + "~" //sliderBrightnessPos
|
+ brightness + "~" //sliderBrightnessPos
|
||||||
+ colorTemp + "~" //sliderColorTempPos
|
+ colorTemp + "~" //sliderColorTempPos
|
||||||
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
}
|
}
|
||||||
|
|
||||||
//RGB-Licht-einzeln (HEX)
|
//RGB-Licht-einzeln (HEX)
|
||||||
@@ -2515,9 +2551,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ brightness + "~" //sliderBrightnessPos
|
+ brightness + "~" //sliderBrightnessPos
|
||||||
+ colorTemp + "~" //sliderColorTempPos
|
+ colorTemp + "~" //sliderColorTempPos
|
||||||
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung)
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
}
|
}
|
||||||
|
|
||||||
//Farbtemperatur
|
//Farbtemperatur
|
||||||
@@ -2569,9 +2605,9 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
+ brightness + "~" //sliderBrightnessPos
|
+ brightness + "~" //sliderBrightnessPos
|
||||||
+ colorTemp + "~" //sliderColorTempPos
|
+ colorTemp + "~" //sliderColorTempPos
|
||||||
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
+ colorMode + "~" //colorMode (if hue-alias without hue-datapoint, then disable)
|
||||||
+ "Color" + "~" //Color-Bezeichnung
|
+ findLocale("lights","Color") + "~" //Color-Bezeichnung
|
||||||
+ "Temperature" + "~" //Temperature-Bezeichnung
|
+ findLocale("lights","Temperature") + "~" //Temperature-Bezeichnung
|
||||||
+ "Brightness" }) //Brightness-Bezeichnung
|
+ findLocale("lights","Brightness")}); //Brightness-Bezeichnung
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2588,7 +2624,7 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
out_msgs.push({ payload: "entityUpdateDetail" + "~" //entityUpdateDetail
|
out_msgs.push({ payload: "entityUpdateDetail" + "~" //entityUpdateDetail
|
||||||
+ val + "~" //Shutterposition
|
+ val + "~" //Shutterposition
|
||||||
+ "" + "~"
|
+ "" + "~"
|
||||||
+ "Position"}) //Position-Bezeichnung
|
+ findLocale("blinds","Position")}); //Position-Bezeichnung
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out_msgs
|
return out_msgs
|
||||||
@@ -2630,7 +2666,7 @@ function HandleScreensaverUpdate(): void {
|
|||||||
let TempMax = getState("accuweather.0.Summary.TempMax_d" + i).val;
|
let TempMax = getState("accuweather.0.Summary.TempMax_d" + i).val;
|
||||||
let DayOfWeek = getState("accuweather.0.Summary.DayOfWeek_d" + i).val;
|
let DayOfWeek = getState("accuweather.0.Summary.DayOfWeek_d" + i).val;
|
||||||
let WeatherIcon = GetAccuWeatherIcon(getState("accuweather.0.Summary.WeatherIcon_d" + i).val);
|
let WeatherIcon = GetAccuWeatherIcon(getState("accuweather.0.Summary.WeatherIcon_d" + i).val);
|
||||||
payloadString += DayOfWeek + "~" + Icons.GetIcon(WeatherIcon) + "~" + TempMax + " °C~";
|
payloadString += DayOfWeek + "~" + Icons.GetIcon(WeatherIcon) + "~" + TempMax + " " + config.temperatureUnit + "~";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -2864,6 +2900,7 @@ type Page = {
|
|||||||
items: PageItem[],
|
items: PageItem[],
|
||||||
useColor: boolean,
|
useColor: boolean,
|
||||||
subPage: boolean,
|
subPage: boolean,
|
||||||
|
parent: Page,
|
||||||
};
|
};
|
||||||
|
|
||||||
interface PageEntities extends Page {
|
interface PageEntities extends Page {
|
||||||
|
|||||||
143
ioBroker/ioBroker_NSPanel_locales.json
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
{
|
||||||
|
"lights":{
|
||||||
|
"Brightness":{
|
||||||
|
"en-EN":"Brightness",
|
||||||
|
"de-DE":"Helligkeit",
|
||||||
|
"nl-NL":"Helderheid",
|
||||||
|
"da-DK":"Lysstyrke",
|
||||||
|
"es-ES":"Brillo",
|
||||||
|
"fr-FR":"Luminosité",
|
||||||
|
"it-IT":"Luminosità",
|
||||||
|
"ru-RU":"Яркость"
|
||||||
|
},
|
||||||
|
"Color":{
|
||||||
|
"en-EN":"Color",
|
||||||
|
"de-DE":"Farbe",
|
||||||
|
"nl-NL":"Kleur",
|
||||||
|
"da-DK":"Farve",
|
||||||
|
"es-ES":"Colore",
|
||||||
|
"fr-FR":"Couleur",
|
||||||
|
"ru-RU":"цвет"
|
||||||
|
},
|
||||||
|
"Temperature":{
|
||||||
|
"en-EN":"Temperature",
|
||||||
|
"de-DE":"Temperatur",
|
||||||
|
"nl-NL":"Temperatuur",
|
||||||
|
"da-DK":"Temperatur",
|
||||||
|
"es-ES":"temperatura",
|
||||||
|
"fr-FR":"Température",
|
||||||
|
"it-IT":"Temperatura",
|
||||||
|
"ru-RU":"температура"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"window":{
|
||||||
|
"closed":{
|
||||||
|
"en-EN":"closed",
|
||||||
|
"de-DE":"geschlossen",
|
||||||
|
"nl-NL":"gesloten",
|
||||||
|
"da-DK":"lukket",
|
||||||
|
"es-ES":"cerrada",
|
||||||
|
"fr-FR":"fermée ",
|
||||||
|
"it-IT":"chiusa",
|
||||||
|
"ru-RU":"закрыто"
|
||||||
|
},
|
||||||
|
"opened":{
|
||||||
|
"en-EN":"opened",
|
||||||
|
"de-DE":"offen",
|
||||||
|
"nl-NL":"geopend",
|
||||||
|
"da-DK":"åbnede",
|
||||||
|
"es-ES":"abierta",
|
||||||
|
"fr-FR":"ouverte ",
|
||||||
|
"it-IT":"aperta",
|
||||||
|
"ru-RU":"открыто"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"door":{
|
||||||
|
"closed":{
|
||||||
|
"en-EN":"closed",
|
||||||
|
"de-DE":"geschlossen",
|
||||||
|
"nl-NL":"gesloten",
|
||||||
|
"da-DK":"lukket",
|
||||||
|
"es-ES":"cerrada",
|
||||||
|
"fr-FR":"fermée ",
|
||||||
|
"it-IT":"chiusa",
|
||||||
|
"ru-RU":"закрыто"
|
||||||
|
},
|
||||||
|
"opened":{
|
||||||
|
"en-EN":"opened",
|
||||||
|
"de-DE":"offen",
|
||||||
|
"nl-NL":"geopend",
|
||||||
|
"da-DK":"åbnede",
|
||||||
|
"es-ES":"abierta",
|
||||||
|
"fr-FR":"ouverte ",
|
||||||
|
"it-IT":"aperta",
|
||||||
|
"ru-RU":"открыто"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lock":{
|
||||||
|
"LOCK":{
|
||||||
|
"en-EN":"lock",
|
||||||
|
"de-DE":"schließen",
|
||||||
|
"nl-NL":"stilgelegd",
|
||||||
|
"da-DK":"låse",
|
||||||
|
"es-ES":"cerrar",
|
||||||
|
"fr-FR":"bloquer ",
|
||||||
|
"it-IT":"serratura",
|
||||||
|
"ru-RU":"замок"
|
||||||
|
},
|
||||||
|
"UNLOCK":{
|
||||||
|
"en-EN":"unlock",
|
||||||
|
"de-DE":"öffnen",
|
||||||
|
"nl-NL":"openen",
|
||||||
|
"da-DK":"at åbne",
|
||||||
|
"es-ES":"abrir",
|
||||||
|
"fr-FR":"ouvrir ",
|
||||||
|
"it-IT":"aprire",
|
||||||
|
"ru-RU":"открыть"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blinds":{
|
||||||
|
"Position":{
|
||||||
|
"en-EN":"Position",
|
||||||
|
"de-DE":"Position",
|
||||||
|
"nl-NL":"Positie",
|
||||||
|
"da-DK":"Blindstilling",
|
||||||
|
"es-ES":"Posición",
|
||||||
|
"fr-FR":"Position ",
|
||||||
|
"it-IT":"Posizione",
|
||||||
|
"ru-RU":"Слепая"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"thermostat":{
|
||||||
|
"Currently":{
|
||||||
|
"en-EN":"Currently",
|
||||||
|
"de-DE":"Aktuell",
|
||||||
|
"nl-NL":"momenteel",
|
||||||
|
"da-DK":"i øjeblikket",
|
||||||
|
"es-ES":"corrientemente",
|
||||||
|
"fr-FR":"actuellement ",
|
||||||
|
"it-IT":"attualmente",
|
||||||
|
"ru-RU":"актуальный"
|
||||||
|
},
|
||||||
|
"State":{
|
||||||
|
"en-EN":"State",
|
||||||
|
"de-DE":"Status",
|
||||||
|
"nl-NL":"toestand",
|
||||||
|
"da-DK":"stat",
|
||||||
|
"es-ES":"estado",
|
||||||
|
"fr-FR":"statut ",
|
||||||
|
"it-IT":"stato",
|
||||||
|
"ru-RU":"статус"
|
||||||
|
},
|
||||||
|
"Action":{
|
||||||
|
"en-EN":"Action",
|
||||||
|
"de-DE":"Aktion",
|
||||||
|
"nl-NL":"actie",
|
||||||
|
"da-DK":"handling",
|
||||||
|
"es-ES":"acción",
|
||||||
|
"fr-FR":"action ",
|
||||||
|
"it-IT":"azione",
|
||||||
|
"ru-RU":"действие"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||