mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-18 02:47:00 +01:00
Compare commits
173 Commits
Armilar-pa
...
ff96812d26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff96812d26 | ||
|
|
0359a4b3dc | ||
|
|
f75dd3a800 | ||
|
|
a992dc56c5 | ||
|
|
576176e1cc | ||
|
|
1d3914ce86 | ||
|
|
b2f338cad8 | ||
|
|
74a329ca29 | ||
|
|
29ae1b4034 | ||
|
|
ae5cab9830 | ||
|
|
a986e588b5 | ||
|
|
8c84c1050f | ||
|
|
c3ded4d817 | ||
|
|
db32de68e3 | ||
|
|
f76f2ca393 | ||
|
|
8449257628 | ||
|
|
2bd3d0d290 | ||
|
|
117798a3f5 | ||
|
|
01392bcbf8 | ||
|
|
5a3478d916 | ||
|
|
f3b545fd90 | ||
|
|
e7a6a05a1b | ||
|
|
f65ff57a95 | ||
|
|
9a8f53e890 | ||
|
|
e94c711f12 | ||
|
|
4cc8455fff | ||
|
|
943bb93398 | ||
|
|
0a1eb8c2e5 | ||
|
|
b7fd06413d | ||
|
|
a2b805f4e1 | ||
|
|
bc69af7b6b | ||
|
|
c36202878f | ||
|
|
60f31595d4 | ||
|
|
7194d7f613 | ||
|
|
af02a70600 | ||
|
|
77d8e0607d | ||
|
|
d6d12bc93c | ||
|
|
ead1def4bb | ||
|
|
14e944885f | ||
|
|
a075e0cba8 | ||
|
|
dd14e66f10 | ||
|
|
ce0892b986 | ||
|
|
71b84cc8d3 | ||
|
|
fd3ce243a6 | ||
|
|
aa3e90ef98 | ||
|
|
2621b22ffd | ||
|
|
6460f5f4ff | ||
|
|
e45560c27f | ||
|
|
0c6cd158dd | ||
|
|
f11de05eb3 | ||
|
|
ef47efb9aa | ||
|
|
54422eccaa | ||
|
|
02004f4b6d | ||
|
|
58278c5388 | ||
|
|
ff7d2020f7 | ||
|
|
160420fe82 | ||
|
|
56703ec458 | ||
|
|
9947664ae8 | ||
|
|
4d3f54439e | ||
|
|
6254f369f4 | ||
|
|
9b98cac4c8 | ||
|
|
71f3b75ab2 | ||
|
|
1a5cf8a2f7 | ||
|
|
33712b198d | ||
|
|
1fd5784a54 | ||
|
|
3904ca2343 | ||
|
|
8ebd0f5193 | ||
|
|
8c9bca3f25 | ||
|
|
6908744669 | ||
|
|
d0e463de98 | ||
|
|
f4c7287dfd | ||
|
|
a33df14761 | ||
|
|
3afc41269c | ||
|
|
11add2bfcc | ||
|
|
dd84fa16e5 | ||
|
|
e823c0f1ec | ||
|
|
56c104a5bc | ||
|
|
bfb2c2eaab | ||
|
|
7d57205ac2 | ||
|
|
4b81b1794d | ||
|
|
f5019b494f | ||
|
|
5102b8b955 | ||
|
|
089e553944 | ||
|
|
dfc07a6d76 | ||
|
|
b7687e006c | ||
|
|
10cf15bebd | ||
|
|
fc3d4adc72 | ||
|
|
bc330d5aaf | ||
|
|
c8a8feace2 | ||
|
|
9afdaa4cbc | ||
|
|
18c7f2eb9c | ||
|
|
de237171ef | ||
|
|
a4b90944e8 | ||
|
|
cb44fcc8c9 | ||
|
|
03bae9e9bd | ||
|
|
1ec463f6c7 | ||
|
|
5420abcfaa | ||
|
|
e2530cdf62 | ||
|
|
b14687cb30 | ||
|
|
360fb881f1 | ||
|
|
90d35a8574 | ||
|
|
73a0ba468e | ||
|
|
4e7119768b | ||
|
|
8bfa6deb76 | ||
|
|
e87febc54a | ||
|
|
43df10e823 | ||
|
|
e2acb70a1c | ||
|
|
f8774af675 | ||
|
|
9ddb6c7834 | ||
|
|
330e5fecdf | ||
|
|
6cc41bf510 | ||
|
|
956bd23a56 | ||
|
|
f1ce806ded | ||
|
|
7748c22292 | ||
|
|
131aa491b9 | ||
|
|
dbc5ff7ccd | ||
|
|
5c3f366e53 | ||
|
|
b1b679701e | ||
|
|
c489f07c0a | ||
|
|
14bc7dedec | ||
|
|
d4067c5ddb | ||
|
|
50209418d7 | ||
|
|
8f3c74165d | ||
|
|
b7b8f389eb | ||
|
|
9082ed20f3 | ||
|
|
f807406a97 | ||
|
|
93aafe259b | ||
|
|
b96fc6e6bd | ||
|
|
1996b29c60 | ||
|
|
c8eb476ca8 | ||
|
|
aeaa995a0a | ||
|
|
b35122868f | ||
|
|
1cb974494f | ||
|
|
723ecde4cd | ||
|
|
f29e5c4978 | ||
|
|
46ffff7eea | ||
|
|
774c920591 | ||
|
|
f27eb07827 | ||
|
|
da8362d81d | ||
|
|
6e38d4f38d | ||
|
|
2344c9a9ed | ||
|
|
5180f0f869 | ||
|
|
b4f2789834 | ||
|
|
78c6029200 | ||
|
|
dca112e42b | ||
|
|
5ad16dd735 | ||
|
|
723be0735e | ||
|
|
a5bfb9388f | ||
|
|
9c6f24f984 | ||
|
|
59843ffea5 | ||
|
|
4de9c4a12f | ||
|
|
3eb05e5a84 | ||
|
|
5d7a7ed1a4 | ||
|
|
7124a22c38 | ||
|
|
fa4d65a383 | ||
|
|
d26306f892 | ||
|
|
9c0bb037fb | ||
|
|
4b73e20b9b | ||
|
|
3940a0c2e9 | ||
|
|
8f57d4a642 | ||
|
|
3979fdf6a0 | ||
|
|
4cd47126eb | ||
|
|
eb0dd79c80 | ||
|
|
3a39a8ca0e | ||
|
|
b5c4a2128b | ||
|
|
41f43fe5d0 | ||
|
|
f3f93b7136 | ||
|
|
2fb1855842 | ||
|
|
9a3627427f | ||
|
|
94fbf0a5f7 | ||
|
|
caddec1190 | ||
|
|
03367ea27d | ||
|
|
8e792ae8fc |
2
.github/workflows/builder.yaml
vendored
2
.github/workflows/builder.yaml
vendored
@@ -100,7 +100,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build ${{ matrix.addon }} add-on
|
- name: Build ${{ matrix.addon }} add-on
|
||||||
if: steps.check.outputs.build_arch == 'true'
|
if: steps.check.outputs.build_arch == 'true'
|
||||||
uses: home-assistant/builder@2023.09.0
|
uses: home-assistant/builder@2024.01.0
|
||||||
with:
|
with:
|
||||||
args: |
|
args: |
|
||||||
${{ env.BUILD_ARGS }} \
|
${{ env.BUILD_ARGS }} \
|
||||||
|
|||||||
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v3
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@@ -72,4 +72,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v3
|
||||||
|
|||||||
2
.github/workflows/docs-dev.yml
vendored
2
.github/workflows/docs-dev.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||||
|
|||||||
2
.github/workflows/docs-release.yml
vendored
2
.github/workflows/docs-release.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
--- HMI/n2t-out
|
--- HMI/n2t-out
|
||||||
+++ HMI/US/landscape/n2t-out
|
+++ HMI/US/landscape/n2t-out
|
||||||
├── file list
|
|
||||||
│ @@ -1,10 +1,9 @@
|
|
||||||
│ Program.s.txt
|
|
||||||
│ cardAlarm.txt
|
|
||||||
│ -cardBurnRec.txt
|
|
||||||
│ cardChart.txt
|
|
||||||
│ cardEntities.txt
|
|
||||||
│ cardGrid.txt
|
|
||||||
│ cardGrid2.txt
|
|
||||||
│ cardLChart.txt
|
|
||||||
│ cardMedia.txt
|
|
||||||
│ cardPower.txt
|
|
||||||
│ --- HMI/n2t-out/Program.s.txt
|
│ --- HMI/n2t-out/Program.s.txt
|
||||||
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
||||||
│ @@ -13,10 +13,10 @@
|
│ @@ -13,10 +13,10 @@
|
||||||
@@ -114,6 +102,27 @@
|
|||||||
│ crcputs sys0,2
|
│ crcputs sys0,2
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
|
│ --- HMI/n2t-out/popupNotify.txt
|
||||||
|
├── +++ HMI/US/landscape/n2t-out/popupNotify.txt
|
||||||
|
│ @@ -439,18 +439,14 @@
|
||||||
|
│ {
|
||||||
|
│ page cardPower
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardChart")
|
||||||
|
│ {
|
||||||
|
│ page cardChart
|
||||||
|
│ }
|
||||||
|
│ - if(tId.txt=="cardLChart")
|
||||||
|
│ - {
|
||||||
|
│ - page cardLChart
|
||||||
|
│ - }
|
||||||
|
│ }
|
||||||
|
│ // end of user code
|
||||||
|
│ udelete payloadLength-1
|
||||||
|
│ bufferPos=0
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
│ --- HMI/n2t-out/screensaver.txt
|
│ --- HMI/n2t-out/screensaver.txt
|
||||||
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
|
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
|
||||||
│ @@ -19,15 +19,14 @@
|
│ @@ -19,15 +19,14 @@
|
||||||
@@ -221,7 +230,7 @@
|
|||||||
│ vis p0,0
|
│ vis p0,0
|
||||||
│ vis tNotifyHead,0
|
│ vis tNotifyHead,0
|
||||||
│ vis tNotifyText,0
|
│ vis tNotifyText,0
|
||||||
│ @@ -41,17 +40,14 @@
|
│ @@ -41,52 +40,19 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -232,14 +241,81 @@
|
|||||||
│ - Postinitialize Event
|
│ - Postinitialize Event
|
||||||
│ - click m0,1
|
│ - click m0,1
|
||||||
│ -
|
│ -
|
||||||
|
│ -Variable (string) entn1
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn2
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn3
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn4
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn5
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
│ Variable (string) strCommand
|
│ Variable (string) strCommand
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size: 1979
|
│ - Max. Text Size: 1955
|
||||||
|
│ + Max. Text Size: 1979
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -376,34 +372,14 @@
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size: 2
|
||||||
|
│
|
||||||
|
│ @@ -96,27 +62,27 @@
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size: 25
|
||||||
|
│
|
||||||
|
│ Variable (string) tInstruction
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 15
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (string) tSend
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 30
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (string) tTmp
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 30
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (int32) vaTap
|
||||||
|
│ Attributes
|
||||||
|
│ Scope: local
|
||||||
|
│ Value: 0
|
||||||
|
│
|
||||||
|
│ Variable (int32) xc1
|
||||||
|
│ @@ -370,159 +336,50 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -247,6 +323,131 @@
|
|||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size : 4
|
│ Max. Text Size : 4
|
||||||
│
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f2Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ - Touch Release Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f3Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f4Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f5Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
│ -Text m0
|
│ -Text m0
|
||||||
│ - Attributes
|
│ - Attributes
|
||||||
│ - Scope : local
|
│ - Scope : local
|
||||||
@@ -274,7 +475,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : PM
|
│ Text : PM
|
||||||
│ @@ -585,15 +561,14 @@
|
│ @@ -704,15 +561,14 @@
|
||||||
│ if(tTmp.txt!="")
|
│ if(tTmp.txt!="")
|
||||||
│ {
|
│ {
|
||||||
│ covx tTmp.txt,defaultFontColor,0,0
|
│ covx tTmp.txt,defaultFontColor,0,0
|
||||||
@@ -290,3 +491,67 @@
|
|||||||
│ if(tAMPM.txt=="")
|
│ if(tAMPM.txt=="")
|
||||||
│ {
|
│ {
|
||||||
│ vis tAMPM,0
|
│ vis tAMPM,0
|
||||||
|
│ @@ -833,44 +689,34 @@
|
||||||
|
│ //e6Val
|
||||||
|
│ spstr strCommand.txt,e6Val.txt,"~",60
|
||||||
|
│ //f1Icon
|
||||||
|
│ spstr strCommand.txt,f1Icon.txt,"~",63
|
||||||
|
│ //f1Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",64
|
||||||
|
│ covx tTmp.txt,f1Icon.pco,0,0
|
||||||
|
│ - //f1Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn1.txt,"~",62
|
||||||
|
│ //f2Icon
|
||||||
|
│ spstr strCommand.txt,f2Icon.txt,"~",69
|
||||||
|
│ //f2Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",70
|
||||||
|
│ covx tTmp.txt,f2Icon.pco,0,0
|
||||||
|
│ - //f2Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn2.txt,"~",68
|
||||||
|
│ //f3Icon
|
||||||
|
│ spstr strCommand.txt,f3Icon.txt,"~",75
|
||||||
|
│ //f3Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",76
|
||||||
|
│ covx tTmp.txt,f3Icon.pco,0,0
|
||||||
|
│ - //f3Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn3.txt,"~",74
|
||||||
|
│ //f4Icon
|
||||||
|
│ spstr strCommand.txt,f4Icon.txt,"~",81
|
||||||
|
│ //f4Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",82
|
||||||
|
│ covx tTmp.txt,f4Icon.pco,0,0
|
||||||
|
│ - //f4Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn4.txt,"~",80
|
||||||
|
│ //f5Icon
|
||||||
|
│ spstr strCommand.txt,f5Icon.txt,"~",87
|
||||||
|
│ //f5Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",88
|
||||||
|
│ covx tTmp.txt,f5Icon.pco,0,0
|
||||||
|
│ - //f5Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn5.txt,"~",86
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="notify")
|
||||||
|
│ {
|
||||||
|
│ spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||||
|
│ spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||||
|
│ if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||||
|
│ {
|
||||||
|
│ @@ -966,14 +812,18 @@
|
||||||
|
│ {
|
||||||
|
│ page cardPower
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardChart")
|
||||||
|
│ {
|
||||||
|
│ page cardChart
|
||||||
|
│ }
|
||||||
|
│ + if(tId.txt=="cardLChart")
|
||||||
|
│ + {
|
||||||
|
│ + page cardLChart
|
||||||
|
│ + }
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="timeout")
|
||||||
|
│ {
|
||||||
|
│ //set timeout to global var
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
│ }
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
--- HMI/n2t-out
|
--- HMI/n2t-out
|
||||||
+++ HMI/US/portrait/n2t-out
|
+++ HMI/US/portrait/n2t-out
|
||||||
├── file list
|
|
||||||
│ @@ -1,10 +1,9 @@
|
|
||||||
│ Program.s.txt
|
|
||||||
│ cardAlarm.txt
|
|
||||||
│ -cardBurnRec.txt
|
|
||||||
│ cardChart.txt
|
|
||||||
│ cardEntities.txt
|
|
||||||
│ cardGrid.txt
|
|
||||||
│ cardGrid2.txt
|
|
||||||
│ cardLChart.txt
|
|
||||||
│ cardMedia.txt
|
|
||||||
│ cardPower.txt
|
|
||||||
│ --- HMI/n2t-out/Program.s.txt
|
│ --- HMI/n2t-out/Program.s.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/Program.s.txt
|
├── +++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
│ @@ -12,11 +12,11 @@
|
│ @@ -12,11 +12,11 @@
|
||||||
@@ -2016,6 +2004,25 @@
|
|||||||
│ }
|
│ }
|
||||||
│ if(tInstruction.txt=="exitPopup")
|
│ if(tInstruction.txt=="exitPopup")
|
||||||
│ {
|
│ {
|
||||||
|
│ @@ -439,18 +439,14 @@
|
||||||
|
│ {
|
||||||
|
│ page cardPower
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardChart")
|
||||||
|
│ {
|
||||||
|
│ page cardChart
|
||||||
|
│ }
|
||||||
|
│ - if(tId.txt=="cardLChart")
|
||||||
|
│ - {
|
||||||
|
│ - page cardLChart
|
||||||
|
│ - }
|
||||||
|
│ }
|
||||||
|
│ // end of user code
|
||||||
|
│ udelete payloadLength-1
|
||||||
|
│ bufferPos=0
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
│ --- HMI/n2t-out/screensaver.txt
|
│ --- HMI/n2t-out/screensaver.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
|
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
|
||||||
│ @@ -7,27 +7,14 @@
|
│ @@ -7,27 +7,14 @@
|
||||||
@@ -2168,7 +2175,7 @@
|
|||||||
│ vis p0,0
|
│ vis p0,0
|
||||||
│ vis tNotifyHead,0
|
│ vis tNotifyHead,0
|
||||||
│ vis tNotifyText,0
|
│ vis tNotifyText,0
|
||||||
│ @@ -41,17 +28,14 @@
|
│ @@ -41,52 +28,19 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -2179,14 +2186,81 @@
|
|||||||
│ - Postinitialize Event
|
│ - Postinitialize Event
|
||||||
│ - click m0,1
|
│ - click m0,1
|
||||||
│ -
|
│ -
|
||||||
|
│ -Variable (string) entn1
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn2
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn3
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn4
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
|
│ -Variable (string) entn5
|
||||||
|
│ - Attributes
|
||||||
|
│ - Scope : local
|
||||||
|
│ - Text :
|
||||||
|
│ - Max. Text Size: 14
|
||||||
|
│ -
|
||||||
│ Variable (string) strCommand
|
│ Variable (string) strCommand
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size: 1979
|
│ - Max. Text Size: 1955
|
||||||
|
│ + Max. Text Size: 1979
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -376,34 +360,14 @@
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size: 2
|
||||||
|
│
|
||||||
|
│ @@ -96,27 +50,27 @@
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size: 25
|
||||||
|
│
|
||||||
|
│ Variable (string) tInstruction
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 15
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (string) tSend
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 30
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (string) tTmp
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Text :
|
||||||
|
│ - Max. Text Size: 30
|
||||||
|
│ + Max. Text Size: 50
|
||||||
|
│
|
||||||
|
│ Variable (int32) vaTap
|
||||||
|
│ Attributes
|
||||||
|
│ Scope: local
|
||||||
|
│ Value: 0
|
||||||
|
│
|
||||||
|
│ Variable (int32) xc1
|
||||||
|
│ @@ -370,159 +324,50 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -2194,6 +2268,131 @@
|
|||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size : 4
|
│ Max. Text Size : 4
|
||||||
│
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f2Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ - Touch Release Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f3Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f4Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
|
│ Text f5Icon
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ Dragging : 0
|
||||||
|
│ Send Component ID : disabled
|
||||||
|
│ Associated Keyboard: none
|
||||||
|
│ Text :
|
||||||
|
│ Max. Text Size : 4
|
||||||
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
│ - //send calc crc
|
||||||
|
│ - btlen tSend.txt,sys0
|
||||||
|
│ - crcrest 1,0xffff // reset CRC
|
||||||
|
│ - crcputh 55 bb
|
||||||
|
│ - crcputs sys0,2
|
||||||
|
│ - crcputs tSend.txt,0
|
||||||
|
│ - //send cmd
|
||||||
|
│ - printh 55 bb
|
||||||
|
│ - prints sys0,2
|
||||||
|
│ - prints tSend.txt,0
|
||||||
|
│ - prints crcval,2
|
||||||
|
│ -
|
||||||
│ -Text m0
|
│ -Text m0
|
||||||
│ - Attributes
|
│ - Attributes
|
||||||
│ - Scope : local
|
│ - Scope : local
|
||||||
@@ -2221,7 +2420,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : PM
|
│ Text : PM
|
||||||
│ @@ -585,15 +549,14 @@
|
│ @@ -704,15 +549,14 @@
|
||||||
│ if(tTmp.txt!="")
|
│ if(tTmp.txt!="")
|
||||||
│ {
|
│ {
|
||||||
│ covx tTmp.txt,defaultFontColor,0,0
|
│ covx tTmp.txt,defaultFontColor,0,0
|
||||||
@@ -2237,3 +2436,67 @@
|
|||||||
│ if(tAMPM.txt=="")
|
│ if(tAMPM.txt=="")
|
||||||
│ {
|
│ {
|
||||||
│ vis tAMPM,0
|
│ vis tAMPM,0
|
||||||
|
│ @@ -833,44 +677,34 @@
|
||||||
|
│ //e6Val
|
||||||
|
│ spstr strCommand.txt,e6Val.txt,"~",60
|
||||||
|
│ //f1Icon
|
||||||
|
│ spstr strCommand.txt,f1Icon.txt,"~",63
|
||||||
|
│ //f1Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",64
|
||||||
|
│ covx tTmp.txt,f1Icon.pco,0,0
|
||||||
|
│ - //f1Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn1.txt,"~",62
|
||||||
|
│ //f2Icon
|
||||||
|
│ spstr strCommand.txt,f2Icon.txt,"~",69
|
||||||
|
│ //f2Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",70
|
||||||
|
│ covx tTmp.txt,f2Icon.pco,0,0
|
||||||
|
│ - //f2Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn2.txt,"~",68
|
||||||
|
│ //f3Icon
|
||||||
|
│ spstr strCommand.txt,f3Icon.txt,"~",75
|
||||||
|
│ //f3Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",76
|
||||||
|
│ covx tTmp.txt,f3Icon.pco,0,0
|
||||||
|
│ - //f3Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn3.txt,"~",74
|
||||||
|
│ //f4Icon
|
||||||
|
│ spstr strCommand.txt,f4Icon.txt,"~",81
|
||||||
|
│ //f4Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",82
|
||||||
|
│ covx tTmp.txt,f4Icon.pco,0,0
|
||||||
|
│ - //f4Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn4.txt,"~",80
|
||||||
|
│ //f5Icon
|
||||||
|
│ spstr strCommand.txt,f5Icon.txt,"~",87
|
||||||
|
│ //f5Icon Color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",88
|
||||||
|
│ covx tTmp.txt,f5Icon.pco,0,0
|
||||||
|
│ - //f5Icon intNameEntity
|
||||||
|
│ - spstr strCommand.txt,entn5.txt,"~",86
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="notify")
|
||||||
|
│ {
|
||||||
|
│ spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||||
|
│ spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||||
|
│ if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||||
|
│ {
|
||||||
|
│ @@ -966,14 +800,18 @@
|
||||||
|
│ {
|
||||||
|
│ page cardPower
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardChart")
|
||||||
|
│ {
|
||||||
|
│ page cardChart
|
||||||
|
│ }
|
||||||
|
│ + if(tId.txt=="cardLChart")
|
||||||
|
│ + {
|
||||||
|
│ + page cardLChart
|
||||||
|
│ + }
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="timeout")
|
||||||
|
│ {
|
||||||
|
│ //set timeout to global var
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
│ }
|
||||||
|
|||||||
@@ -1,16 +1,4 @@
|
|||||||
+++ /dev/fd/62 2023-11-27 23:28:52.512823638 +0000
|
+++ /dev/fd/62 2024-01-19 15:23:13.505105687 +0000
|
||||||
+le list
|
|
||||||
+ +1,9 @@
|
|
||||||
+.s.txt
|
|
||||||
+rm.txt
|
|
||||||
+nRec.txt
|
|
||||||
+rt.txt
|
|
||||||
+ities.txt
|
|
||||||
+d.txt
|
|
||||||
+d2.txt
|
|
||||||
+art.txt
|
|
||||||
+ia.txt
|
|
||||||
+er.txt
|
|
||||||
+I/n2t-out/Program.s.txt
|
+I/n2t-out/Program.s.txt
|
||||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
+1 +12,11 @@
|
+1 +12,11 @@
|
||||||
@@ -698,13 +686,6 @@
|
|||||||
+ covx tTmp.txt,sys0,0,0
|
+ covx tTmp.txt,sys0,0,0
|
||||||
+ hSlider6.maxval=sys0
|
+ hSlider6.maxval=sys0
|
||||||
+ }
|
+ }
|
||||||
+ }
|
|
||||||
+ if(tInstruction.txt=="pageType")
|
|
||||||
+ {
|
|
||||||
+ sleepValue=0
|
|
||||||
+ //command format pageType,specialPageName
|
|
||||||
+ //write name of speical page to tId
|
|
||||||
+ spstr strCommand.txt,tId.txt,"~",1
|
|
||||||
+I/n2t-out/cardGrid.txt
|
+I/n2t-out/cardGrid.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardGrid.txt
|
++ HMI/US/portrait/n2t-out/cardGrid.txt
|
||||||
+ +7,14 @@
|
+ +7,14 @@
|
||||||
@@ -958,6 +939,13 @@
|
|||||||
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
||||||
+ vis tEntity9,1
|
+ vis tEntity9,1
|
||||||
+ }
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="pageType")
|
||||||
|
+ {
|
||||||
|
+ sleepValue=0
|
||||||
|
+ //command format pageType,specialPageName
|
||||||
|
+ //write name of speical page to tId
|
||||||
|
+ spstr strCommand.txt,tId.txt,"~",1
|
||||||
+I/n2t-out/cardLChart.txt
|
+I/n2t-out/cardLChart.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardLChart.txt
|
++ HMI/US/portrait/n2t-out/cardLChart.txt
|
||||||
+ +7,14 @@
|
+ +7,14 @@
|
||||||
@@ -1558,6 +1546,25 @@
|
|||||||
+ }
|
+ }
|
||||||
+ if(tInstruction.txt=="exitPopup")
|
+ if(tInstruction.txt=="exitPopup")
|
||||||
+ {
|
+ {
|
||||||
|
+18 +439,14 @@
|
||||||
|
+ {
|
||||||
|
+ page cardPower
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardChart")
|
||||||
|
+ {
|
||||||
|
+ page cardChart
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardLChart")
|
||||||
|
+ {
|
||||||
|
+ page cardLChart
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ // end of user code
|
||||||
|
+ udelete payloadLength-1
|
||||||
|
+ bufferPos=0
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
+I/n2t-out/screensaver.txt
|
+I/n2t-out/screensaver.txt
|
||||||
++ HMI/US/portrait/n2t-out/screensaver.txt
|
++ HMI/US/portrait/n2t-out/screensaver.txt
|
||||||
+ +7,14 @@
|
+ +7,14 @@
|
||||||
@@ -1710,7 +1717,7 @@
|
|||||||
+ vis p0,0
|
+ vis p0,0
|
||||||
+ vis tNotifyHead,0
|
+ vis tNotifyHead,0
|
||||||
+ vis tNotifyText,0
|
+ vis tNotifyText,0
|
||||||
+7 +28,14 @@
|
+2 +28,19 @@
|
||||||
+ }
|
+ }
|
||||||
+ tDate.txt=pageIcons.vaDate.txt
|
+ tDate.txt=pageIcons.vaDate.txt
|
||||||
+ dim=dimValue
|
+ dim=dimValue
|
||||||
@@ -1721,14 +1728,81 @@
|
|||||||
+ Postinitialize Event
|
+ Postinitialize Event
|
||||||
+ click m0,1
|
+ click m0,1
|
||||||
+
|
+
|
||||||
|
+e (string) entn1
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 14
|
||||||
|
+
|
||||||
|
+e (string) entn2
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 14
|
||||||
|
+
|
||||||
|
+e (string) entn3
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 14
|
||||||
|
+
|
||||||
|
+e (string) entn4
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 14
|
||||||
|
+
|
||||||
|
+e (string) entn5
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 14
|
||||||
|
+
|
||||||
+e (string) strCommand
|
+e (string) strCommand
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
|
+ Max. Text Size: 1955
|
||||||
+ Max. Text Size: 1979
|
+ Max. Text Size: 1979
|
||||||
+
|
+
|
||||||
+e (string) strTmp
|
+e (string) strTmp
|
||||||
+34 +360,14 @@
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 2
|
||||||
|
+
|
||||||
|
+7 +50,27 @@
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 25
|
||||||
|
+
|
||||||
|
+e (string) tInstruction
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 15
|
||||||
|
+ Max. Text Size: 50
|
||||||
|
+
|
||||||
|
+e (string) tSend
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 30
|
||||||
|
+ Max. Text Size: 50
|
||||||
|
+
|
||||||
|
+e (string) tTmp
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size: 30
|
||||||
|
+ Max. Text Size: 50
|
||||||
|
+
|
||||||
|
+e (int32) vaTap
|
||||||
|
+ributes
|
||||||
|
+ Scope: local
|
||||||
|
+ Value: 0
|
||||||
|
+
|
||||||
|
+e (int32) xc1
|
||||||
|
+159 +324,50 @@
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
@@ -1736,6 +1810,131 @@
|
|||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size : 4
|
+ Max. Text Size : 4
|
||||||
+
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+Icon
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Dragging : 0
|
||||||
|
+ Send Component ID : disabled
|
||||||
|
+ Associated Keyboard: none
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size : 4
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+ Touch Release Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+Icon
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Dragging : 0
|
||||||
|
+ Send Component ID : disabled
|
||||||
|
+ Associated Keyboard: none
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size : 4
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+Icon
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Dragging : 0
|
||||||
|
+ Send Component ID : disabled
|
||||||
|
+ Associated Keyboard: none
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size : 4
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+Icon
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Dragging : 0
|
||||||
|
+ Send Component ID : disabled
|
||||||
|
+ Associated Keyboard: none
|
||||||
|
+ Text :
|
||||||
|
+ Max. Text Size : 4
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
+ //send calc crc
|
||||||
|
+ btlen tSend.txt,sys0
|
||||||
|
+ crcrest 1,0xffff // reset CRC
|
||||||
|
+ crcputh 55 bb
|
||||||
|
+ crcputs sys0,2
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
+
|
+
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
@@ -1779,3 +1978,67 @@
|
|||||||
+ if(tAMPM.txt=="")
|
+ if(tAMPM.txt=="")
|
||||||
+ {
|
+ {
|
||||||
+ vis tAMPM,0
|
+ vis tAMPM,0
|
||||||
|
+44 +677,34 @@
|
||||||
|
+ //e6Val
|
||||||
|
+ spstr strCommand.txt,e6Val.txt,"~",60
|
||||||
|
+ //f1Icon
|
||||||
|
+ spstr strCommand.txt,f1Icon.txt,"~",63
|
||||||
|
+ //f1Icon Color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",64
|
||||||
|
+ covx tTmp.txt,f1Icon.pco,0,0
|
||||||
|
+ //f1Icon intNameEntity
|
||||||
|
+ spstr strCommand.txt,entn1.txt,"~",62
|
||||||
|
+ //f2Icon
|
||||||
|
+ spstr strCommand.txt,f2Icon.txt,"~",69
|
||||||
|
+ //f2Icon Color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",70
|
||||||
|
+ covx tTmp.txt,f2Icon.pco,0,0
|
||||||
|
+ //f2Icon intNameEntity
|
||||||
|
+ spstr strCommand.txt,entn2.txt,"~",68
|
||||||
|
+ //f3Icon
|
||||||
|
+ spstr strCommand.txt,f3Icon.txt,"~",75
|
||||||
|
+ //f3Icon Color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",76
|
||||||
|
+ covx tTmp.txt,f3Icon.pco,0,0
|
||||||
|
+ //f3Icon intNameEntity
|
||||||
|
+ spstr strCommand.txt,entn3.txt,"~",74
|
||||||
|
+ //f4Icon
|
||||||
|
+ spstr strCommand.txt,f4Icon.txt,"~",81
|
||||||
|
+ //f4Icon Color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",82
|
||||||
|
+ covx tTmp.txt,f4Icon.pco,0,0
|
||||||
|
+ //f4Icon intNameEntity
|
||||||
|
+ spstr strCommand.txt,entn4.txt,"~",80
|
||||||
|
+ //f5Icon
|
||||||
|
+ spstr strCommand.txt,f5Icon.txt,"~",87
|
||||||
|
+ //f5Icon Color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",88
|
||||||
|
+ covx tTmp.txt,f5Icon.pco,0,0
|
||||||
|
+ //f5Icon intNameEntity
|
||||||
|
+ spstr strCommand.txt,entn5.txt,"~",86
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="notify")
|
||||||
|
+ {
|
||||||
|
+ spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||||
|
+ spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||||
|
+ if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||||
|
+ {
|
||||||
|
+14 +800,18 @@
|
||||||
|
+ {
|
||||||
|
+ page cardPower
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardChart")
|
||||||
|
+ {
|
||||||
|
+ page cardChart
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardLChart")
|
||||||
|
+ {
|
||||||
|
+ page cardLChart
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="timeout")
|
||||||
|
+ {
|
||||||
|
+ //set timeout to global var
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
+ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
+ }
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ for i in range(1,6):
|
|||||||
//f{i}Icon Color
|
//f{i}Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
covx tTmp.txt,f{i}Icon.pco,0,0
|
covx tTmp.txt,f{i}Icon.pco,0,0
|
||||||
|
//f{i}Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||||
"""
|
"""
|
||||||
head = head + item
|
head = head + item
|
||||||
|
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
Page cardBurnRec
|
|
||||||
Attributes
|
|
||||||
ID : 0
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
Width : 480
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Locked : no
|
|
||||||
Swide up page ID : disabled
|
|
||||||
Swide down page ID : disabled
|
|
||||||
Swide left page ID : disabled
|
|
||||||
Swide right page ID: disabled
|
|
||||||
Fill : solid color
|
|
||||||
Back. Color : 65535
|
|
||||||
|
|
||||||
Timer tm0
|
|
||||||
Attributes
|
|
||||||
ID : 1
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 1001
|
|
||||||
Enabled : yes
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
dim=100
|
|
||||||
sys0=0
|
|
||||||
sys1=0
|
|
||||||
if(sys2==WHITE)
|
|
||||||
{
|
|
||||||
sys2=BLACK
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
sys2=WHITE
|
|
||||||
}
|
|
||||||
sya1=sys2
|
|
||||||
while(sys0<8)
|
|
||||||
{
|
|
||||||
sya0=sys0%2
|
|
||||||
if(sya1==WHITE)
|
|
||||||
{
|
|
||||||
sya1=BLACK
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
sya1=WHITE
|
|
||||||
}
|
|
||||||
fill 0,40*sys0,480,40,sya1
|
|
||||||
sys0++
|
|
||||||
}
|
|
||||||
|
|
||||||
TouchCap tc0
|
|
||||||
Attributes
|
|
||||||
ID : 2
|
|
||||||
Scope: local
|
|
||||||
Value: 0
|
|
||||||
|
|
||||||
Events
|
|
||||||
Touch Press Event
|
|
||||||
page pageStartup
|
|
||||||
|
|
||||||
@@ -6,10 +6,14 @@ pageIcons
|
|||||||
7 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
0 Unique line(s) of event code
|
0 Unique line(s) of event code
|
||||||
cardBurnRec
|
pageTest
|
||||||
3 Component(s)
|
25 Component(s)
|
||||||
25 Line(s) of event code
|
68 Line(s) of event code
|
||||||
21 Unique line(s) of event code
|
66 Unique line(s) of event code
|
||||||
|
popupNotify
|
||||||
|
19 Component(s)
|
||||||
|
271 Line(s) of event code
|
||||||
|
174 Unique line(s) of event code
|
||||||
popupFan
|
popupFan
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
355 Line(s) of event code
|
355 Line(s) of event code
|
||||||
@@ -26,14 +30,6 @@ popupLightNew
|
|||||||
23 Component(s)
|
23 Component(s)
|
||||||
412 Line(s) of event code
|
412 Line(s) of event code
|
||||||
209 Unique line(s) of event code
|
209 Unique line(s) of event code
|
||||||
popupNotify
|
|
||||||
19 Component(s)
|
|
||||||
267 Line(s) of event code
|
|
||||||
172 Unique line(s) of event code
|
|
||||||
pageTest
|
|
||||||
26 Component(s)
|
|
||||||
69 Line(s) of event code
|
|
||||||
67 Unique line(s) of event code
|
|
||||||
cardGrid2
|
cardGrid2
|
||||||
52 Component(s)
|
52 Component(s)
|
||||||
703 Line(s) of event code
|
703 Line(s) of event code
|
||||||
@@ -46,6 +42,10 @@ cardChart
|
|||||||
33 Component(s)
|
33 Component(s)
|
||||||
447 Line(s) of event code
|
447 Line(s) of event code
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
44 Component(s)
|
||||||
|
593 Line(s) of event code
|
||||||
|
333 Unique line(s) of event code
|
||||||
cardQR
|
cardQR
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
420 Line(s) of event code
|
420 Line(s) of event code
|
||||||
@@ -66,10 +66,6 @@ cardThermo
|
|||||||
57 Component(s)
|
57 Component(s)
|
||||||
550 Line(s) of event code
|
550 Line(s) of event code
|
||||||
320 Unique line(s) of event code
|
320 Unique line(s) of event code
|
||||||
cardGrid
|
|
||||||
44 Component(s)
|
|
||||||
593 Line(s) of event code
|
|
||||||
333 Unique line(s) of event code
|
|
||||||
popupInSel
|
popupInSel
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
621 Line(s) of event code
|
621 Line(s) of event code
|
||||||
@@ -91,16 +87,16 @@ popupThermo
|
|||||||
523 Line(s) of event code
|
523 Line(s) of event code
|
||||||
276 Unique line(s) of event code
|
276 Unique line(s) of event code
|
||||||
screensaver2
|
screensaver2
|
||||||
59 Component(s)
|
64 Component(s)
|
||||||
373 Line(s) of event code
|
434 Line(s) of event code
|
||||||
256 Unique line(s) of event code
|
264 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
67 Component(s)
|
67 Component(s)
|
||||||
1205 Line(s) of event code
|
1205 Line(s) of event code
|
||||||
536 Unique line(s) of event code
|
536 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
24 Page(s)
|
23 Page(s)
|
||||||
880 Component(s)
|
881 Component(s)
|
||||||
10740 Line(s) of event code
|
10779 Line(s) of event code
|
||||||
2475 Unique line(s) of event code
|
2466 Unique line(s) of event code
|
||||||
|
|||||||
@@ -335,41 +335,6 @@ Button b13
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
showqq
|
showqq
|
||||||
|
|
||||||
Button b14
|
|
||||||
Attributes
|
|
||||||
ID : 25
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 229
|
|
||||||
y coordinate : 188
|
|
||||||
Width : 106
|
|
||||||
Height : 40
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : 3D auto
|
|
||||||
Font ID : 1
|
|
||||||
Back. Color : 50712
|
|
||||||
Back. Picture ID (Pressed): 65535
|
|
||||||
Back. Color (Pressed) : 1024
|
|
||||||
Font Color (Unpressed) : 0
|
|
||||||
Font Color (Pressed) : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
State : unpressed
|
|
||||||
Text : burntest
|
|
||||||
Max. Text Size : 10
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Events
|
|
||||||
Touch Press Event
|
|
||||||
page cardBurnRec
|
|
||||||
|
|
||||||
Button b15
|
Button b15
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
|
|||||||
@@ -672,6 +672,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -56,12 +56,47 @@ Page screensaver2
|
|||||||
Postinitialize Event
|
Postinitialize Event
|
||||||
click m0,1
|
click m0,1
|
||||||
|
|
||||||
|
Variable (string) entn1
|
||||||
|
Attributes
|
||||||
|
ID : 59
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn2
|
||||||
|
Attributes
|
||||||
|
ID : 60
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn3
|
||||||
|
Attributes
|
||||||
|
ID : 61
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn4
|
||||||
|
Attributes
|
||||||
|
ID : 62
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn5
|
||||||
|
Attributes
|
||||||
|
ID : 63
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 1979
|
Max. Text Size: 1955
|
||||||
|
|
||||||
Variable (string) strTmp
|
Variable (string) strTmp
|
||||||
Attributes
|
Attributes
|
||||||
@@ -82,21 +117,21 @@ Variable (string) tInstruction
|
|||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 15
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 30
|
||||||
|
|
||||||
Variable (string) tTmp
|
Variable (string) tTmp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 30
|
||||||
|
|
||||||
Variable (int32) vaTap
|
Variable (int32) vaTap
|
||||||
Attributes
|
Attributes
|
||||||
@@ -865,6 +900,21 @@ Text f1Icon
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f2Icon
|
Text f2Icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 54
|
ID : 54
|
||||||
@@ -894,6 +944,35 @@ Text f2Icon
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Touch Release Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f3Icon
|
Text f3Icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 55
|
ID : 55
|
||||||
@@ -923,6 +1002,21 @@ Text f3Icon
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f4Icon
|
Text f4Icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 53
|
ID : 53
|
||||||
@@ -952,6 +1046,21 @@ Text f4Icon
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f5Icon
|
Text f5Icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 52
|
ID : 52
|
||||||
@@ -981,6 +1090,21 @@ Text f5Icon
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text m0
|
Text m0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 32
|
ID : 32
|
||||||
@@ -1551,26 +1675,36 @@ Timer tmSerial
|
|||||||
//f1Icon Color
|
//f1Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",64
|
spstr strCommand.txt,tTmp.txt,"~",64
|
||||||
covx tTmp.txt,f1Icon.pco,0,0
|
covx tTmp.txt,f1Icon.pco,0,0
|
||||||
|
//f1Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn1.txt,"~",62
|
||||||
//f2Icon
|
//f2Icon
|
||||||
spstr strCommand.txt,f2Icon.txt,"~",69
|
spstr strCommand.txt,f2Icon.txt,"~",69
|
||||||
//f2Icon Color
|
//f2Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",70
|
spstr strCommand.txt,tTmp.txt,"~",70
|
||||||
covx tTmp.txt,f2Icon.pco,0,0
|
covx tTmp.txt,f2Icon.pco,0,0
|
||||||
|
//f2Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn2.txt,"~",68
|
||||||
//f3Icon
|
//f3Icon
|
||||||
spstr strCommand.txt,f3Icon.txt,"~",75
|
spstr strCommand.txt,f3Icon.txt,"~",75
|
||||||
//f3Icon Color
|
//f3Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",76
|
spstr strCommand.txt,tTmp.txt,"~",76
|
||||||
covx tTmp.txt,f3Icon.pco,0,0
|
covx tTmp.txt,f3Icon.pco,0,0
|
||||||
|
//f3Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn3.txt,"~",74
|
||||||
//f4Icon
|
//f4Icon
|
||||||
spstr strCommand.txt,f4Icon.txt,"~",81
|
spstr strCommand.txt,f4Icon.txt,"~",81
|
||||||
//f4Icon Color
|
//f4Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",82
|
spstr strCommand.txt,tTmp.txt,"~",82
|
||||||
covx tTmp.txt,f4Icon.pco,0,0
|
covx tTmp.txt,f4Icon.pco,0,0
|
||||||
|
//f4Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn4.txt,"~",80
|
||||||
//f5Icon
|
//f5Icon
|
||||||
spstr strCommand.txt,f5Icon.txt,"~",87
|
spstr strCommand.txt,f5Icon.txt,"~",87
|
||||||
//f5Icon Color
|
//f5Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",88
|
spstr strCommand.txt,tTmp.txt,"~",88
|
||||||
covx tTmp.txt,f5Icon.pco,0,0
|
covx tTmp.txt,f5Icon.pco,0,0
|
||||||
|
//f5Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn5.txt,"~",86
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="notify")
|
if(tInstruction.txt=="notify")
|
||||||
{
|
{
|
||||||
@@ -1674,10 +1808,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
Page cardBurnRec
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Locked : no
|
|
||||||
Swide up page ID : disabled
|
|
||||||
Swide down page ID : disabled
|
|
||||||
Swide left page ID : disabled
|
|
||||||
Swide right page ID: disabled
|
|
||||||
|
|
||||||
Timer tm0
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 1001
|
|
||||||
Enabled : yes
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
dim=100
|
|
||||||
sys0=0
|
|
||||||
sys1=0
|
|
||||||
if(sys2==WHITE)
|
|
||||||
{
|
|
||||||
sys2=BLACK
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
sys2=WHITE
|
|
||||||
}
|
|
||||||
sya1=sys2
|
|
||||||
while(sys0<8)
|
|
||||||
{
|
|
||||||
sya0=sys0%2
|
|
||||||
if(sya1==WHITE)
|
|
||||||
{
|
|
||||||
sya1=BLACK
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
sya1=WHITE
|
|
||||||
}
|
|
||||||
fill 0,40*sys0,480,40,sya1
|
|
||||||
sys0++
|
|
||||||
}
|
|
||||||
|
|
||||||
TouchCap tc0
|
|
||||||
Attributes
|
|
||||||
Scope: local
|
|
||||||
Value: 0
|
|
||||||
|
|
||||||
Events
|
|
||||||
Touch Press Event
|
|
||||||
page pageStartup
|
|
||||||
|
|
||||||
@@ -141,19 +141,6 @@ Button b13
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
showqq
|
showqq
|
||||||
|
|
||||||
Button b14
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID: disabled
|
|
||||||
State : unpressed
|
|
||||||
Text : burntest
|
|
||||||
Max. Text Size : 10
|
|
||||||
|
|
||||||
Events
|
|
||||||
Touch Press Event
|
|
||||||
page cardBurnRec
|
|
||||||
|
|
||||||
Button b15
|
Button b15
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
|
|||||||
@@ -443,6 +443,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -48,11 +48,41 @@ Page screensaver2
|
|||||||
Postinitialize Event
|
Postinitialize Event
|
||||||
click m0,1
|
click m0,1
|
||||||
|
|
||||||
|
Variable (string) entn1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
|
Variable (string) entn5
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 14
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 1979
|
Max. Text Size: 1955
|
||||||
|
|
||||||
Variable (string) strTmp
|
Variable (string) strTmp
|
||||||
Attributes
|
Attributes
|
||||||
@@ -70,19 +100,19 @@ Variable (string) tInstruction
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 15
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 30
|
||||||
|
|
||||||
Variable (string) tTmp
|
Variable (string) tTmp
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 50
|
Max. Text Size: 30
|
||||||
|
|
||||||
Variable (int32) vaTap
|
Variable (int32) vaTap
|
||||||
Attributes
|
Attributes
|
||||||
@@ -344,6 +374,21 @@ Text f1Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f2Icon
|
Text f2Icon
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -353,6 +398,35 @@ Text f2Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Touch Release Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f3Icon
|
Text f3Icon
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -362,6 +436,21 @@ Text f3Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f4Icon
|
Text f4Icon
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -371,6 +460,21 @@ Text f4Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text f5Icon
|
Text f5Icon
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -380,6 +484,21 @@ Text f5Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Text m0
|
Text m0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -718,26 +837,36 @@ Timer tmSerial
|
|||||||
//f1Icon Color
|
//f1Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",64
|
spstr strCommand.txt,tTmp.txt,"~",64
|
||||||
covx tTmp.txt,f1Icon.pco,0,0
|
covx tTmp.txt,f1Icon.pco,0,0
|
||||||
|
//f1Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn1.txt,"~",62
|
||||||
//f2Icon
|
//f2Icon
|
||||||
spstr strCommand.txt,f2Icon.txt,"~",69
|
spstr strCommand.txt,f2Icon.txt,"~",69
|
||||||
//f2Icon Color
|
//f2Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",70
|
spstr strCommand.txt,tTmp.txt,"~",70
|
||||||
covx tTmp.txt,f2Icon.pco,0,0
|
covx tTmp.txt,f2Icon.pco,0,0
|
||||||
|
//f2Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn2.txt,"~",68
|
||||||
//f3Icon
|
//f3Icon
|
||||||
spstr strCommand.txt,f3Icon.txt,"~",75
|
spstr strCommand.txt,f3Icon.txt,"~",75
|
||||||
//f3Icon Color
|
//f3Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",76
|
spstr strCommand.txt,tTmp.txt,"~",76
|
||||||
covx tTmp.txt,f3Icon.pco,0,0
|
covx tTmp.txt,f3Icon.pco,0,0
|
||||||
|
//f3Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn3.txt,"~",74
|
||||||
//f4Icon
|
//f4Icon
|
||||||
spstr strCommand.txt,f4Icon.txt,"~",81
|
spstr strCommand.txt,f4Icon.txt,"~",81
|
||||||
//f4Icon Color
|
//f4Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",82
|
spstr strCommand.txt,tTmp.txt,"~",82
|
||||||
covx tTmp.txt,f4Icon.pco,0,0
|
covx tTmp.txt,f4Icon.pco,0,0
|
||||||
|
//f4Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn4.txt,"~",80
|
||||||
//f5Icon
|
//f5Icon
|
||||||
spstr strCommand.txt,f5Icon.txt,"~",87
|
spstr strCommand.txt,f5Icon.txt,"~",87
|
||||||
//f5Icon Color
|
//f5Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",88
|
spstr strCommand.txt,tTmp.txt,"~",88
|
||||||
covx tTmp.txt,f5Icon.pco,0,0
|
covx tTmp.txt,f5Icon.pco,0,0
|
||||||
|
//f5Icon intNameEntity
|
||||||
|
spstr strCommand.txt,entn5.txt,"~",86
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="notify")
|
if(tInstruction.txt=="notify")
|
||||||
{
|
{
|
||||||
@@ -841,10 +970,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
1732
ioBroker/.iobroker/types/javascript.d.ts
vendored
Normal file
1732
ioBroker/.iobroker/types/javascript.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -971,12 +971,37 @@
|
|||||||
</value>
|
</value>
|
||||||
</block>
|
</block>
|
||||||
</value>
|
</value>
|
||||||
<value name="VALUE">
|
<value name="VALUE">
|
||||||
<shadow type="logic_boolean" id="I4PsJQb;6k+70^g*Xt/}">
|
<shadow type="logic_boolean" id="I4PsJQb;6k+70^g*Xt/}">
|
||||||
<field name="BOOL">TRUE</field>
|
<field name="BOOL">TRUE</field>
|
||||||
</shadow>
|
</shadow>
|
||||||
<block type="math_random_float" id="C5/h)jq=yPM?,9J=(w65"></block>
|
<block type="text_join" id="XdhGC7#MxGw|KhC1x#MY">
|
||||||
</value>
|
<mutation items="2"></mutation>
|
||||||
|
<value name="ADD0">
|
||||||
|
<block type="text" id="[(_1;{xE-xfzeB4]$uk;">
|
||||||
|
<field name="TEXT">ID</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<value name="ADD1">
|
||||||
|
<block type="convert_tostring" id="g{jZOA*6Clhc5`9::h.S">
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="math_random_int" id="SXG?j1]Jza!2fg[(cl!i">
|
||||||
|
<value name="FROM">
|
||||||
|
<shadow type="math_number" id="#/-;$~`{=}8wYY$kbvA9">
|
||||||
|
<field name="NUM">1</field>
|
||||||
|
</shadow>
|
||||||
|
</value>
|
||||||
|
<value name="TO">
|
||||||
|
<shadow type="math_number" id="0x8~a;asHsiJ2Its%!VJ">
|
||||||
|
<field name="NUM">100</field>
|
||||||
|
</shadow>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
<value name="DELAY_MS">
|
<value name="DELAY_MS">
|
||||||
<shadow type="math_number" id="+6#n%fO}e4h%;FhKPV0c">
|
<shadow type="math_number" id="+6#n%fO}e4h%;FhKPV0c">
|
||||||
<field name="NUM">0</field>
|
<field name="NUM">0</field>
|
||||||
|
|||||||
44
ioBroker/Blockly/Alarm_clock.ts
Normal file
44
ioBroker/Blockly/Alarm_clock.ts
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
const dp_userdata: string = '0_userdata.0.NSPanel';
|
||||||
|
const dp_alias: string = 'alias.0.NSPanel';
|
||||||
|
|
||||||
|
// dpAction wird wenn der Wecker gestellt wird auf false geschaltet
|
||||||
|
// dpAction wird wenn die Weckzeit erreicht ist auf true geschaltet
|
||||||
|
// Der nachfolgende Datenpunkt muss manuell erstellt werden...
|
||||||
|
const dpAction: string = '0_userdata.0.example_boolean';
|
||||||
|
|
||||||
|
const Debug = true;
|
||||||
|
|
||||||
|
let time: number;
|
||||||
|
let scheduleAlarmTime: any = null;
|
||||||
|
on({ id: dp_userdata + '.AlarmTime.State', change: 'ne' }, async (obj) => {
|
||||||
|
|
||||||
|
time = getState(dp_userdata + '.AlarmTime.Time').val;
|
||||||
|
if (Debug) log('Uhrzeit: ' + time, 'info');
|
||||||
|
if ('paused' == obj.state.val) {
|
||||||
|
(function () { if (scheduleAlarmTime) {
|
||||||
|
clearSchedule(scheduleAlarmTime);
|
||||||
|
scheduleAlarmTime = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if ('active' == obj.state.val) {
|
||||||
|
let stunde: number = Math.floor(time / 60);
|
||||||
|
let minute: number = time % 60;
|
||||||
|
if (Debug) log('Weckzeit: ' + ('0' + stunde).slice(-2) + ':' + ('0' + minute).slice(-2), 'info');
|
||||||
|
scheduleAlarmTime = schedule(minute + ' ' + stunde + ' * * *', async () => {
|
||||||
|
await setStateAsync(dpAction, <iobJS.State>{ val: true, ack: true });
|
||||||
|
await setStateAsync(dp_userdata + '.AlarmTime.State', <iobJS.State>{ val: 'paused', ack: true });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
async function Init_Datenpunkte() {
|
||||||
|
if (existsState(dp_alias + '.AlarmTime.ACTUAL') == false) {
|
||||||
|
await createStateAsync(dp_userdata + '.AlarmTime.Time', '0', { type: 'number' });
|
||||||
|
await createStateAsync(dp_userdata + '.AlarmTime.State', 'paused', { type: 'string' });
|
||||||
|
setObject(dp_alias + '.AlarmTime', { type: 'channel', common: { role: 'value.alarmtime', name: 'Alarmtime' }, native: {} });
|
||||||
|
await createAliasAsync(dp_alias + '.AlarmTime.ACTUAL', dp_userdata + '.AlarmTime.Time', true, <iobJS.StateCommon>{ type: 'number', role: 'state', name: 'ACTUAL' });
|
||||||
|
await createAliasAsync(dp_alias + '.AlarmTime.STATE', dp_userdata + '.AlarmTime.State', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'STATE' });
|
||||||
|
log("<PageItem>{id: '"+ dp_alias + ".AlarmTime', name: 'Wecker', onColor: Red, offColor: Green, useColor: true}", 'info');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Init_Datenpunkte();
|
||||||
46
ioBroker/Blockly/Countdown_Timer.ts
Normal file
46
ioBroker/Blockly/Countdown_Timer.ts
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
const dp_userdata: string = '0_userdata.0.NSPanel';
|
||||||
|
const dp_alias: string = 'alias.0.NSPanel';
|
||||||
|
|
||||||
|
// Der nachfolgende Datenpunkt muss manuell angelegt werden
|
||||||
|
const dpAction: string = '0_userdata.0.example_boolean'; // anpassen
|
||||||
|
|
||||||
|
const Debug = false;
|
||||||
|
|
||||||
|
let intervallCounter: any;
|
||||||
|
|
||||||
|
let sec_timer = getState(dp_userdata + '.Countdown.Time').val;
|
||||||
|
on({ id: dp_userdata + '.Countdown.State', change: 'ne' }, async (obj) => {
|
||||||
|
|
||||||
|
switch (obj.state.val) {
|
||||||
|
case 'active':
|
||||||
|
if (intervallCounter) { clearInterval(intervallCounter); intervallCounter = null; };
|
||||||
|
intervallCounter = setInterval(async () => {
|
||||||
|
if (getState(dp_userdata + '.Countdown.Time').val > 0) {
|
||||||
|
sec_timer = getState(dp_userdata + '.Countdown.Time').val;
|
||||||
|
setState(dp_userdata + '.Countdown.Time', (sec_timer - 1), false);
|
||||||
|
} else {
|
||||||
|
setState(dp_userdata + '.Countdown.Time', 0, false);
|
||||||
|
setState(dp_userdata + '.Countdown.State', 'idle', false);
|
||||||
|
// An dieser Stelle kann auch noch eine Meldung an Alexa oder Telegram, etc. erfolgen
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (intervallCounter) { clearInterval(intervallCounter); intervallCounter = null; };
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
async function Init_Datenpunkte() {
|
||||||
|
if (existsState(dp_alias + '.Countdown.ACTUAL') == false) {
|
||||||
|
await createStateAsync(dp_userdata + '.Countdown.Time', '0', { type: 'number'});
|
||||||
|
await createStateAsync(dp_userdata + '.Countdown.State', 'paused', { type: 'string' });
|
||||||
|
setObject(dp_alias + '.Countdown', { type: 'channel', common: { role: 'level.timer', name: 'Countdown' }, native: {} });
|
||||||
|
await createAliasAsync(dp_alias + '.Countdown.ACTUAL', dp_userdata + '.Countdown.Time', true, <iobJS.StateCommon>{ type: 'number', role: 'state', name: 'ACTUAL' });
|
||||||
|
await createAliasAsync(dp_alias + '.Countdown.STATE', dp_userdata + '.Countdown.State', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'STATE' });
|
||||||
|
log("<PageItem>{id: '"+ dp_alias + ".Countdown', name: 'Timer'}", 'info');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Init_Datenpunkte();
|
||||||
10132
ioBroker/DEV/NSPanelTs.ts
Normal file
10132
ioBroker/DEV/NSPanelTs.ts
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1047,6 +1047,14 @@
|
|||||||
"zh-CN":"空闲",
|
"zh-CN":"空闲",
|
||||||
"zh-TW":"暫停"
|
"zh-TW":"暫停"
|
||||||
},
|
},
|
||||||
|
"on":{
|
||||||
|
"en-US":"On",
|
||||||
|
"de-DE":"Ein"
|
||||||
|
},
|
||||||
|
"off":{
|
||||||
|
"en-US":"Off",
|
||||||
|
"de-DE":"Aus"
|
||||||
|
},
|
||||||
"paused":{
|
"paused":{
|
||||||
"en-US":"Paused",
|
"en-US":"Paused",
|
||||||
"de-DE":"pausiert",
|
"de-DE":"pausiert",
|
||||||
@@ -2489,6 +2497,14 @@
|
|||||||
"vi-VN":"Mật khẩu",
|
"vi-VN":"Mật khẩu",
|
||||||
"zh-CN":"密码",
|
"zh-CN":"密码",
|
||||||
"zh-TW":"密碼"
|
"zh-TW":"密碼"
|
||||||
|
},
|
||||||
|
"Wlan enabled":{
|
||||||
|
"en-US":"Wlan enabled",
|
||||||
|
"de-DE":"Wlan aktiviert"
|
||||||
|
},
|
||||||
|
"Wlan disabled":{
|
||||||
|
"en-US":"Wlan disabled",
|
||||||
|
"de-DE":"Wlan deaktiviert"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"media":{
|
"media":{
|
||||||
|
|||||||
@@ -2693,5 +2693,13 @@
|
|||||||
"update_nextion_tft":{
|
"update_nextion_tft":{
|
||||||
"en-US":"Update Nextion TFT",
|
"en-US":"Update Nextion TFT",
|
||||||
"de-DE":"Nextion TFT Update"
|
"de-DE":"Nextion TFT Update"
|
||||||
|
},
|
||||||
|
"update_message":{
|
||||||
|
"en-US":"Update Notifications",
|
||||||
|
"de-DE":"Update Mitteilungen"
|
||||||
|
},
|
||||||
|
"scriptname":{
|
||||||
|
"en-US":"Script name",
|
||||||
|
"de-DE":"Skriptname"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
28
ioBroker/tsconfig.json
Normal file
28
ioBroker/tsconfig.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"compileOnSave": true,
|
||||||
|
"compilerOptions": {
|
||||||
|
"noEmit": true,
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
"module": "commonjs",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"strict": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noImplicitAny": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"typeRoots": [
|
||||||
|
".iobroker/types",
|
||||||
|
"node_modules/@types"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"**/*.js",
|
||||||
|
"**/*.ts",
|
||||||
|
"./.iobroker/types/javascript.d.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
||||||
name: NSPanel Lovelace UI Addon
|
name: NSPanel Lovelace UI Addon
|
||||||
version: "4.7.72"
|
version: "4.7.74"
|
||||||
slug: nspanel-lovelace-ui
|
slug: nspanel-lovelace-ui
|
||||||
description: NSPanel Lovelace UI Addon
|
description: NSPanel Lovelace UI Addon
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ class HAEntity(panel_cards.Entity):
|
|||||||
self.state = data.get("state")
|
self.state = data.get("state")
|
||||||
self.attributes = data.get("attributes", [])
|
self.attributes = data.get("attributes", [])
|
||||||
else:
|
else:
|
||||||
|
self.state = "not found"
|
||||||
|
self.attributes = []
|
||||||
return "~text~iid.404~X~6666~not found~"
|
return "~text~iid.404~X~6666~not found~"
|
||||||
|
|
||||||
# HA Entities
|
# HA Entities
|
||||||
@@ -188,7 +190,7 @@ class HAEntity(panel_cards.Entity):
|
|||||||
icon_char = value
|
icon_char = value
|
||||||
case 'binary_sensor':
|
case 'binary_sensor':
|
||||||
device_class = self.attributes.get("device_class", "")
|
device_class = self.attributes.get("device_class", "")
|
||||||
value = get_translation(self.locale, f"backend.component.binary_sensor.state.{device_class}.{entity.state}")
|
value = get_translation(self.locale, f"backend.component.binary_sensor.state.{device_class}.{self.state}")
|
||||||
case 'weather':
|
case 'weather':
|
||||||
attr = self.config.get("attribute", "temperature")
|
attr = self.config.get("attribute", "temperature")
|
||||||
value = str(self.attributes.get(attr, self.state))
|
value = str(self.attributes.get(attr, self.state))
|
||||||
@@ -304,8 +306,6 @@ class QRCard(HACard):
|
|||||||
super().__init__(locale, config, panel)
|
super().__init__(locale, config, panel)
|
||||||
self.qrcode = config.get("qrCode", "https://www.youtube.com/watch?v=dQw4w9WgXcQ")
|
self.qrcode = config.get("qrCode", "https://www.youtube.com/watch?v=dQw4w9WgXcQ")
|
||||||
def render(self):
|
def render(self):
|
||||||
# TODO: Render QRCode as HomeAssistant Template
|
|
||||||
#qrcode = apis.ha_api.render_template(qrcode)
|
|
||||||
if self.qrcode.startswith("ha:"):
|
if self.qrcode.startswith("ha:"):
|
||||||
self.qrcode = libs.home_assistant.get_template(self.qrcode)[3:]
|
self.qrcode = libs.home_assistant.get_template(self.qrcode)[3:]
|
||||||
result = f"{self.title}~{self.gen_nav()}~{self.qrcode}"
|
result = f"{self.title}~{self.gen_nav()}~{self.qrcode}"
|
||||||
@@ -475,6 +475,8 @@ class AlarmCard(HACard):
|
|||||||
main_entity = self.entities[0]
|
main_entity = self.entities[0]
|
||||||
main_entity.render()
|
main_entity.render()
|
||||||
|
|
||||||
|
print(main_entity.state)
|
||||||
|
|
||||||
icon = get_icon_char("shield-off")
|
icon = get_icon_char("shield-off")
|
||||||
color = rgb_dec565([255,255,255])
|
color = rgb_dec565([255,255,255])
|
||||||
supported_modes = []
|
supported_modes = []
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ def wait_for_ha_cache():
|
|||||||
while time.time() < mustend:
|
while time.time() < mustend:
|
||||||
if len(libs.home_assistant.home_assistant_entity_state_cache) == 0:
|
if len(libs.home_assistant.home_assistant_entity_state_cache) == 0:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, screenBrightness, sleepOverride, return_involved_entities=False):
|
def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, screenBrightness, sleepOverride, return_involved_entities=False):
|
||||||
dimmode = 10
|
dimmode = 10
|
||||||
@@ -17,6 +18,12 @@ def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, scr
|
|||||||
if sleepBrightness:
|
if sleepBrightness:
|
||||||
if isinstance(sleepBrightness, int):
|
if isinstance(sleepBrightness, int):
|
||||||
dimmode = sleepBrightness
|
dimmode = sleepBrightness
|
||||||
|
elif isinstance(sleepBrightness, list):
|
||||||
|
logging.error("list style config for sleepBrightness no longer supported")
|
||||||
|
elif sleepBrightness.startswith("ha:"):
|
||||||
|
time.sleep(1)
|
||||||
|
dimmode = int(float(libs.home_assistant.get_template(sleepBrightness)[3:]))
|
||||||
|
involved_entities.extend(libs.home_assistant.get_template_listener_entities(sleepBrightness))
|
||||||
elif libs.home_assistant.is_existent(sleepBrightness):
|
elif libs.home_assistant.is_existent(sleepBrightness):
|
||||||
involved_entities.append(sleepBrightness)
|
involved_entities.append(sleepBrightness)
|
||||||
dimmode = int(float(libs.home_assistant.get_entity_data(sleepBrightness).get('state', 10)))
|
dimmode = int(float(libs.home_assistant.get_entity_data(sleepBrightness).get('state', 10)))
|
||||||
@@ -24,6 +31,12 @@ def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, scr
|
|||||||
if screenBrightness:
|
if screenBrightness:
|
||||||
if isinstance(screenBrightness, int):
|
if isinstance(screenBrightness, int):
|
||||||
dimValueNormal = screenBrightness
|
dimValueNormal = screenBrightness
|
||||||
|
elif isinstance(screenBrightness, list):
|
||||||
|
logging.error("list style config for screenBrightness no longer supported")
|
||||||
|
elif screenBrightness.startswith("ha:"):
|
||||||
|
time.sleep(1)
|
||||||
|
dimValueNormal = int(float(libs.home_assistant.get_template(screenBrightness)[3:]))
|
||||||
|
involved_entities.extend(libs.home_assistant.get_template_listener_entities(screenBrightness))
|
||||||
elif libs.home_assistant.is_existent(screenBrightness):
|
elif libs.home_assistant.is_existent(screenBrightness):
|
||||||
involved_entities.append(screenBrightness)
|
involved_entities.append(screenBrightness)
|
||||||
dimValueNormal = int(float(libs.home_assistant.get_entity_data(screenBrightness).get('state', 100)))
|
dimValueNormal = int(float(libs.home_assistant.get_entity_data(screenBrightness).get('state', 100)))
|
||||||
@@ -60,7 +73,7 @@ def handle_buttons(entity_id, btype, value, entity_config=None):
|
|||||||
case 'number-set':
|
case 'number-set':
|
||||||
if entity_id.startswith('fan'):
|
if entity_id.startswith('fan'):
|
||||||
attr = libs.home_assistant.get_entity_data(entity_id).get('attributes', [])
|
attr = libs.home_assistant.get_entity_data(entity_id).get('attributes', [])
|
||||||
value = float(value) * float(attr.get(percentage_step, 0))
|
value = float(value) * float(attr.get('percentage_step', 0))
|
||||||
service_data = {
|
service_data = {
|
||||||
"value": int(value)
|
"value": int(value)
|
||||||
}
|
}
|
||||||
@@ -217,30 +230,6 @@ def handle_buttons(entity_id, btype, value, entity_config=None):
|
|||||||
case _:
|
case _:
|
||||||
logging.error("Not implemented: %s", btype)
|
logging.error("Not implemented: %s", btype)
|
||||||
|
|
||||||
|
|
||||||
# # for cardUnlock
|
|
||||||
# if button_type == "cardUnlock-unlock":
|
|
||||||
# curCard = self._config.get_card_by_uuid(
|
|
||||||
# entity_id.replace('navigate.', ''))
|
|
||||||
# if curCard is not None:
|
|
||||||
# if int(curCard.raw_config.get("pin")) == int(value):
|
|
||||||
# dstCard = self._config.search_card(
|
|
||||||
# curCard.raw_config.get("destination"))
|
|
||||||
# if dstCard is not None:
|
|
||||||
# if dstCard.hidden:
|
|
||||||
# self._previous_cards.append(self._current_card)
|
|
||||||
# self._current_card = dstCard
|
|
||||||
# self._pages_gen.render_card(self._current_card)
|
|
||||||
|
|
||||||
# if button_type == "opnSensorNotify":
|
|
||||||
# msg = ""
|
|
||||||
# entity = apis.ha_api.get_entity(entity_id)
|
|
||||||
# if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
|
|
||||||
# for e in entity.attributes.open_sensors:
|
|
||||||
# msg += f"- {apis.ha_api.get_entity(e).attributes.friendly_name}\r\n"
|
|
||||||
# self._pages_gen.send_message_page(
|
|
||||||
# "opnSensorNotifyRes", "", msg, "", "")
|
|
||||||
|
|
||||||
def call_ha_service(entity_id, service, service_data = {}):
|
def call_ha_service(entity_id, service, service_data = {}):
|
||||||
etype = entity_id.split(".")[0]
|
etype = entity_id.split(".")[0]
|
||||||
libs.home_assistant.call_service(
|
libs.home_assistant.call_service(
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ def execute_script(entity_name: str, domain: str, service: str, service_data: di
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
send_message(json.dumps(msg))
|
send_message(json.dumps(msg))
|
||||||
# busy waiting for response with a timeout of 0.2 seconds - maybe there's a better way of doing this
|
# busy waiting for response with a timeout of 0.4 seconds- maybe there's a better way of doing this
|
||||||
mustend = time.time() + 0.4
|
mustend = time.time() + 0.4
|
||||||
while time.time() < mustend:
|
while time.time() < mustend:
|
||||||
if response_buffer[call_id] == True:
|
if response_buffer[call_id] == True:
|
||||||
@@ -246,6 +246,8 @@ def execute_script(entity_name: str, domain: str, service: str, service_data: di
|
|||||||
return {}
|
return {}
|
||||||
|
|
||||||
def cache_template(template):
|
def cache_template(template):
|
||||||
|
if not template:
|
||||||
|
raise Exception("Invalid template")
|
||||||
global next_id, response_buffer
|
global next_id, response_buffer
|
||||||
try:
|
try:
|
||||||
call_id = next_id
|
call_id = next_id
|
||||||
@@ -273,6 +275,18 @@ def get_template(template):
|
|||||||
else:
|
else:
|
||||||
return template_cache.get(template, []).get("result", "404")
|
return template_cache.get(template, []).get("result", "404")
|
||||||
|
|
||||||
|
def get_template_listener_entities(template):
|
||||||
|
global template_cache
|
||||||
|
if template in template_cache:
|
||||||
|
return template_cache[template].get("listener-entities")
|
||||||
|
else:
|
||||||
|
mustend = time.time() + 0.5
|
||||||
|
while time.time() < mustend:
|
||||||
|
if template not in template_cache:
|
||||||
|
time.sleep(0.0001)
|
||||||
|
else:
|
||||||
|
return template_cache.get(template, []).get("listener-entities", "404")
|
||||||
|
|
||||||
def get_entity_data(entity_id: str):
|
def get_entity_data(entity_id: str):
|
||||||
if entity_id in home_assistant_entity_state_cache:
|
if entity_id in home_assistant_entity_state_cache:
|
||||||
return home_assistant_entity_state_cache[entity_id]
|
return home_assistant_entity_state_cache[entity_id]
|
||||||
|
|||||||
@@ -41,3 +41,7 @@ def entityUpdateDetail2(msg_out_queue, topic, data):
|
|||||||
|
|
||||||
def statusUpdate(msg_out_queue, topic, data):
|
def statusUpdate(msg_out_queue, topic, data):
|
||||||
custom_send(msg_out_queue, topic, f"statusUpdate~{data}")
|
custom_send(msg_out_queue, topic, f"statusUpdate~{data}")
|
||||||
|
|
||||||
|
def send_message_page(msg_out_queue, topic, ident, heading, msg, b1, b2):
|
||||||
|
page_type(msg_out_queue, topic, "popupNotify")
|
||||||
|
custom_send(msg_out_queue, topic, f"entityUpdateDetail~{ident}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")
|
||||||
@@ -7,7 +7,7 @@ from scheduler import Scheduler
|
|||||||
import scheduler.trigger as trigger
|
import scheduler.trigger as trigger
|
||||||
import time
|
import time
|
||||||
import babel.dates
|
import babel.dates
|
||||||
from ha_cards import Screensaver, EntitiesCard, card_factory, detail_open
|
from ha_cards import Screensaver, card_factory, detail_open
|
||||||
import ha_control
|
import ha_control
|
||||||
|
|
||||||
class LovelaceUIPanel:
|
class LovelaceUIPanel:
|
||||||
@@ -67,7 +67,7 @@ class LovelaceUIPanel:
|
|||||||
self.schedule = Scheduler()
|
self.schedule = Scheduler()
|
||||||
self.schedule.minutely(datetime.time(second=0), self.update_time)
|
self.schedule.minutely(datetime.time(second=0), self.update_time)
|
||||||
self.schedule.hourly(datetime.time(
|
self.schedule.hourly(datetime.time(
|
||||||
minute=0, second=0), self.update_time)
|
minute=0, second=0), self.update_date)
|
||||||
schedule_thread = threading.Thread(target=self.schedule_thread_target)
|
schedule_thread = threading.Thread(target=self.schedule_thread_target)
|
||||||
schedule_thread.daemon = True
|
schedule_thread.daemon = True
|
||||||
schedule_thread.start()
|
schedule_thread.start()
|
||||||
@@ -76,6 +76,10 @@ class LovelaceUIPanel:
|
|||||||
ha_control.wait_for_ha_cache()
|
ha_control.wait_for_ha_cache()
|
||||||
|
|
||||||
#request templates on cards
|
#request templates on cards
|
||||||
|
if isinstance(self.settings.get("sleepBrightness",""), str) and self.settings.get("sleepBrightness", "").startswith("ha:"):
|
||||||
|
libs.home_assistant.cache_template(self.settings.get("sleepBrightness"))
|
||||||
|
if isinstance(self.settings.get("sleepBrightness",""), str) and self.settings.get("screenBrightness", "").startswith("ha:"):
|
||||||
|
libs.home_assistant.cache_template(self.settings.get("screenBrightness"))
|
||||||
for c in self.cards.values():
|
for c in self.cards.values():
|
||||||
if hasattr(c, "qrcode"):
|
if hasattr(c, "qrcode"):
|
||||||
if c.qrcode.startswith("ha:"):
|
if c.qrcode.startswith("ha:"):
|
||||||
@@ -242,12 +246,6 @@ class LovelaceUIPanel:
|
|||||||
self.render_current_page(switchPages=True)
|
self.render_current_page(switchPages=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# replace iid with real entity id
|
|
||||||
#if entity_id.startswith("iid."):
|
|
||||||
# iid = entity_id.split(".")[1]
|
|
||||||
# if iid in self.entity_iids:
|
|
||||||
# entity_id = self.entity_iids[iid]
|
|
||||||
|
|
||||||
# replace iid with real entity id
|
# replace iid with real entity id
|
||||||
if entity_id.startswith("iid."):
|
if entity_id.startswith("iid."):
|
||||||
iid = entity_id.split(".")[1]
|
iid = entity_id.split(".")[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user