mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Compare commits
829 Commits
v4.3.1
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
081d0c5a3b | ||
|
|
98f70b20f0 | ||
|
|
4c02b5bc26 | ||
|
|
fb841abf45 | ||
|
|
bff89f0364 | ||
|
|
27ccc0cfe7 | ||
|
|
22a54c88c8 | ||
|
|
87c58cc62d | ||
|
|
1ee19213bd | ||
|
|
0c3d173f40 | ||
|
|
cc201fb7fe | ||
|
|
44d2c6fbfc | ||
|
|
9cd2f6a464 | ||
|
|
7473d13762 | ||
|
|
f57b3fe8e4 | ||
|
|
9b1558c9a6 | ||
|
|
6181dec958 | ||
|
|
a94cf0cef3 | ||
|
|
d01ccede57 | ||
|
|
65be5ffeb0 | ||
|
|
d53afb0b20 | ||
|
|
9822870fc9 | ||
|
|
8a54d1422c | ||
|
|
3f573557f0 | ||
|
|
c2ca3b26d1 | ||
|
|
476a252a92 | ||
|
|
0af779973b | ||
|
|
8e0609a781 | ||
|
|
5dab816259 | ||
|
|
5f8409f5f1 | ||
|
|
3d85e86a95 | ||
|
|
85de880cda | ||
|
|
98269b19aa | ||
|
|
d77382ee88 | ||
|
|
e925d133d2 | ||
|
|
5ef3e8132b | ||
|
|
662b79a389 | ||
|
|
c984ff53a3 | ||
|
|
f8b748a418 | ||
|
|
bc31670760 | ||
|
|
cbf6abf4dd | ||
|
|
5c85e4a6e1 | ||
|
|
cbede2412e | ||
|
|
82d22743cc | ||
|
|
640d0dfa14 | ||
|
|
ccc62d1e6a | ||
|
|
6cec0245a3 | ||
|
|
f3c98adf06 | ||
|
|
f4487e4285 | ||
|
|
8e2780b2cb | ||
|
|
0372221973 | ||
|
|
947ef2d592 | ||
|
|
a1f39236c4 | ||
|
|
4cdd1ed586 | ||
|
|
1836d29931 | ||
|
|
fca29cfbd8 | ||
|
|
b27910c1af | ||
|
|
f046ae6031 | ||
|
|
4475ab1277 | ||
|
|
9afdb71a7c | ||
|
|
c84d78551f | ||
|
|
5e2a4b17ae | ||
|
|
acdba468b3 | ||
|
|
5803a489f5 | ||
|
|
54c8d302a8 | ||
|
|
8059905579 | ||
|
|
4dc39c1b79 | ||
|
|
16909f7e7f | ||
|
|
397932a6bc | ||
|
|
04ac10b453 | ||
|
|
ff103927e8 | ||
|
|
c6e94f80de | ||
|
|
5d4ae6247d | ||
|
|
8b63322e50 | ||
|
|
7fd5b3967a | ||
|
|
1d719446c0 | ||
|
|
3913b86228 | ||
|
|
3fddbfe451 | ||
|
|
c7b492c276 | ||
|
|
2e0cff80c1 | ||
|
|
3943dee733 | ||
|
|
41e7f3c3e2 | ||
|
|
5e373ad856 | ||
|
|
0d3d40cca2 | ||
|
|
221063a5a6 | ||
|
|
8e9b8ab476 | ||
|
|
1c6be4681e | ||
|
|
7b4f4cd863 | ||
|
|
9b285efe2d | ||
|
|
22e96f2b3a | ||
|
|
23da51f662 | ||
|
|
b395a08b6e | ||
|
|
ac07dbb185 | ||
|
|
86ab806b6e | ||
|
|
89d08ea507 | ||
|
|
deacd17fc9 | ||
|
|
4372e4193e | ||
|
|
d4cb8b548d | ||
|
|
faa2880e8d | ||
|
|
eeeccc786d | ||
|
|
3bcf2372b0 | ||
|
|
9612f882a5 | ||
|
|
aa29552a90 | ||
|
|
a38393338a | ||
|
|
d2e953410c | ||
|
|
0ac345328b | ||
|
|
11bf450e4c | ||
|
|
e54faea639 | ||
|
|
25062483c9 | ||
|
|
f58be676bf | ||
|
|
cc147d29ab | ||
|
|
78d20f81d2 | ||
|
|
29a3c8123c | ||
|
|
7807651223 | ||
|
|
deb7f6788e | ||
|
|
9ca7a4e829 | ||
|
|
855ab2b28c | ||
|
|
b1b042a25f | ||
|
|
3a82af67b1 | ||
|
|
84e2105361 | ||
|
|
bae90b2b55 | ||
|
|
f6b605443d | ||
|
|
14d337891a | ||
|
|
a3df442a6a | ||
|
|
53af81f84d | ||
|
|
02332cc094 | ||
|
|
19964f4ea6 | ||
|
|
3e777246a0 | ||
|
|
737bb80af0 | ||
|
|
07155018ef | ||
|
|
b8c0939382 | ||
|
|
985d395ba3 | ||
|
|
9f8e899af7 | ||
|
|
5359ed5e4b | ||
|
|
081d176f24 | ||
|
|
0bfe72eec9 | ||
|
|
d417aa2fb9 | ||
|
|
d647fb3b4f | ||
|
|
ebf6300b06 | ||
|
|
3977f9aa53 | ||
|
|
8478194bb0 | ||
|
|
417c99cdb9 | ||
|
|
0e8849a382 | ||
|
|
dd9ccaf076 | ||
|
|
ff461d821c | ||
|
|
6d68165fb6 | ||
|
|
489fd23edb | ||
|
|
4b39d5b438 | ||
|
|
b5a5aa41c6 | ||
|
|
e878e08675 | ||
|
|
246a7f1922 | ||
|
|
c83921ca71 | ||
|
|
c9deae3d5c | ||
|
|
8184c10e93 | ||
|
|
98746cc8d1 | ||
|
|
79fe05eb9c | ||
|
|
b2dd46411a | ||
|
|
2c7dd23220 | ||
|
|
a873e3e29e | ||
|
|
6a3b984c6c | ||
|
|
ebbcf7c21e | ||
|
|
0526b26b4a | ||
|
|
c20dab43a6 | ||
|
|
918a859a74 | ||
|
|
b3d3902399 | ||
|
|
69e02b0886 | ||
|
|
74a602c34d | ||
|
|
710bb2d884 | ||
|
|
7396806fab | ||
|
|
a87044a2b9 | ||
|
|
0c54f747b9 | ||
|
|
d6955eaad7 | ||
|
|
5638720336 | ||
|
|
e33875e9f5 | ||
|
|
9532ca2442 | ||
|
|
47f59e1b63 | ||
|
|
b9195101da | ||
|
|
34a9424c29 | ||
|
|
54ce2a1c10 | ||
|
|
5166fb1f58 | ||
|
|
5e9434b7eb | ||
|
|
a7398e54e3 | ||
|
|
ac54e042ea | ||
|
|
4f17085a81 | ||
|
|
c864eb6e73 | ||
|
|
828aa8fd21 | ||
|
|
84615fad05 | ||
|
|
b90b50395c | ||
|
|
c27a23e5fe | ||
|
|
1b33ddb207 | ||
|
|
d68de45c3b | ||
|
|
5b46b39dac | ||
|
|
2d0201759d | ||
|
|
104788e2a4 | ||
|
|
4f1139a531 | ||
|
|
f673aad38e | ||
|
|
c8a8e1351c | ||
|
|
5d84b59bbd | ||
|
|
2a807702f4 | ||
|
|
448b9cb30c | ||
|
|
248dc3a1c9 | ||
|
|
cd76c0528e | ||
|
|
58e2febf64 | ||
|
|
0372b034f6 | ||
|
|
1d730a0ce5 | ||
|
|
1a629ee8d5 | ||
|
|
cd563ad1ce | ||
|
|
ec18b6349b | ||
|
|
4d7d87d62a | ||
|
|
15a021a58f | ||
|
|
63c85e6b96 | ||
|
|
6a94795a67 | ||
|
|
d302567369 | ||
|
|
f8d6a1543d | ||
|
|
6df5a68682 | ||
|
|
7e1cc36805 | ||
|
|
491ed21f98 | ||
|
|
e53cf5dab0 | ||
|
|
e853889247 | ||
|
|
19b0fe4052 | ||
|
|
d94d937d77 | ||
|
|
e5c1f0588a | ||
|
|
dd88ebe5da | ||
|
|
5536335ac9 | ||
|
|
df4fff6911 | ||
|
|
3dd83fde66 | ||
|
|
f50b1ececa | ||
|
|
ebee7b379e | ||
|
|
255db25f58 | ||
|
|
19050079d4 | ||
|
|
8d97f98a29 | ||
|
|
137ca5855e | ||
|
|
7707b48622 | ||
|
|
193546d1ed | ||
|
|
6703bca1d0 | ||
|
|
5739947586 | ||
|
|
5e1a7f2102 | ||
|
|
a0e574391b | ||
|
|
bd107d930a | ||
|
|
66f83732bb | ||
|
|
e796891d8e | ||
|
|
ba46bc9189 | ||
|
|
64ff369a90 | ||
|
|
92616429ba | ||
|
|
377383d672 | ||
|
|
52d405a6d6 | ||
|
|
2e1492c4fa | ||
|
|
16673df8cf | ||
|
|
cb4c26acfd | ||
|
|
fda7ca4574 | ||
|
|
8e2e8d1e82 | ||
|
|
4e36f47774 | ||
|
|
858dac73d0 | ||
|
|
3cccefb715 | ||
|
|
44640f33d2 | ||
|
|
2ae3b9bd8e | ||
|
|
2db991a371 | ||
|
|
2e52abd76c | ||
|
|
03c3acd214 | ||
|
|
c26b277c56 | ||
|
|
3f7fd40d17 | ||
|
|
0b01c0d236 | ||
|
|
3107b73430 | ||
|
|
5d421ae525 | ||
|
|
56a8495787 | ||
|
|
a12bc03dd7 | ||
|
|
6b1a65f8f4 | ||
|
|
9d94155480 | ||
|
|
3b46759134 | ||
|
|
8d21c653ae | ||
|
|
d983c44db7 | ||
|
|
467a1d92bb | ||
|
|
157d3e3e66 | ||
|
|
51bb320dce | ||
|
|
12c99c6857 | ||
|
|
62e905f336 | ||
|
|
9b5964a758 | ||
|
|
9c49a9c67d | ||
|
|
0a2461f4a5 | ||
|
|
49577ddbb6 | ||
|
|
6172b0c35f | ||
|
|
e7cc10692b | ||
|
|
221d2c717d | ||
|
|
2b54f742c5 | ||
|
|
f02eddcebe | ||
|
|
c25a5cef67 | ||
|
|
0f69ee951c | ||
|
|
fd6650db50 | ||
|
|
f2ad80665a | ||
|
|
cff9c94c27 | ||
|
|
b6fdc12820 | ||
|
|
01265faef9 | ||
|
|
a2feae891e | ||
|
|
bd24d4bcd1 | ||
|
|
0efbd9e23c | ||
|
|
4aab72fb10 | ||
|
|
aa266da5ac | ||
|
|
49987d55ce | ||
|
|
c6939efd70 | ||
|
|
f7f853f05e | ||
|
|
1faa540a70 | ||
|
|
1746c876bd | ||
|
|
cd0c015fea | ||
|
|
760b25b7a2 | ||
|
|
eccfad5615 | ||
|
|
27034e4bae | ||
|
|
99376c8fc2 | ||
|
|
17e7ba1ef2 | ||
|
|
38526890cc | ||
|
|
ae9b33d5f0 | ||
|
|
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 | ||
|
|
0a03f736ce | ||
|
|
8d7f6ffea5 | ||
|
|
93a6a7a88a | ||
|
|
3913b17596 | ||
|
|
d08e8eb40c | ||
|
|
c2d281658e | ||
|
|
108582cbfb | ||
|
|
b17db265f4 | ||
|
|
206739dcc5 | ||
|
|
adcb618a11 | ||
|
|
dfba3b6e84 | ||
|
|
2726859135 | ||
|
|
c0e20e6f25 | ||
|
|
148c2fc5a2 | ||
|
|
526f5e8946 | ||
|
|
8cd17b9d9a | ||
|
|
70ff46ab4b | ||
|
|
770348b07b | ||
|
|
4795cc23ad | ||
|
|
bae64dcee5 | ||
|
|
953a8d7110 | ||
|
|
3b5eaac976 | ||
|
|
6e28237ec5 | ||
|
|
b8c47948c3 | ||
|
|
0e8f9ad220 | ||
|
|
79e43e2740 | ||
|
|
c32d2958a6 | ||
|
|
3b7c934972 | ||
|
|
40f29d09c1 | ||
|
|
b601f2d860 | ||
|
|
5953d7c8dd | ||
|
|
e9859c0d32 | ||
|
|
4ad997515f | ||
|
|
ba637cf11e | ||
|
|
a4abcd1734 | ||
|
|
86bbd36813 | ||
|
|
c9dffc431c | ||
|
|
04ffd6257e | ||
|
|
4102f56cee | ||
|
|
6a62a6206a | ||
|
|
0bddceccfa | ||
|
|
09156fbc89 | ||
|
|
76d0075c7d | ||
|
|
6eab35ddd0 | ||
|
|
495e63dacc | ||
|
|
d965e7c7df | ||
|
|
060f2bd8de | ||
|
|
17585f3c75 | ||
|
|
79303ade8b | ||
|
|
d7e417eaf7 | ||
|
|
9622c65eb5 | ||
|
|
16ee1fb1c2 | ||
|
|
fd7d4bca24 | ||
|
|
a4627e8589 | ||
|
|
51dd978c8c | ||
|
|
1521a45dc1 | ||
|
|
03ac046feb | ||
|
|
ff9dc6c71e | ||
|
|
f8c6b80438 | ||
|
|
56c8b07e2e | ||
|
|
cd628038b4 | ||
|
|
efeebe6a86 | ||
|
|
ce6717292a | ||
|
|
c5b5002d27 | ||
|
|
4daa6dbb78 | ||
|
|
7ffe37117b | ||
|
|
112fe16f29 | ||
|
|
361a125118 | ||
|
|
6bd9b34f96 | ||
|
|
4938b5794a | ||
|
|
0e2e11655c | ||
|
|
4c591ca8e1 | ||
|
|
7b811ca0f8 | ||
|
|
46e18d0954 | ||
|
|
9df7afbf01 | ||
|
|
6d6ebb5ccc | ||
|
|
41fe5ebd82 | ||
|
|
1e2f4f4ca2 | ||
|
|
9a084c58bb | ||
|
|
0d66a1f4f2 | ||
|
|
ad891115a9 | ||
|
|
b38189d63e | ||
|
|
900e1aef46 | ||
|
|
2a43a96f9a | ||
|
|
11827bf68b | ||
|
|
bc3d58d406 | ||
|
|
4aed6f672e | ||
|
|
f40235bb2e | ||
|
|
67d323da42 | ||
|
|
2801509215 | ||
|
|
bb38dda0cb | ||
|
|
69830d82f7 | ||
|
|
b6c3444a55 | ||
|
|
172f8d8ad4 | ||
|
|
5ab207504d | ||
|
|
ec0ffc3584 | ||
|
|
2303446958 | ||
|
|
36f2c85ffe | ||
|
|
655edc071f | ||
|
|
2c3bd3a88e | ||
|
|
2944044a4a | ||
|
|
e846ac4923 | ||
|
|
2f2bc406f2 | ||
|
|
9a4a42f7ac | ||
|
|
99ebaa0364 | ||
|
|
4b651db8dc | ||
|
|
27f214c633 | ||
|
|
c59107a137 | ||
|
|
46a3c4b612 | ||
|
|
658348b4fd | ||
|
|
896ffe1282 | ||
|
|
d82ffc3617 | ||
|
|
8d83d727f3 | ||
|
|
c6e49bbf80 | ||
|
|
349db170a6 | ||
|
|
3f2dac39a0 | ||
|
|
439eb9309a | ||
|
|
c49f214bec | ||
|
|
7fb347063c | ||
|
|
da91c282b7 | ||
|
|
ff5a9d2274 | ||
|
|
fce9265b5d | ||
|
|
7b39a5e2b1 | ||
|
|
7b513f901c | ||
|
|
6e6b70c89f | ||
|
|
e0294195b9 | ||
|
|
7ecad206dc | ||
|
|
254aa2d043 | ||
|
|
1b4c435fab | ||
|
|
55688549fa | ||
|
|
fb69d05f06 | ||
|
|
cde1aeda0e | ||
|
|
2816fa88e4 | ||
|
|
9cc31b6e5b | ||
|
|
8f34fbf7a7 | ||
|
|
32df87d8bd | ||
|
|
50302c1fd4 | ||
|
|
7f4bb973b1 | ||
|
|
a542ba39aa | ||
|
|
7f8b013381 | ||
|
|
e455d50738 | ||
|
|
50533dd2a6 | ||
|
|
f432e14f3e | ||
|
|
7cc1c6ec77 | ||
|
|
3a8293d266 | ||
|
|
b5bc19443a | ||
|
|
d58bf81600 | ||
|
|
8398684cc6 | ||
|
|
53deb3ab85 | ||
|
|
d86057ef76 | ||
|
|
66a3dab237 | ||
|
|
6e9bab3502 | ||
|
|
ebdb9bc2c1 | ||
|
|
694b231983 | ||
|
|
3e56cf7d8c | ||
|
|
c1e8f7df04 | ||
|
|
c0ebe4a397 | ||
|
|
3dcb91b276 | ||
|
|
6a7606b3e0 | ||
|
|
6af48209e6 | ||
|
|
deefe6b33a | ||
|
|
8a1b583794 | ||
|
|
b55d2b9c06 | ||
|
|
891230144a | ||
|
|
58ea667430 | ||
|
|
8ba8bb6488 | ||
|
|
4062b31b7d | ||
|
|
59cc0fc887 | ||
|
|
521cbabee8 | ||
|
|
f897ae9b9d | ||
|
|
55c554910b | ||
|
|
c61f0c4906 | ||
|
|
336a0b61a3 | ||
|
|
ac7ca6d621 | ||
|
|
6245a8e12f | ||
|
|
8897ec01ec | ||
|
|
1e79f6385b | ||
|
|
8d413cabb8 | ||
|
|
99d013c039 | ||
|
|
03f65daef3 | ||
|
|
f86768c95b | ||
|
|
1a7c9abb16 | ||
|
|
c961cf9fde | ||
|
|
acbaa43ee6 | ||
|
|
cbdc6f6f77 | ||
|
|
75b6a07995 | ||
|
|
85e6eb6f73 | ||
|
|
c2599ed4a3 | ||
|
|
0fa7e8f562 | ||
|
|
b1d0ad8e16 | ||
|
|
e0762f504e | ||
|
|
453537ff68 | ||
|
|
069087c48b | ||
|
|
19eae41c33 | ||
|
|
202260c1d6 | ||
|
|
067b2bd75a | ||
|
|
2a6643eb68 | ||
|
|
59390cc6ec | ||
|
|
b20ba7a761 | ||
|
|
039043fe5b | ||
|
|
116153e77b | ||
|
|
1552374ce7 | ||
|
|
21acb9115d | ||
|
|
64ca6b9a41 | ||
|
|
c05f58fb5e | ||
|
|
6fe763c3ae | ||
|
|
2777ce56ea | ||
|
|
1678dadcbe | ||
|
|
9ab66b741d | ||
|
|
13ec7b606e | ||
|
|
e96e5821d0 | ||
|
|
6df63ea67e | ||
|
|
f0c0281ac2 | ||
|
|
b9d9fc565e | ||
|
|
6111c3530c | ||
|
|
2ba9eae7e6 | ||
|
|
431a93a7ff | ||
|
|
5d3e836156 | ||
|
|
c1234e2c16 | ||
|
|
aaf30e3bc2 | ||
|
|
aa5e935499 | ||
|
|
77e9258bd7 | ||
|
|
6ba94f49d4 | ||
|
|
264fef1142 | ||
|
|
a8be9a46c8 | ||
|
|
e8366d438c | ||
|
|
c915c72ef2 | ||
|
|
656ced6a2f | ||
|
|
cf0739b76a | ||
|
|
8a572f2961 | ||
|
|
d7ce6421a0 | ||
|
|
60a59e6c63 | ||
|
|
5acaa0736d | ||
|
|
640e7b231f | ||
|
|
6de40d53d7 | ||
|
|
bdd838cadd | ||
|
|
8fa3a11eb5 | ||
|
|
3a1b9071f8 | ||
|
|
ed655d6596 | ||
|
|
8dc2e6cbe1 | ||
|
|
cc21d555c5 | ||
|
|
367bdaf8d6 | ||
|
|
53042f376f | ||
|
|
5d003f94e2 | ||
|
|
7e218b7a5a | ||
|
|
1e1670aa22 | ||
|
|
ab2853084a | ||
|
|
07235ab583 | ||
|
|
c5e87d5fdc | ||
|
|
7a9288cd63 | ||
|
|
3347a054e0 | ||
|
|
59aa703416 | ||
|
|
e50f068c93 | ||
|
|
f566031911 | ||
|
|
5b133483e8 | ||
|
|
f31d5090b9 | ||
|
|
9021ca7a57 | ||
|
|
d891d4e5a2 | ||
|
|
dbcdf54e06 | ||
|
|
aea2b890df | ||
|
|
d66734607b | ||
|
|
c82e1673db | ||
|
|
66909990f5 | ||
|
|
138d91594d | ||
|
|
fa0f8d2a0c | ||
|
|
8f40363b2e | ||
|
|
c183840714 | ||
|
|
d24b9d08d9 | ||
|
|
eb5d62f778 | ||
|
|
8eee88c9c5 | ||
|
|
626e55ca65 | ||
|
|
a01bba76cb | ||
|
|
df6e147071 | ||
|
|
6d2f028dae | ||
|
|
a6807ba45b | ||
|
|
10314859db | ||
|
|
9e61476b06 | ||
|
|
43ab8e7922 | ||
|
|
ece0abc0c3 | ||
|
|
0da81c4e37 | ||
|
|
c46ea4026d | ||
|
|
03615d7b36 | ||
|
|
e6a3162ac8 | ||
|
|
0c838111c8 | ||
|
|
412b508a6e | ||
|
|
8640e3d24e | ||
|
|
3eec1f9713 | ||
|
|
da0dc823b8 | ||
|
|
d5f031b660 | ||
|
|
303ca2f691 | ||
|
|
8dd18fa45b | ||
|
|
7b330dd3e9 | ||
|
|
02aca6c23b | ||
|
|
c6ccc0fb9c | ||
|
|
65a85f7bd8 | ||
|
|
3f8c65d654 | ||
|
|
55447d724c | ||
|
|
ce129cd59f | ||
|
|
7cef38f50e | ||
|
|
d6e5753dd2 | ||
|
|
0f88932669 | ||
|
|
1f4317856c | ||
|
|
90f4253067 | ||
|
|
8b44a61797 | ||
|
|
eb1e5d2d85 | ||
|
|
25d169b14e | ||
|
|
db14636c58 | ||
|
|
33c6ddd250 | ||
|
|
1bc042d126 | ||
|
|
31c2372520 | ||
|
|
f7f0349f39 | ||
|
|
34181234e1 | ||
|
|
cded34fbd4 | ||
|
|
e2223ac7a6 | ||
|
|
ffcd872f4a | ||
|
|
d34a835363 | ||
|
|
40d17f9641 | ||
|
|
9eb543467b | ||
|
|
86594de18d | ||
|
|
14efa10683 | ||
|
|
7f38c6b346 | ||
|
|
17cf7d40c5 | ||
|
|
9ff8506035 | ||
|
|
757ffcd129 | ||
|
|
ac96ff595a | ||
|
|
7c1fe558f9 | ||
|
|
98ec0aca45 | ||
|
|
df105a2233 | ||
|
|
a33c58941c | ||
|
|
33c0c4402f | ||
|
|
1529115fb5 | ||
|
|
210b90ff8f | ||
|
|
e9a69651d7 | ||
|
|
e576af72b7 | ||
|
|
e5e88e3a5e | ||
|
|
957cde8384 | ||
|
|
ddc8818aae | ||
|
|
252339d36c | ||
|
|
0803dd5214 | ||
|
|
586af0aac3 | ||
|
|
65032dc3a0 | ||
|
|
a6c617fc44 | ||
|
|
f0a3a04edb | ||
|
|
df8e913831 | ||
|
|
d78a6c4ed7 | ||
|
|
cb542f1e77 |
26
.devcontainer.json
Normal file
26
.devcontainer.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"name": "NSPanel Lovelace UI Home Assistant add-on repository",
|
||||||
|
"image": "ghcr.io/home-assistant/devcontainer:addons",
|
||||||
|
"appPort": ["7123:8123", "7357:4357"],
|
||||||
|
"postCreateCommand": "apt install -y python3 python3-pip && pip install -r nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/requirements.txt --break-system-packages",
|
||||||
|
"postStartCommand": "bash devcontainer_bootstrap",
|
||||||
|
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
||||||
|
"remoteUser":"root",
|
||||||
|
"containerEnv": {
|
||||||
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||||
|
},
|
||||||
|
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
|
||||||
|
"mounts": ["type=volume,target=/var/lib/docker"],
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.profiles.linux": {
|
||||||
|
"zsh": {
|
||||||
|
"path": "/usr/bin/zsh"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
||||||
|
"editor.formatOnPaste": false,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
|
"files.trimTrailingWhitespace": true
|
||||||
|
}
|
||||||
|
}
|
||||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -58,5 +58,5 @@ _If applicable, add screenshots/pictures to help explain your problem._
|
|||||||
_Add any other context about the problem here._
|
_Add any other context about the problem here._
|
||||||
_Please note here in case you are using ioBroker_
|
_Please note here in case you are using ioBroker_
|
||||||
|
|
||||||
### PANEL / FIRMWARE VERION
|
### PANEL / FIRMWARE VERSION
|
||||||
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
@@ -24,5 +24,5 @@ _A clear and concise description of what the feature should do._
|
|||||||
### ADDITIONAL CONTEXT
|
### ADDITIONAL CONTEXT
|
||||||
_Add any other context about the problem here._
|
_Add any other context about the problem here._
|
||||||
|
|
||||||
### PANEL / FIRMWARE VERION
|
### PANEL / FIRMWARE VERSION
|
||||||
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
||||||
|
|||||||
7
.github/dependabot.yaml
vendored
Normal file
7
.github/dependabot.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
time: "06:00"
|
||||||
111
.github/workflows/builder.yaml
vendored
Normal file
111
.github/workflows/builder.yaml
vendored
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
name: Builder
|
||||||
|
|
||||||
|
env:
|
||||||
|
BUILD_ARGS: "--test"
|
||||||
|
MONITORED_FILES: "build.yaml config.yaml Dockerfile rootfs"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
init:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Initialize builds
|
||||||
|
outputs:
|
||||||
|
changed_addons: ${{ steps.changed_addons.outputs.addons }}
|
||||||
|
changed: ${{ steps.changed_addons.outputs.changed }}
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed_files
|
||||||
|
uses: jitterbit/get-changed-files@v1
|
||||||
|
|
||||||
|
- name: Find add-on directories
|
||||||
|
id: addons
|
||||||
|
uses: home-assistant/actions/helpers/find-addons@master
|
||||||
|
|
||||||
|
- name: Get changed add-ons
|
||||||
|
id: changed_addons
|
||||||
|
run: |
|
||||||
|
declare -a changed_addons
|
||||||
|
for addon in ${{ steps.addons.outputs.addons }}; do
|
||||||
|
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon ]]; then
|
||||||
|
for file in ${{ env.MONITORED_FILES }}; do
|
||||||
|
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon/$file ]]; then
|
||||||
|
if [[ ! "${changed_addons[@]}" =~ $addon ]]; then
|
||||||
|
changed_addons+=("\"${addon}\",");
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
changed=$(echo ${changed_addons[@]} | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
if [[ -n ${changed} ]]; then
|
||||||
|
echo "Changed add-ons: $changed";
|
||||||
|
echo "changed=true" >> $GITHUB_OUTPUT;
|
||||||
|
echo "addons=[$changed]" >> $GITHUB_OUTPUT;
|
||||||
|
else
|
||||||
|
echo "No add-on had any monitored files changed (${{ env.MONITORED_FILES }})";
|
||||||
|
fi
|
||||||
|
build:
|
||||||
|
needs: init
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: needs.init.outputs.changed == 'true'
|
||||||
|
name: Build ${{ matrix.arch }} ${{ matrix.addon }} add-on
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
addon: ${{ fromJson(needs.init.outputs.changed_addons) }}
|
||||||
|
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get information
|
||||||
|
id: info
|
||||||
|
uses: home-assistant/actions/helpers/info@master
|
||||||
|
with:
|
||||||
|
path: "./${{ matrix.addon }}"
|
||||||
|
|
||||||
|
- name: Check if add-on should be built
|
||||||
|
id: check
|
||||||
|
run: |
|
||||||
|
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
||||||
|
echo "build_arch=true" >> $GITHUB_OUTPUT;
|
||||||
|
echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_OUTPUT;
|
||||||
|
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
||||||
|
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build";
|
||||||
|
echo "build_arch=false" >> $GITHUB_OUTPUT;
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
if: env.BUILD_ARGS != '--test'
|
||||||
|
uses: docker/login-action@v3.5.0
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build ${{ matrix.addon }} add-on
|
||||||
|
if: steps.check.outputs.build_arch == 'true'
|
||||||
|
uses: home-assistant/builder@2025.03.0
|
||||||
|
with:
|
||||||
|
args: |
|
||||||
|
${{ env.BUILD_ARGS }} \
|
||||||
|
--${{ matrix.arch }} \
|
||||||
|
--target /data/${{ matrix.addon }} \
|
||||||
|
--image "${{ steps.check.outputs.image }}" \
|
||||||
|
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
||||||
|
--addon
|
||||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -43,11 +43,11 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
name: docs-ci
|
name: docs-ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- dev
|
||||||
paths:
|
paths:
|
||||||
- docs/*
|
- docs/*
|
||||||
- .github/workflows/docs.yml
|
- .github/workflows/docs.yml
|
||||||
@@ -15,10 +15,14 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v2
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material mkdocs-video markdown-include
|
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||||
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
||||||
- run: mkdocs gh-deploy --force
|
- run: git config --global user.name Docs deploy
|
||||||
|
- run: git config --global user.email docs@dummy.bot.com
|
||||||
|
- run: mike deploy --push --update-aliases dev
|
||||||
29
.github/workflows/docs-release.yml
vendored
Normal file
29
.github/workflows/docs-release.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: docs-ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- docs/*
|
||||||
|
- .github/workflows/docs-release.yml
|
||||||
|
- mkdocs.yml
|
||||||
|
- HMI/README.md
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||||
|
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
||||||
|
- run: git config --global user.name Docs deploy
|
||||||
|
- run: git config --global user.email docs@dummy.bot.com
|
||||||
|
- run: mike set-default stable
|
||||||
|
- run: mike deploy --push --update-aliases stable
|
||||||
2
.github/workflows/hacs-validation.yaml
vendored
2
.github/workflows/hacs-validation.yaml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
name: HACS Action
|
name: HACS Action
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v2"
|
- uses: "actions/checkout@v4"
|
||||||
- name: HACS Action
|
- name: HACS Action
|
||||||
uses: "hacs/action@main"
|
uses: "hacs/action@main"
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/iobroker-localization.yml
vendored
4
.github/workflows/iobroker-localization.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
gen-ioBroker-localization:
|
gen-ioBroker-localization:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
python HMI/code_gen/localization/iobroker.py
|
python HMI/code_gen/localization/iobroker.py
|
||||||
mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json
|
mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Update iobroker localization file
|
commit_message: Update iobroker localization file
|
||||||
#file_pattern: "**.txt"
|
#file_pattern: "**.txt"
|
||||||
|
|||||||
41
.github/workflows/lint.yaml
vendored
Normal file
41
.github/workflows/lint.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
find:
|
||||||
|
name: Find add-ons
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
addons: ${{ steps.addons.outputs.addons_list }}
|
||||||
|
steps:
|
||||||
|
- name: ⤵️ Check out code from GitHub
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🔍 Find add-on directories
|
||||||
|
id: addons
|
||||||
|
uses: home-assistant/actions/helpers/find-addons@master
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint add-on ${{ matrix.path }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: find
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
path: ${{ fromJson(needs.find.outputs.addons) }}
|
||||||
|
steps:
|
||||||
|
- name: ⤵️ Check out code from GitHub
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚀 Run Home Assistant Add-on Lint
|
||||||
|
uses: frenck/action-addon-linter@v2.18
|
||||||
|
with:
|
||||||
|
path: "./${{ matrix.path }}"
|
||||||
4
.github/workflows/nextion2text.yml
vendored
4
.github/workflows/nextion2text.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
find -name "**.txt"
|
find -name "**.txt"
|
||||||
rm Nextion2Text.py* ignore-id.py out.txt
|
rm Nextion2Text.py* ignore-id.py out.txt
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text)
|
commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text)
|
||||||
#file_pattern: "**.txt"
|
#file_pattern: "**.txt"
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,5 +2,8 @@ __pycache__/
|
|||||||
# don't add nextion2text
|
# don't add nextion2text
|
||||||
HMI/Nextion2Text.py
|
HMI/Nextion2Text.py
|
||||||
|
|
||||||
|
# dont add panels.yaml
|
||||||
|
panels.yaml
|
||||||
|
|
||||||
# don't add Webstorm project stuff
|
# don't add Webstorm project stuff
|
||||||
.idea
|
.idea
|
||||||
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Python: Current File",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "main.py",
|
||||||
|
"cwd": "/workspaces/nspanel-lovelace-ui/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"justMyCode": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
19
.vscode/tasks.json
vendored
Normal file
19
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Start Home Assistant",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "supervisor_run",
|
||||||
|
"group": {
|
||||||
|
"kind": "test",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "new"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -14,6 +14,75 @@
|
|||||||
│ + //lcd_dev fffb 0002 0000 0020
|
│ + //lcd_dev fffb 0002 0000 0020
|
||||||
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
│ page pageStartup
|
│ page pageStartup
|
||||||
|
│ --- HMI/n2t-out/cardEntities.txt
|
||||||
|
├── +++ HMI/US/landscape/n2t-out/cardEntities.txt
|
||||||
|
│ @@ -20,15 +20,14 @@
|
||||||
|
│ crcputs tSend.txt,0
|
||||||
|
│ //send cmd
|
||||||
|
│ printh 55 bb
|
||||||
|
│ prints sys0,2
|
||||||
|
│ prints tSend.txt,0
|
||||||
|
│ prints crcval,2
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ //wup=cardEntities
|
||||||
|
│ //remove background & activate reparse mode
|
||||||
|
│ vis p0,0
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ //debug stuff
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ --- HMI/n2t-out/cardThermo.txt
|
||||||
|
├── +++ HMI/US/landscape/n2t-out/cardThermo.txt
|
||||||
|
│ @@ -28,14 +28,19 @@
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis xTempMin1,0
|
||||||
|
│ vis xTempMax1,0
|
||||||
|
│ vis xTempStep1,0
|
||||||
|
│ + vis xTempDest,0
|
||||||
|
│ + vis btUp,0
|
||||||
|
│ + vis btDown,0
|
||||||
|
│ + vis tCF,0
|
||||||
|
│ + vis btDetail,0
|
||||||
|
│ //tEntity.txt=tHeading.txt
|
||||||
|
│ // disable all buttons
|
||||||
|
│ vis bt0,0
|
||||||
|
│ vis bt1,0
|
||||||
|
│ vis bt2,0
|
||||||
|
│ vis bt3,0
|
||||||
|
│ vis bt4,0
|
||||||
|
│ @@ -1014,14 +1019,28 @@
|
||||||
|
│ vis xTempDest1,1
|
||||||
|
│ vis btDown1,1
|
||||||
|
│ vis tCF1,1
|
||||||
|
│ vis bUp2,1
|
||||||
|
│ vis xTempDest2,1
|
||||||
|
│ vis bDown2,1
|
||||||
|
│ vis tCF2,1
|
||||||
|
│ + }else
|
||||||
|
│ + {
|
||||||
|
│ + vis btUp,1
|
||||||
|
│ + vis xTempDest,1
|
||||||
|
│ + vis btDown,1
|
||||||
|
│ + vis tCF,1
|
||||||
|
│ + vis btUp1,0
|
||||||
|
│ + vis xTempDest1,0
|
||||||
|
│ + vis btDown1,0
|
||||||
|
│ + vis tCF1,0
|
||||||
|
│ + vis bUp2,0
|
||||||
|
│ + vis xTempDest2,0
|
||||||
|
│ + vis bDown2,0
|
||||||
|
│ + vis tCF2,0
|
||||||
|
│ }
|
||||||
|
│ //Show btDetail
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",58
|
||||||
|
│ if(tTmp.txt!="1")
|
||||||
|
│ {
|
||||||
|
│ vis btDetail,1
|
||||||
|
│ }else
|
||||||
│ --- HMI/n2t-out/pageStartup.txt
|
│ --- HMI/n2t-out/pageStartup.txt
|
||||||
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
|
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
|
||||||
│ @@ -164,15 +164,15 @@
|
│ @@ -164,15 +164,15 @@
|
||||||
@@ -33,9 +102,68 @@
|
|||||||
│ crcputs sys0,2
|
│ crcputs sys0,2
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
|
│ --- HMI/n2t-out/popupLight.txt
|
||||||
|
├── +++ HMI/US/landscape/n2t-out/popupLight.txt
|
||||||
|
│ @@ -453,19 +453,14 @@
|
||||||
|
│ 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)
|
||||||
|
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
|
│ {
|
||||||
|
│ // change icon
|
||||||
|
│ - spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
│ - if(tTmp.txt!="")
|
||||||
|
│ - {
|
||||||
|
│ - tIcon1.txt=tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ //spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
|
│ vis tIcon1,1
|
||||||
|
│ // change icon color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
│ covx tTmp.txt,sys0,0,0
|
||||||
|
│ tIcon1.pco=sys0
|
||||||
|
│ // get Button State
|
||||||
|
│ --- 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
|
||||||
│ @@ -28,17 +28,14 @@
|
│ @@ -19,15 +19,14 @@
|
||||||
|
│ crcputs sys0,2
|
||||||
|
│ crcputs tSend.txt,0
|
||||||
|
│ //send cmd
|
||||||
|
│ printh 55 bb
|
||||||
|
│ prints sys0,2
|
||||||
|
│ prints tSend.txt,0
|
||||||
|
│ prints crcval,2
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tNotifyHead,0
|
||||||
|
│ vis tNotifyText,0
|
||||||
|
│ @@ -41,17 +40,14 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -53,7 +181,7 @@
|
|||||||
│ Max. Text Size: 600
|
│ Max. Text Size: 600
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -102,34 +99,14 @@
|
│ @@ -115,34 +111,14 @@
|
||||||
│ Value: 0
|
│ Value: 0
|
||||||
│
|
│
|
||||||
│ Variable (int32) ycR
|
│ Variable (int32) ycR
|
||||||
@@ -88,9 +216,43 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : |
|
│ Text : |
|
||||||
|
│ @@ -485,17 +461,14 @@
|
||||||
|
│ //get set time to global variable
|
||||||
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
│ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||||
|
│ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||||
|
│ if(tAMPM.txt=="")
|
||||||
|
│ {
|
||||||
|
│ vis tAMPM,0
|
||||||
|
│ - }else
|
||||||
|
│ - {
|
||||||
|
│ - vis tAMPM,1
|
||||||
|
│ }
|
||||||
|
│ spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
|
│ ref tIcon1
|
||||||
|
│ ref tIcon2
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="date")
|
||||||
|
│ {
|
||||||
│ --- HMI/n2t-out/screensaver2.txt
|
│ --- HMI/n2t-out/screensaver2.txt
|
||||||
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
|
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
|
||||||
│ @@ -28,17 +28,14 @@
|
│ @@ -19,15 +19,14 @@
|
||||||
|
│ crcputs sys0,2
|
||||||
|
│ crcputs tSend.txt,0
|
||||||
|
│ //send cmd
|
||||||
|
│ printh 55 bb
|
||||||
|
│ prints sys0,2
|
||||||
|
│ prints tSend.txt,0
|
||||||
|
│ prints crcval,2
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tNotifyHead,0
|
||||||
|
│ vis tNotifyText,0
|
||||||
|
│ @@ -41,52 +40,19 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -101,14 +263,80 @@
|
|||||||
│ - 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: 1935
|
||||||
|
│ + Max. Text Size: 1979
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -363,34 +360,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: 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,165 +336,50 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -116,6 +344,137 @@
|
|||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size : 4
|
│ Max. Text Size : 4
|
||||||
│
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - if(entn1.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn2.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn3.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn4.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn5.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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
|
||||||
@@ -143,7 +502,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : PM
|
│ Text : PM
|
||||||
│ @@ -572,15 +549,14 @@
|
│ @@ -710,15 +561,14 @@
|
||||||
│ if(tTmp.txt!="")
|
│ if(tTmp.txt!="")
|
||||||
│ {
|
│ {
|
||||||
│ covx tTmp.txt,defaultFontColor,0,0
|
│ covx tTmp.txt,defaultFontColor,0,0
|
||||||
@@ -159,3 +518,48 @@
|
|||||||
│ if(tAMPM.txt=="")
|
│ if(tAMPM.txt=="")
|
||||||
│ {
|
│ {
|
||||||
│ vis tAMPM,0
|
│ vis tAMPM,0
|
||||||
|
│ @@ -839,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!="")
|
||||||
|
│ {
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardAlarm
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardEntities
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//wup=cardEntities
|
//wup=cardEntities
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardGrid
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1424,6 +1436,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardGrid2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1710,6 +1722,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardLChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardMedia
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -1741,6 +1753,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardPower
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardQR
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardThermo
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -28,6 +40,11 @@ Page cardThermo
|
|||||||
vis xTempMin1,0
|
vis xTempMin1,0
|
||||||
vis xTempMax1,0
|
vis xTempMax1,0
|
||||||
vis xTempStep1,0
|
vis xTempStep1,0
|
||||||
|
vis xTempDest,0
|
||||||
|
vis btUp,0
|
||||||
|
vis btDown,0
|
||||||
|
vis tCF,0
|
||||||
|
vis btDetail,0
|
||||||
//tEntity.txt=tHeading.txt
|
//tEntity.txt=tHeading.txt
|
||||||
// disable all buttons
|
// disable all buttons
|
||||||
vis bt0,0
|
vis bt0,0
|
||||||
@@ -1730,6 +1747,20 @@ Timer tmSerial
|
|||||||
vis xTempDest2,1
|
vis xTempDest2,1
|
||||||
vis bDown2,1
|
vis bDown2,1
|
||||||
vis tCF2,1
|
vis tCF2,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis btUp,1
|
||||||
|
vis xTempDest,1
|
||||||
|
vis btDown,1
|
||||||
|
vis tCF,1
|
||||||
|
vis btUp1,0
|
||||||
|
vis xTempDest1,0
|
||||||
|
vis btDown1,0
|
||||||
|
vis tCF1,0
|
||||||
|
vis bUp2,0
|
||||||
|
vis xTempDest2,0
|
||||||
|
vis bDown2,0
|
||||||
|
vis tCF2,0
|
||||||
}
|
}
|
||||||
//Show btDetail
|
//Show btDetail
|
||||||
spstr strCommand.txt,tTmp.txt,"~",58
|
spstr strCommand.txt,tTmp.txt,"~",58
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ popupTimer
|
|||||||
42 Component(s)
|
42 Component(s)
|
||||||
516 Line(s) of event code
|
516 Line(s) of event code
|
||||||
257 Unique line(s) of event code
|
257 Unique line(s) of event code
|
||||||
cardChart
|
cardLChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
437 Line(s) of event code
|
412 Line(s) of event code
|
||||||
296 Unique line(s) of event code
|
267 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
|
||||||
@@ -42,61 +42,61 @@ popupFan
|
|||||||
27 Component(s)
|
27 Component(s)
|
||||||
355 Line(s) of event code
|
355 Line(s) of event code
|
||||||
206 Unique line(s) of event code
|
206 Unique line(s) of event code
|
||||||
|
cardChart
|
||||||
|
33 Component(s)
|
||||||
|
447 Line(s) of event code
|
||||||
|
297 Unique line(s) of event code
|
||||||
cardQR
|
cardQR
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
410 Line(s) of event code
|
420 Line(s) of event code
|
||||||
238 Unique line(s) of event code
|
239 Unique line(s) of event code
|
||||||
cardAlarm
|
|
||||||
43 Component(s)
|
|
||||||
500 Line(s) of event code
|
|
||||||
273 Unique line(s) of event code
|
|
||||||
popupLightNew
|
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
|
||||||
screensaver
|
screensaver2
|
||||||
46 Component(s)
|
58 Component(s)
|
||||||
435 Line(s) of event code
|
362 Line(s) of event code
|
||||||
309 Unique line(s) of event code
|
248 Unique line(s) of event code
|
||||||
cardPower
|
|
||||||
54 Component(s)
|
|
||||||
531 Line(s) of event code
|
|
||||||
349 Unique line(s) of event code
|
|
||||||
cardLChart
|
|
||||||
33 Component(s)
|
|
||||||
402 Line(s) of event code
|
|
||||||
266 Unique line(s) of event code
|
|
||||||
cardThermo
|
cardThermo
|
||||||
57 Component(s)
|
57 Component(s)
|
||||||
540 Line(s) of event code
|
569 Line(s) of event code
|
||||||
319 Unique line(s) of event code
|
337 Unique line(s) of event code
|
||||||
cardGrid
|
cardAlarm
|
||||||
44 Component(s)
|
43 Component(s)
|
||||||
579 Line(s) of event code
|
510 Line(s) of event code
|
||||||
330 Unique line(s) of event code
|
274 Unique line(s) of event code
|
||||||
cardMedia
|
cardMedia
|
||||||
59 Component(s)
|
59 Component(s)
|
||||||
699 Line(s) of event code
|
713 Line(s) of event code
|
||||||
354 Unique line(s) of event code
|
357 Unique line(s) of event code
|
||||||
|
screensaver
|
||||||
|
46 Component(s)
|
||||||
|
445 Line(s) of event code
|
||||||
|
310 Unique line(s) of event code
|
||||||
popupLight
|
popupLight
|
||||||
28 Component(s)
|
28 Component(s)
|
||||||
412 Line(s) of event code
|
412 Line(s) of event code
|
||||||
227 Unique line(s) of event code
|
227 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
44 Component(s)
|
||||||
|
593 Line(s) of event code
|
||||||
|
333 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
54 Component(s)
|
||||||
|
541 Line(s) of event code
|
||||||
|
350 Unique line(s) of event code
|
||||||
cardGrid2
|
cardGrid2
|
||||||
52 Component(s)
|
52 Component(s)
|
||||||
689 Line(s) of event code
|
703 Line(s) of event code
|
||||||
382 Unique line(s) of event code
|
385 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
67 Component(s)
|
67 Component(s)
|
||||||
1194 Line(s) of event code
|
1204 Line(s) of event code
|
||||||
535 Unique line(s) of event code
|
536 Unique line(s) of event code
|
||||||
screensaver2
|
|
||||||
58 Component(s)
|
|
||||||
352 Line(s) of event code
|
|
||||||
247 Unique line(s) of event code
|
|
||||||
|
|
||||||
Total
|
Total
|
||||||
23 Page(s)
|
23 Page(s)
|
||||||
875 Component(s)
|
875 Component(s)
|
||||||
10556 Line(s) of event code
|
10707 Line(s) of event code
|
||||||
2450 Unique line(s) of event code
|
2466 Unique line(s) of event code
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page screensaver
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page screensaver2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardAlarm
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardEntities
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//wup=cardEntities
|
//wup=cardEntities
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardGrid
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -976,6 +988,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardGrid2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1174,6 +1186,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardLChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardMedia
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -1253,6 +1265,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardPower
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardQR
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardThermo
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -20,6 +32,11 @@ Page cardThermo
|
|||||||
vis xTempMin1,0
|
vis xTempMin1,0
|
||||||
vis xTempMax1,0
|
vis xTempMax1,0
|
||||||
vis xTempStep1,0
|
vis xTempStep1,0
|
||||||
|
vis xTempDest,0
|
||||||
|
vis btUp,0
|
||||||
|
vis btDown,0
|
||||||
|
vis tCF,0
|
||||||
|
vis btDetail,0
|
||||||
//tEntity.txt=tHeading.txt
|
//tEntity.txt=tHeading.txt
|
||||||
// disable all buttons
|
// disable all buttons
|
||||||
vis bt0,0
|
vis bt0,0
|
||||||
@@ -1006,6 +1023,20 @@ Timer tmSerial
|
|||||||
vis xTempDest2,1
|
vis xTempDest2,1
|
||||||
vis bDown2,1
|
vis bDown2,1
|
||||||
vis tCF2,1
|
vis tCF2,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis btUp,1
|
||||||
|
vis xTempDest,1
|
||||||
|
vis btDown,1
|
||||||
|
vis tCF,1
|
||||||
|
vis btUp1,0
|
||||||
|
vis xTempDest1,0
|
||||||
|
vis btDown1,0
|
||||||
|
vis tCF1,0
|
||||||
|
vis bUp2,0
|
||||||
|
vis xTempDest2,0
|
||||||
|
vis bDown2,0
|
||||||
|
vis tCF2,0
|
||||||
}
|
}
|
||||||
//Show btDetail
|
//Show btDetail
|
||||||
spstr strCommand.txt,tTmp.txt,"~",58
|
spstr strCommand.txt,tTmp.txt,"~",58
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page screensaver
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page screensaver2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -16,9 +16,95 @@
|
|||||||
│ + //lcd_dev fffb 0002 0000 0020
|
│ + //lcd_dev fffb 0002 0000 0020
|
||||||
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
│ printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
│ page pageStartup
|
│ page pageStartup
|
||||||
|
│ --- HMI/n2t-out/cardAlarm.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardAlarm.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis arm1,0
|
||||||
|
│ --- HMI/n2t-out/cardChart.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardChart.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis bPrev,0
|
||||||
│ --- HMI/n2t-out/cardEntities.txt
|
│ --- HMI/n2t-out/cardEntities.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
|
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
│ @@ -60,16 +60,36 @@
|
│ @@ -7,27 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ //wup=cardEntities
|
||||||
|
│ //remove background & activate reparse mode
|
||||||
|
│ vis p0,0
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ //debug stuff
|
||||||
|
│ @@ -73,16 +60,36 @@
|
||||||
│ vis tIcon4,0
|
│ vis tIcon4,0
|
||||||
│ vis tEntity4,0
|
│ vis tEntity4,0
|
||||||
│ vis bText4,0
|
│ vis bText4,0
|
||||||
@@ -56,7 +142,7 @@
|
|||||||
│ b[sys0].pco=defaultFontColor
|
│ b[sys0].pco=defaultFontColor
|
||||||
│ }
|
│ }
|
||||||
│ if(b[sys0].type==53&&defaultBcoColor==0)
|
│ if(b[sys0].type==53&&defaultBcoColor==0)
|
||||||
│ @@ -85,45 +105,57 @@
|
│ @@ -98,45 +105,57 @@
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│
|
│
|
||||||
@@ -120,7 +206,7 @@
|
|||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size: 500
|
│ Max. Text Size: 500
|
||||||
│
|
│
|
||||||
│ @@ -153,14 +185,26 @@
|
│ @@ -166,14 +185,26 @@
|
||||||
│
|
│
|
||||||
│ Variable (string) type4
|
│ Variable (string) type4
|
||||||
│ Attributes
|
│ Attributes
|
||||||
@@ -147,7 +233,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Value : 0
|
│ Value : 0
|
||||||
│ @@ -185,14 +229,30 @@
|
│ @@ -198,14 +229,30 @@
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
@@ -178,7 +264,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : tEntity1
|
│ Text : tEntity1
|
||||||
│ @@ -221,14 +281,32 @@
|
│ @@ -234,14 +281,32 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -211,7 +297,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -266,14 +344,32 @@
|
│ @@ -279,14 +344,32 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -244,7 +330,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -407,14 +503,68 @@
|
│ @@ -420,14 +503,68 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -313,7 +399,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text : î
|
│ Text : î
|
||||||
│ @@ -503,14 +653,62 @@
|
│ @@ -516,14 +653,62 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -376,7 +462,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text : î³
|
│ Text : î³
|
||||||
│ @@ -647,14 +845,62 @@
|
│ @@ -660,14 +845,62 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -439,7 +525,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -743,14 +989,62 @@
|
│ @@ -756,14 +989,62 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -502,7 +588,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text : î
|
│ Text : î
|
||||||
│ @@ -839,14 +1133,62 @@
|
│ @@ -852,14 +1133,62 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -565,7 +651,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -943,14 +1285,66 @@
|
│ @@ -956,14 +1285,66 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -632,7 +718,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│
|
│
|
||||||
│ Events
|
│ Events
|
||||||
│ @@ -1099,14 +1493,92 @@
|
│ @@ -1112,14 +1493,92 @@
|
||||||
│ page popupInSel
|
│ page popupInSel
|
||||||
│ }
|
│ }
|
||||||
│ if(type4.txt=="timer")
|
│ if(type4.txt=="timer")
|
||||||
@@ -725,7 +811,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│
|
│
|
||||||
│ Events
|
│ Events
|
||||||
│ @@ -1830,14 +2302,312 @@
|
│ @@ -1843,14 +2302,312 @@
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ hSlider4.minval=sys0
|
│ hSlider4.minval=sys0
|
||||||
│ //third value is max value
|
│ //third value is max value
|
||||||
@@ -1038,9 +1124,65 @@
|
|||||||
│ //command format pageType,specialPageName
|
│ //command format pageType,specialPageName
|
||||||
│ //write name of speical page to tId
|
│ //write name of speical page to tId
|
||||||
│ spstr strCommand.txt,tId.txt,"~",1
|
│ spstr strCommand.txt,tId.txt,"~",1
|
||||||
|
│ --- HMI/n2t-out/cardGrid.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardGrid.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ //remove background & activate reparse mode
|
||||||
|
│ vis p0,0
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ //debug stuff
|
||||||
|
│ vis tTmp,0
|
||||||
│ --- HMI/n2t-out/cardGrid2.txt
|
│ --- HMI/n2t-out/cardGrid2.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
├── +++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
||||||
│ @@ -25,26 +25,28 @@
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ //remove background & activate reparse mode
|
||||||
|
│ vis p0,0
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ //debug stuff
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ @@ -37,26 +25,28 @@
|
||||||
│ vis bEntity2,0
|
│ vis bEntity2,0
|
||||||
│ vis bEntity3,0
|
│ vis bEntity3,0
|
||||||
│ vis bEntity4,0
|
│ vis bEntity4,0
|
||||||
@@ -1070,7 +1212,7 @@
|
|||||||
│ b[sys0].pco=defaultFontColor
|
│ b[sys0].pco=defaultFontColor
|
||||||
│ }
|
│ }
|
||||||
│ }
|
│ }
|
||||||
│ @@ -93,14 +95,20 @@
|
│ @@ -105,14 +95,20 @@
|
||||||
│
|
│
|
||||||
│ Variable (string) entn8
|
│ Variable (string) entn8
|
||||||
│ Attributes
|
│ Attributes
|
||||||
@@ -1091,7 +1233,7 @@
|
|||||||
│ Max. Text Size: 80
|
│ Max. Text Size: 80
|
||||||
│
|
│
|
||||||
│ Variable (string) nent2
|
│ Variable (string) nent2
|
||||||
│ @@ -165,14 +173,20 @@
|
│ @@ -177,14 +173,20 @@
|
||||||
│
|
│
|
||||||
│ Variable (string) type8
|
│ Variable (string) type8
|
||||||
│ Attributes
|
│ Attributes
|
||||||
@@ -1112,7 +1254,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : tEntity1
|
│ Text : tEntity1
|
||||||
│ @@ -237,14 +251,23 @@
|
│ @@ -249,14 +251,23 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1136,7 +1278,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -631,14 +654,58 @@
|
│ @@ -643,14 +654,58 @@
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
│ printh 55 bb
|
│ printh 55 bb
|
||||||
@@ -1195,7 +1337,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text : î³
|
│ Text : î³
|
||||||
│ @@ -1093,14 +1160,46 @@
|
│ @@ -1105,14 +1160,46 @@
|
||||||
│ spstr strCommand.txt,tTmp.txt,"~",59
|
│ spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ bEntity8.pco=sys0
|
│ bEntity8.pco=sys0
|
||||||
@@ -1242,9 +1384,94 @@
|
|||||||
│ //command format pageType,specialPageName
|
│ //command format pageType,specialPageName
|
||||||
│ //write name of speical page to tId
|
│ //write name of speical page to tId
|
||||||
│ spstr strCommand.txt,tId.txt,"~",1
|
│ spstr strCommand.txt,tId.txt,"~",1
|
||||||
|
│ --- HMI/n2t-out/cardLChart.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardLChart.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis bPrev,0
|
||||||
|
│ --- HMI/n2t-out/cardMedia.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardMedia.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis t5,0
|
||||||
│ --- HMI/n2t-out/cardPower.txt
|
│ --- HMI/n2t-out/cardPower.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/cardPower.txt
|
├── +++ HMI/US/portrait/n2t-out/cardPower.txt
|
||||||
│ @@ -45,16 +45,16 @@
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis bPrev,0
|
||||||
|
│ @@ -57,16 +45,16 @@
|
||||||
│ b[sys0].bco=defaultBcoColor
|
│ b[sys0].bco=defaultBcoColor
|
||||||
│ b[sys0].pco=defaultFontColor
|
│ b[sys0].pco=defaultFontColor
|
||||||
│ }
|
│ }
|
||||||
@@ -1263,7 +1490,7 @@
|
|||||||
│
|
│
|
||||||
│ Variable (string) nent1
|
│ Variable (string) nent1
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ @@ -75,39 +75,75 @@
|
│ @@ -87,39 +75,75 @@
|
||||||
│ Max. Text Size: 1000
|
│ Max. Text Size: 1000
|
||||||
│
|
│
|
||||||
│ Variable (int32) t0Speed
|
│ Variable (int32) t0Speed
|
||||||
@@ -1339,7 +1566,7 @@
|
|||||||
│ Max. Text Size: 20
|
│ Max. Text Size: 20
|
||||||
│
|
│
|
||||||
│ Variable (string) tInstruction
|
│ Variable (string) tInstruction
|
||||||
│ @@ -133,23 +169,14 @@
|
│ @@ -145,23 +169,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1363,7 +1590,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -169,23 +196,14 @@
|
│ @@ -181,23 +196,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1387,7 +1614,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -196,23 +214,14 @@
|
│ @@ -208,23 +214,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1411,7 +1638,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -223,23 +232,14 @@
|
│ @@ -235,23 +232,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1435,7 +1662,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -250,23 +250,14 @@
|
│ @@ -262,23 +250,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1459,7 +1686,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -277,23 +268,14 @@
|
│ @@ -289,23 +268,14 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1483,7 +1710,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -498,85 +480,79 @@
|
│ @@ -510,85 +480,79 @@
|
||||||
│ h0.val=h0.minval
|
│ h0.val=h0.minval
|
||||||
│ }
|
│ }
|
||||||
│ if(sys0<h0.minval)
|
│ if(sys0<h0.minval)
|
||||||
@@ -1569,7 +1796,7 @@
|
|||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Period (ms): 50
|
│ Period (ms): 50
|
||||||
│ Enabled : yes
|
│ Enabled : yes
|
||||||
│ @@ -962,15 +938,15 @@
|
│ @@ -974,15 +938,15 @@
|
||||||
│ }
|
│ }
|
||||||
│ if(tId.txt=="cardChart")
|
│ if(tId.txt=="cardChart")
|
||||||
│ {
|
│ {
|
||||||
@@ -1586,6 +1813,64 @@
|
|||||||
│ // get set time to global variable
|
│ // get set time to global variable
|
||||||
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
│ }
|
│ }
|
||||||
|
│ --- HMI/n2t-out/cardQR.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardQR.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis bPrev,0
|
||||||
|
│ --- HMI/n2t-out/cardThermo.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/cardThermo.txt
|
||||||
|
│ @@ -7,26 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ dim=dimValueNormal
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tSend,0
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis tId,0
|
||||||
|
│ vis xTempMin1,0
|
||||||
│ --- HMI/n2t-out/pageStartup.txt
|
│ --- HMI/n2t-out/pageStartup.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
|
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
|
||||||
│ @@ -34,20 +34,14 @@
|
│ @@ -34,20 +34,14 @@
|
||||||
@@ -1700,6 +1985,26 @@
|
|||||||
│ Variable (string) entn
|
│ Variable (string) entn
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
|
│ @@ -453,19 +453,14 @@
|
||||||
|
│ 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)
|
||||||
|
│ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
|
│ {
|
||||||
|
│ // change icon
|
||||||
|
│ - spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
│ - if(tTmp.txt!="")
|
||||||
|
│ - {
|
||||||
|
│ - tIcon1.txt=tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ //spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
|
│ vis tIcon1,1
|
||||||
|
│ // change icon color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
│ covx tTmp.txt,sys0,0,0
|
||||||
|
│ tIcon1.pco=sys0
|
||||||
|
│ // get Button State
|
||||||
│ --- HMI/n2t-out/popupNotify.txt
|
│ --- HMI/n2t-out/popupNotify.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/popupNotify.txt
|
├── +++ HMI/US/portrait/n2t-out/popupNotify.txt
|
||||||
│ @@ -348,15 +348,15 @@
|
│ @@ -348,15 +348,15 @@
|
||||||
@@ -1719,9 +2024,56 @@
|
|||||||
│ }
|
│ }
|
||||||
│ 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
|
||||||
│ @@ -28,17 +28,14 @@
|
│ @@ -7,27 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tNotifyHead,0
|
||||||
|
│ vis tNotifyText,0
|
||||||
|
│ @@ -41,17 +28,14 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -1739,7 +2091,7 @@
|
|||||||
│ Max. Text Size: 600
|
│ Max. Text Size: 600
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -102,34 +99,14 @@
|
│ @@ -115,34 +99,14 @@
|
||||||
│ Value: 0
|
│ Value: 0
|
||||||
│
|
│
|
||||||
│ Variable (int32) ycR
|
│ Variable (int32) ycR
|
||||||
@@ -1774,7 +2126,25 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : |
|
│ Text : |
|
||||||
│ @@ -596,20 +573,14 @@
|
│ @@ -485,17 +449,14 @@
|
||||||
|
│ //get set time to global variable
|
||||||
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
│ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||||
|
│ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||||
|
│ if(tAMPM.txt=="")
|
||||||
|
│ {
|
||||||
|
│ vis tAMPM,0
|
||||||
|
│ - }else
|
||||||
|
│ - {
|
||||||
|
│ - vis tAMPM,1
|
||||||
|
│ }
|
||||||
|
│ spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
|
│ ref tIcon1
|
||||||
|
│ ref tIcon2
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="date")
|
||||||
|
│ {
|
||||||
|
│ @@ -612,20 +573,14 @@
|
||||||
│ {
|
│ {
|
||||||
│ vis tMainIcon,1
|
│ vis tMainIcon,1
|
||||||
│ vis tMainIconAlt,0
|
│ vis tMainIconAlt,0
|
||||||
@@ -1797,7 +2167,35 @@
|
|||||||
│ if(tTime.bco!=screensaver.bco)
|
│ if(tTime.bco!=screensaver.bco)
|
||||||
│ --- HMI/n2t-out/screensaver2.txt
|
│ --- HMI/n2t-out/screensaver2.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/screensaver2.txt
|
├── +++ HMI/US/portrait/n2t-out/screensaver2.txt
|
||||||
│ @@ -28,17 +28,14 @@
|
│ @@ -7,27 +7,14 @@
|
||||||
|
│ Swide up page ID : disabled
|
||||||
|
│ Swide down page ID : disabled
|
||||||
|
│ Swide left page ID : disabled
|
||||||
|
│ Swide right page ID: disabled
|
||||||
|
│
|
||||||
|
│ Events
|
||||||
|
│ Preinitialize Event
|
||||||
|
│ - tSend.txt="event,renderCurrentPage"
|
||||||
|
│ - //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
|
||||||
|
│ - dim=dimValueNormal
|
||||||
|
│ recmod=1
|
||||||
|
│ baud=115200
|
||||||
|
│ vis tInstruction,0
|
||||||
|
│ vis tTmp,0
|
||||||
|
│ vis p0,0
|
||||||
|
│ vis tNotifyHead,0
|
||||||
|
│ vis tNotifyText,0
|
||||||
|
│ @@ -41,52 +28,19 @@
|
||||||
│ }
|
│ }
|
||||||
│ tDate.txt=pageIcons.vaDate.txt
|
│ tDate.txt=pageIcons.vaDate.txt
|
||||||
│ dim=dimValue
|
│ dim=dimValue
|
||||||
@@ -1808,14 +2206,80 @@
|
|||||||
│ - 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: 1935
|
||||||
|
│ + Max. Text Size: 1979
|
||||||
│
|
│
|
||||||
│ Variable (string) strTmp
|
│ Variable (string) strTmp
|
||||||
│ @@ -363,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: 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,165 +324,50 @@
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
@@ -1823,6 +2287,137 @@
|
|||||||
│ Text :
|
│ Text :
|
||||||
│ Max. Text Size : 4
|
│ Max. Text Size : 4
|
||||||
│
|
│
|
||||||
|
│ - Events
|
||||||
|
│ - Touch Press Event
|
||||||
|
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
│ - if(entn1.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn2.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn3.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn4.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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"
|
||||||
|
│ - if(entn5.txt=="")
|
||||||
|
│ - {
|
||||||
|
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
│ - }
|
||||||
|
│ - //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
|
||||||
@@ -1850,7 +2445,7 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text : PM
|
│ Text : PM
|
||||||
│ @@ -572,15 +549,14 @@
|
│ @@ -710,15 +549,14 @@
|
||||||
│ if(tTmp.txt!="")
|
│ if(tTmp.txt!="")
|
||||||
│ {
|
│ {
|
||||||
│ covx tTmp.txt,defaultFontColor,0,0
|
│ covx tTmp.txt,defaultFontColor,0,0
|
||||||
@@ -1866,3 +2461,48 @@
|
|||||||
│ if(tAMPM.txt=="")
|
│ if(tAMPM.txt=="")
|
||||||
│ {
|
│ {
|
||||||
│ vis tAMPM,0
|
│ vis tAMPM,0
|
||||||
|
│ @@ -839,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!="")
|
||||||
|
│ {
|
||||||
|
|||||||
@@ -1,12 +1,98 @@
|
|||||||
+++ /dev/fd/62 2023-09-16 10:55:16.569411880 +0000
|
+++ /dev/fd/62 2024-11-22 20:00:11.734673876 +0000
|
||||||
+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 @@
|
||||||
+eature flags
|
+eature flags
|
||||||
+ featNewSliders=0
|
+ featNewSliders=0
|
||||||
+nth 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
+nth 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
+I/n2t-out/cardAlarm.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/cardAlarm.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis arm1,0
|
||||||
|
+I/n2t-out/cardChart.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/cardChart.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis bPrev,0
|
||||||
+I/n2t-out/cardEntities.txt
|
+I/n2t-out/cardEntities.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ //wup=cardEntities
|
||||||
|
+ //remove background & activate reparse mode
|
||||||
|
+ vis p0,0
|
||||||
|
+ recmod=1
|
||||||
|
+ baud=115200
|
||||||
|
+ //debug stuff
|
||||||
+6 +60,36 @@
|
+6 +60,36 @@
|
||||||
+ //ui e6
|
+ //ui e6
|
||||||
+ vis btOnOff6,0
|
+ vis btOnOff6,0
|
||||||
@@ -59,13 +145,13 @@
|
|||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
|
+ Max. Text Size: 80
|
||||||
+ Max. Text Size: 38
|
+ Max. Text Size: 38
|
||||||
+
|
+
|
||||||
+e (string) nent2
|
+e (string) nent2
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 80
|
|
||||||
+ Max. Text Size: 38
|
+ Max. Text Size: 38
|
||||||
+14 +185,26 @@
|
+14 +185,26 @@
|
||||||
+e (string) type6
|
+e (string) type6
|
||||||
@@ -600,8 +686,71 @@
|
|||||||
+ 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
|
||||||
|
++ HMI/US/portrait/n2t-out/cardGrid.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ //remove background & activate reparse mode
|
||||||
|
+ vis p0,0
|
||||||
|
+ recmod=1
|
||||||
|
+ baud=115200
|
||||||
|
+ //debug stuff
|
||||||
|
+ vis tTmp,0
|
||||||
+I/n2t-out/cardGrid2.txt
|
+I/n2t-out/cardGrid2.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ //remove background & activate reparse mode
|
||||||
|
+ vis p0,0
|
||||||
|
+ recmod=1
|
||||||
|
+ baud=115200
|
||||||
|
+ //debug stuff
|
||||||
|
+ vis tTmp,0
|
||||||
+6 +25,28 @@
|
+6 +25,28 @@
|
||||||
+ vis bEntity2,0
|
+ vis bEntity2,0
|
||||||
+ vis bEntity3,0
|
+ vis bEntity3,0
|
||||||
@@ -632,7 +781,7 @@
|
|||||||
+ b[sys0].pco=defaultFontColor
|
+ b[sys0].pco=defaultFontColor
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+4 +95,20 @@
|
+14 +95,20 @@
|
||||||
+
|
+
|
||||||
+e (string) entn8
|
+e (string) entn8
|
||||||
+ributes
|
+ributes
|
||||||
@@ -797,15 +946,93 @@
|
|||||||
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
||||||
+ vis tEntity9,1
|
+ vis tEntity9,1
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+I/n2t-out/cardLChart.txt
|
||||||
+ if(tInstruction.txt=="pageType")
|
++ HMI/US/portrait/n2t-out/cardLChart.txt
|
||||||
+ {
|
+ +7,14 @@
|
||||||
+ sleepValue=0
|
+ Swide up page ID : disabled
|
||||||
+ //command format pageType,specialPageName
|
+ Swide down page ID : disabled
|
||||||
+ //write name of speical page to tId
|
+ Swide left page ID : disabled
|
||||||
+ spstr strCommand.txt,tId.txt,"~",1
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis bPrev,0
|
||||||
|
+I/n2t-out/cardMedia.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/cardMedia.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis t5,0
|
||||||
+I/n2t-out/cardPower.txt
|
+I/n2t-out/cardPower.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardPower.txt
|
++ HMI/US/portrait/n2t-out/cardPower.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis bPrev,0
|
||||||
+6 +45,16 @@
|
+6 +45,16 @@
|
||||||
+ b[sys0].bco=defaultBcoColor
|
+ b[sys0].bco=defaultBcoColor
|
||||||
+ b[sys0].pco=defaultFontColor
|
+ b[sys0].pco=defaultFontColor
|
||||||
@@ -1148,6 +1375,64 @@
|
|||||||
+ // get set time to global variable
|
+ // get set time to global variable
|
||||||
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
+ }
|
+ }
|
||||||
|
+I/n2t-out/cardQR.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/cardQR.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis bPrev,0
|
||||||
|
+I/n2t-out/cardThermo.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/cardThermo.txt
|
||||||
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tSend,0
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis tId,0
|
||||||
|
+ vis xTempMin1,0
|
||||||
+I/n2t-out/pageStartup.txt
|
+I/n2t-out/pageStartup.txt
|
||||||
++ HMI/US/portrait/n2t-out/pageStartup.txt
|
++ HMI/US/portrait/n2t-out/pageStartup.txt
|
||||||
+0 +34,14 @@
|
+0 +34,14 @@
|
||||||
@@ -1242,6 +1527,26 @@
|
|||||||
+e (string) entn
|
+e (string) entn
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
|
+19 +453,14 @@
|
||||||
|
+ 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)
|
||||||
|
+ spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
+ if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
|
+ {
|
||||||
|
+ // change icon
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
+ if(tTmp.txt!="")
|
||||||
|
+ {
|
||||||
|
+ tIcon1.txt=tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
|
+ vis tIcon1,1
|
||||||
|
+ // change icon color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
+ covx tTmp.txt,sys0,0,0
|
||||||
|
+ tIcon1.pco=sys0
|
||||||
|
+ // get Button State
|
||||||
+I/n2t-out/popupNotify.txt
|
+I/n2t-out/popupNotify.txt
|
||||||
++ HMI/US/portrait/n2t-out/popupNotify.txt
|
++ HMI/US/portrait/n2t-out/popupNotify.txt
|
||||||
+15 +348,15 @@
|
+15 +348,15 @@
|
||||||
@@ -1261,8 +1566,55 @@
|
|||||||
+ }
|
+ }
|
||||||
+ 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 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ recmod=1
|
||||||
|
+ baud=115200
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tNotifyHead,0
|
||||||
|
+ vis tNotifyText,0
|
||||||
+7 +28,14 @@
|
+7 +28,14 @@
|
||||||
+ }
|
+ }
|
||||||
+ tDate.txt=pageIcons.vaDate.txt
|
+ tDate.txt=pageIcons.vaDate.txt
|
||||||
@@ -1316,6 +1668,24 @@
|
|||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
+ Associated Keyboard: none
|
+ Associated Keyboard: none
|
||||||
+ Text : |
|
+ Text : |
|
||||||
|
+17 +449,14 @@
|
||||||
|
+ //get set time to global variable
|
||||||
|
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
+ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||||
|
+ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||||
|
+ if(tAMPM.txt=="")
|
||||||
|
+ {
|
||||||
|
+ vis tAMPM,0
|
||||||
|
+ }else
|
||||||
|
+ {
|
||||||
|
+ vis tAMPM,1
|
||||||
|
+ }
|
||||||
|
+ spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
|
+ ref tIcon1
|
||||||
|
+ ref tIcon2
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="date")
|
||||||
|
+ {
|
||||||
+20 +573,14 @@
|
+20 +573,14 @@
|
||||||
+ {
|
+ {
|
||||||
+ vis tMainIcon,1
|
+ vis tMainIcon,1
|
||||||
@@ -1339,7 +1709,35 @@
|
|||||||
+ if(tTime.bco!=screensaver.bco)
|
+ if(tTime.bco!=screensaver.bco)
|
||||||
+I/n2t-out/screensaver2.txt
|
+I/n2t-out/screensaver2.txt
|
||||||
++ HMI/US/portrait/n2t-out/screensaver2.txt
|
++ HMI/US/portrait/n2t-out/screensaver2.txt
|
||||||
+7 +28,14 @@
|
+ +7,14 @@
|
||||||
|
+ Swide up page ID : disabled
|
||||||
|
+ Swide down page ID : disabled
|
||||||
|
+ Swide left page ID : disabled
|
||||||
|
+ Swide right page ID: disabled
|
||||||
|
+
|
||||||
|
+nts
|
||||||
|
+ Preinitialize Event
|
||||||
|
+ tSend.txt="event,renderCurrentPage"
|
||||||
|
+ //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
|
||||||
|
+ dim=dimValueNormal
|
||||||
|
+ recmod=1
|
||||||
|
+ baud=115200
|
||||||
|
+ vis tInstruction,0
|
||||||
|
+ vis tTmp,0
|
||||||
|
+ vis p0,0
|
||||||
|
+ vis tNotifyHead,0
|
||||||
|
+ vis tNotifyText,0
|
||||||
|
+2 +28,19 @@
|
||||||
+ }
|
+ }
|
||||||
+ tDate.txt=pageIcons.vaDate.txt
|
+ tDate.txt=pageIcons.vaDate.txt
|
||||||
+ dim=dimValue
|
+ dim=dimValue
|
||||||
@@ -1350,14 +1748,80 @@
|
|||||||
+ 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: 1935
|
||||||
+ 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: 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
|
||||||
|
+165 +324,50 @@
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
@@ -1365,6 +1829,137 @@
|
|||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size : 4
|
+ Max. Text Size : 4
|
||||||
+
|
+
|
||||||
|
+nts
|
||||||
|
+ Touch Press Event
|
||||||
|
+ tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
+ if(entn1.txt=="")
|
||||||
|
+ {
|
||||||
|
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //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"
|
||||||
|
+ if(entn2.txt=="")
|
||||||
|
+ {
|
||||||
|
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //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"
|
||||||
|
+ if(entn3.txt=="")
|
||||||
|
+ {
|
||||||
|
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //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"
|
||||||
|
+ if(entn4.txt=="")
|
||||||
|
+ {
|
||||||
|
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //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"
|
||||||
|
+ if(entn5.txt=="")
|
||||||
|
+ {
|
||||||
|
+ tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
+ }
|
||||||
|
+ //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
|
||||||
@@ -1408,3 +2003,48 @@
|
|||||||
+ 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!="")
|
||||||
|
+ {
|
||||||
|
|||||||
@@ -1424,6 +1424,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1853,6 +1853,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1741,6 +1741,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ cardChart
|
|||||||
33 Component(s)
|
33 Component(s)
|
||||||
437 Line(s) of event code
|
437 Line(s) of event code
|
||||||
296 Unique line(s) of event code
|
296 Unique line(s) of event code
|
||||||
cardGrid
|
cardGrid2
|
||||||
44 Component(s)
|
56 Component(s)
|
||||||
579 Line(s) of event code
|
748 Line(s) of event code
|
||||||
330 Unique line(s) of event code
|
410 Unique line(s) of event code
|
||||||
cardLChart
|
cardLChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
402 Line(s) of event code
|
402 Line(s) of event code
|
||||||
@@ -62,14 +62,14 @@ popupInSel
|
|||||||
34 Component(s)
|
34 Component(s)
|
||||||
621 Line(s) of event code
|
621 Line(s) of event code
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
44 Component(s)
|
||||||
|
583 Line(s) of event code
|
||||||
|
332 Unique line(s) of event code
|
||||||
cardAlarm
|
cardAlarm
|
||||||
43 Component(s)
|
43 Component(s)
|
||||||
500 Line(s) of event code
|
500 Line(s) of event code
|
||||||
273 Unique line(s) of event code
|
273 Unique line(s) of event code
|
||||||
cardMedia
|
|
||||||
59 Component(s)
|
|
||||||
699 Line(s) of event code
|
|
||||||
354 Unique line(s) of event code
|
|
||||||
cardThermo
|
cardThermo
|
||||||
57 Component(s)
|
57 Component(s)
|
||||||
540 Line(s) of event code
|
540 Line(s) of event code
|
||||||
@@ -90,13 +90,13 @@ cardEntities
|
|||||||
91 Component(s)
|
91 Component(s)
|
||||||
1666 Line(s) of event code
|
1666 Line(s) of event code
|
||||||
711 Unique line(s) of event code
|
711 Unique line(s) of event code
|
||||||
cardGrid2
|
cardMedia
|
||||||
56 Component(s)
|
59 Component(s)
|
||||||
744 Line(s) of event code
|
703 Line(s) of event code
|
||||||
408 Unique line(s) of event code
|
356 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
23 Page(s)
|
23 Page(s)
|
||||||
890 Component(s)
|
890 Component(s)
|
||||||
11017 Line(s) of event code
|
11029 Line(s) of event code
|
||||||
2600 Unique line(s) of event code
|
2600 Unique line(s) of event code
|
||||||
|
|||||||
@@ -976,6 +976,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1273,6 +1273,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1253,6 +1253,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,272 +1,274 @@
|
|||||||
from shared import *
|
from shared import *
|
||||||
head = sharedhead + """
|
head = sharedhead + """
|
||||||
if(tInstruction.txt=="wake")
|
if(tInstruction.txt=="wake")
|
||||||
{
|
{
|
||||||
click tc0,1
|
click tc0,1
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="dimmode")
|
if(tInstruction.txt=="dimmode")
|
||||||
{
|
{
|
||||||
// get value
|
// get value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,dimValue,0,0
|
covx tTmp.txt,dimValue,0,0
|
||||||
dim=dimValue
|
dim=dimValue
|
||||||
// get value normal
|
// get value normal
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
covx tTmp.txt,dimValueNormal,0,0
|
covx tTmp.txt,dimValueNormal,0,0
|
||||||
// get background color
|
// get background color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
covx tTmp.txt,defaultBcoColor,0,0
|
covx tTmp.txt,defaultBcoColor,0,0
|
||||||
}
|
}
|
||||||
// get font color
|
// get font color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
click m0,1
|
click m0,1
|
||||||
//get set time to global variable
|
//get set time to global variable
|
||||||
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||||
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||||
if(tAMPM.txt=="")
|
if(tAMPM.txt=="")
|
||||||
{
|
{
|
||||||
vis tAMPM,0
|
vis tAMPM,0
|
||||||
}
|
}
|
||||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
ref tIcon1
|
ref tIcon1
|
||||||
ref tIcon2
|
ref tIcon2
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="date")
|
if(tInstruction.txt=="date")
|
||||||
{
|
{
|
||||||
//get set date to global variable
|
//get set date to global variable
|
||||||
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||||
tDate.txt=pageIcons.vaDate.txt
|
tDate.txt=pageIcons.vaDate.txt
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="statusUpdate")
|
if(tInstruction.txt=="statusUpdate")
|
||||||
{
|
{
|
||||||
//statusIcon1
|
//statusIcon1
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
covx tTmp.txt,tIcon1.pco,0,0
|
covx tTmp.txt,tIcon1.pco,0,0
|
||||||
//statusIcon2
|
//statusIcon2
|
||||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon1.font=3
|
tIcon1.font=3
|
||||||
}
|
}
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
tIcon2.font=3
|
tIcon2.font=3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
|
|
||||||
//tMainIcon
|
//tMainIcon
|
||||||
spstr strCommand.txt,tMainIcon.txt,"~",3
|
spstr strCommand.txt,tMainIcon.txt,"~",3
|
||||||
//tMainIcon Color
|
//tMainIcon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,tMainIcon.pco,0,0
|
covx tTmp.txt,tMainIcon.pco,0,0
|
||||||
//tMainText
|
//tMainText
|
||||||
spstr strCommand.txt,tMainText.txt,"~",6
|
spstr strCommand.txt,tMainText.txt,"~",6
|
||||||
"""
|
"""
|
||||||
|
|
||||||
start = 7
|
start = 7
|
||||||
for i in range(1,4):
|
for i in range(1,4):
|
||||||
idxstart = start + (i-1)*6
|
idxstart = start + (i-1)*6
|
||||||
item = f"""
|
item = f"""
|
||||||
//d{i}Icon
|
//d{i}Icon
|
||||||
spstr strCommand.txt,d{i}Icon.txt,"~",{idxstart+2}
|
spstr strCommand.txt,d{i}Icon.txt,"~",{idxstart+2}
|
||||||
//d{i}Icon Color
|
//d{i}Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
covx tTmp.txt,d{i}Icon.pco,0,0
|
covx tTmp.txt,d{i}Icon.pco,0,0
|
||||||
//d{i}Val
|
//d{i}Val
|
||||||
spstr strCommand.txt,d{i}Val.txt,"~",{idxstart+5}
|
spstr strCommand.txt,d{i}Val.txt,"~",{idxstart+5}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
head = head + item
|
head = head + item
|
||||||
|
|
||||||
start = idxstart+6
|
start = idxstart+6
|
||||||
for i in range(1,7):
|
for i in range(1,7):
|
||||||
idxstart = start + (i-1)*6
|
idxstart = start + (i-1)*6
|
||||||
item = f"""
|
item = f"""
|
||||||
//e{i}Name
|
//e{i}Name
|
||||||
spstr strCommand.txt,e{i}Name.txt,"~",{idxstart+4}
|
spstr strCommand.txt,e{i}Name.txt,"~",{idxstart+4}
|
||||||
//e{i}Icon
|
//e{i}Icon
|
||||||
spstr strCommand.txt,e{i}Icon.txt,"~",{idxstart+2}
|
spstr strCommand.txt,e{i}Icon.txt,"~",{idxstart+2}
|
||||||
//e{i}Icon Color
|
//e{i}Icon Color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
covx tTmp.txt,e{i}Icon.pco,0,0
|
covx tTmp.txt,e{i}Icon.pco,0,0
|
||||||
//e{i}Val
|
//e{i}Val
|
||||||
spstr strCommand.txt,e{i}Val.txt,"~",{idxstart+5}
|
spstr strCommand.txt,e{i}Val.txt,"~",{idxstart+5}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
head = head + item
|
head = head + item
|
||||||
|
|
||||||
start = idxstart+6
|
start = idxstart+6
|
||||||
for i in range(1,6):
|
for i in range(1,6):
|
||||||
idxstart = start + (i-1)*6
|
idxstart = start + (i-1)*6
|
||||||
item = f"""
|
item = f"""
|
||||||
//f{i}Icon
|
//f{i}Icon
|
||||||
spstr strCommand.txt,f{i}Icon.txt,"~",{idxstart+2}
|
spstr strCommand.txt,f{i}Icon.txt,"~",{idxstart+2}
|
||||||
//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
|
||||||
head = head + item
|
spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||||
|
"""
|
||||||
head = head + """
|
head = head + item
|
||||||
}
|
|
||||||
|
head = head + """
|
||||||
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
}
|
||||||
{
|
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
{
|
||||||
if(tTime.bco!=screensaver.bco)
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
{
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
for(sys0=0;sys0<60;sys0++)
|
if(tTime.bco!=screensaver.bco)
|
||||||
{
|
{
|
||||||
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
|
for(sys0=0;sys0<60;sys0++)
|
||||||
{
|
{
|
||||||
b[sys0].bco=tTime.bco
|
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
|
||||||
}
|
{
|
||||||
}
|
b[sys0].bco=tTime.bco
|
||||||
}
|
}
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
}
|
||||||
covx tTmp.txt,tTime.pco,0,0
|
}
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
covx tTmp.txt,tAMPM.pco,0,0
|
covx tTmp.txt,tTime.pco,0,0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,tDate.pco,0,0
|
covx tTmp.txt,tAMPM.pco,0,0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,tMainText.pco,0,0
|
covx tTmp.txt,tDate.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
//covx tTmp.txt,tForecast1.pco,0,0
|
covx tTmp.txt,tMainText.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",7
|
//spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
//covx tTmp.txt,tForecast2.pco,0,0
|
//covx tTmp.txt,tForecast1.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",8
|
//spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
//covx tTmp.txt,tForecast3.pco,0,0
|
//covx tTmp.txt,tForecast2.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",9
|
//spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
//covx tTmp.txt,tForecast4.pco,0,0
|
//covx tTmp.txt,tForecast3.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",10
|
//spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
//covx tTmp.txt,tForecast1Val.pco,0,0
|
//covx tTmp.txt,tForecast4.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",11
|
//spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
//covx tTmp.txt,tForecast2Val.pco,0,0
|
//covx tTmp.txt,tForecast1Val.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",12
|
//spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
//covx tTmp.txt,tForecast3Val.pco,0,0
|
//covx tTmp.txt,tForecast2Val.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",13
|
//spstr strCommand.txt,tTmp.txt,"~",12
|
||||||
//covx tTmp.txt,tForecast4Val.pco,0,0
|
//covx tTmp.txt,tForecast3Val.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",14
|
//spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
//covx tTmp.txt,t10.bco,0,0
|
//covx tTmp.txt,tForecast4Val.pco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",15
|
//spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
//covx tTmp.txt,tMainTextAlt2.pco,0,0
|
//covx tTmp.txt,t10.bco,0,0
|
||||||
//spstr strCommand.txt,tTmp.txt,"~",16
|
//spstr strCommand.txt,tTmp.txt,"~",15
|
||||||
//covx tTmp.txt,tTimeAdd.pco,0,0
|
//covx tTmp.txt,tMainTextAlt2.pco,0,0
|
||||||
}
|
//spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
//covx tTmp.txt,tTimeAdd.pco,0,0
|
||||||
|
}
|
||||||
|
|
||||||
if(tInstruction.txt=="notify")
|
|
||||||
{
|
|
||||||
spstr strCommand.txt,tNotifyHead.txt,"~",1
|
if(tInstruction.txt=="notify")
|
||||||
spstr strCommand.txt,tNotifyText.txt,"~",2
|
{
|
||||||
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||||
{
|
spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||||
vis tNotifyHead,1
|
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||||
vis tNotifyText,1
|
{
|
||||||
}else
|
vis tNotifyHead,1
|
||||||
{
|
vis tNotifyText,1
|
||||||
vis tNotifyHead,0
|
}else
|
||||||
vis tNotifyText,0
|
{
|
||||||
}
|
vis tNotifyHead,0
|
||||||
tNotifyHead.bco=tTime.bco
|
vis tNotifyText,0
|
||||||
tNotifyText.bco=tTime.bco
|
}
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
tNotifyHead.bco=tTime.bco
|
||||||
if(tTmp.txt!="")
|
tNotifyText.bco=tTime.bco
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,tNotifyHead.pco,0,0
|
if(tTmp.txt!="")
|
||||||
}
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
covx tTmp.txt,tNotifyHead.pco,0,0
|
||||||
if(tTmp.txt!="")
|
}
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,tNotifyText.pco,0,0
|
if(tTmp.txt!="")
|
||||||
}
|
{
|
||||||
"""
|
covx tTmp.txt,tNotifyText.pco,0,0
|
||||||
|
}
|
||||||
print(head)
|
"""
|
||||||
|
|
||||||
|
print(head)
|
||||||
#start = 23
|
|
||||||
#for i in range(1,7):
|
|
||||||
# idxstart = start + (i-1)*6
|
#start = 23
|
||||||
# item = f"""
|
#for i in range(1,7):
|
||||||
# // get Type
|
# idxstart = start + (i-1)*6
|
||||||
# spstr strCommand.txt,type{i}.txt,"~",{idxstart}
|
# item = f"""
|
||||||
# // get internal name
|
# // get Type
|
||||||
# spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
# spstr strCommand.txt,type{i}.txt,"~",{idxstart}
|
||||||
# if(type{i}.txt=="delete"||type{i}.txt=="")
|
# // get internal name
|
||||||
# {{
|
# spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||||
# vis tEntity{i},0
|
# if(type{i}.txt=="delete"||type{i}.txt=="")
|
||||||
# vis bEntity{i},0
|
# {{
|
||||||
# }}else
|
# vis tEntity{i},0
|
||||||
# {{
|
# vis bEntity{i},0
|
||||||
# // change icon
|
# }}else
|
||||||
# spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
# {{
|
||||||
# vis bEntity{i},1
|
# // change icon
|
||||||
# // change icon color
|
# spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||||
# spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
# vis bEntity{i},1
|
||||||
# covx tTmp.txt,sys0,0,0
|
# // change icon color
|
||||||
# bEntity{i}.pco=sys0
|
# spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
# // set name
|
# covx tTmp.txt,sys0,0,0
|
||||||
# spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
# bEntity{i}.pco=sys0
|
||||||
# vis tEntity{i},1
|
# // set name
|
||||||
# }}
|
# spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
||||||
#"""
|
# vis tEntity{i},1
|
||||||
# print(item)
|
# }}
|
||||||
foot = """
|
#"""
|
||||||
}
|
# print(item)
|
||||||
""" + sharedfoot.replace("sleepValue=0", "dim=100").replace("""
|
foot = """
|
||||||
if(tInstruction.txt=="time")
|
}
|
||||||
{
|
""" + sharedfoot.replace("sleepValue=0", "dim=100").replace("""
|
||||||
// get set time to global variable
|
if(tInstruction.txt=="time")
|
||||||
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
{
|
||||||
}
|
// get set time to global variable
|
||||||
if(tInstruction.txt=="date")
|
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
{
|
}
|
||||||
// get set date to global variable
|
if(tInstruction.txt=="date")
|
||||||
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
{
|
||||||
}
|
// get set date to global variable
|
||||||
if(tInstruction.txt=="dimmode")
|
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||||
{
|
}
|
||||||
// get value
|
if(tInstruction.txt=="dimmode")
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
{
|
||||||
covx tTmp.txt,dimValue,0,0
|
// get value
|
||||||
// get value normal
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
covx tTmp.txt,dimValue,0,0
|
||||||
covx tTmp.txt,dimValueNormal,0,0
|
// get value normal
|
||||||
dim=dimValueNormal
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
// get background color
|
covx tTmp.txt,dimValueNormal,0,0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
dim=dimValueNormal
|
||||||
if(tTmp.txt!="")
|
// get background color
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
covx tTmp.txt,defaultBcoColor,0,0
|
if(tTmp.txt!="")
|
||||||
}
|
{
|
||||||
// get font color
|
covx tTmp.txt,defaultBcoColor,0,0
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
}
|
||||||
if(tTmp.txt!="")
|
// get font color
|
||||||
{
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
if(tTmp.txt!="")
|
||||||
}
|
{
|
||||||
}""","")
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
print(foot)
|
}
|
||||||
|
}""","")
|
||||||
|
print(foot)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardAlarm
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,19 @@ Page cardEntities
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//wup=cardEntities
|
//wup=cardEntities
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardGrid
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1424,6 +1436,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardGrid2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1710,6 +1722,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardLChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardMedia
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -1741,6 +1753,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardPower
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardQR
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -19,6 +19,18 @@ Page cardThermo
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ pageIcons
|
|||||||
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
|
||||||
pageTest
|
pageTest
|
||||||
27 Component(s)
|
25 Component(s)
|
||||||
68 Line(s) of event code
|
68 Line(s) of event code
|
||||||
66 Unique line(s) of event code
|
66 Unique line(s) of event code
|
||||||
cardLChart
|
popupNotify
|
||||||
33 Component(s)
|
19 Component(s)
|
||||||
402 Line(s) of event code
|
271 Line(s) of event code
|
||||||
266 Unique 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
|
||||||
@@ -30,58 +30,54 @@ 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
|
|
||||||
cardGrid
|
|
||||||
44 Component(s)
|
|
||||||
579 Line(s) of event code
|
|
||||||
330 Unique line(s) of event code
|
|
||||||
cardQR
|
|
||||||
34 Component(s)
|
|
||||||
410 Line(s) of event code
|
|
||||||
238 Unique line(s) of event code
|
|
||||||
cardChart
|
|
||||||
33 Component(s)
|
|
||||||
437 Line(s) of event code
|
|
||||||
296 Unique line(s) of event code
|
|
||||||
screensaver2
|
|
||||||
59 Component(s)
|
|
||||||
362 Line(s) of event code
|
|
||||||
255 Unique line(s) of event code
|
|
||||||
cardAlarm
|
|
||||||
43 Component(s)
|
|
||||||
500 Line(s) of event code
|
|
||||||
273 Unique line(s) of event code
|
|
||||||
popupLight
|
popupLight
|
||||||
28 Component(s)
|
28 Component(s)
|
||||||
412 Line(s) of event code
|
417 Line(s) of event code
|
||||||
227 Unique line(s) of event code
|
228 Unique line(s) of event code
|
||||||
cardThermo
|
|
||||||
57 Component(s)
|
|
||||||
540 Line(s) of event code
|
|
||||||
319 Unique line(s) of event code
|
|
||||||
cardGrid2
|
cardGrid2
|
||||||
52 Component(s)
|
52 Component(s)
|
||||||
689 Line(s) of event code
|
703 Line(s) of event code
|
||||||
382 Unique line(s) of event code
|
385 Unique line(s) of event code
|
||||||
cardMedia
|
cardAlarm
|
||||||
59 Component(s)
|
43 Component(s)
|
||||||
699 Line(s) of event code
|
510 Line(s) of event code
|
||||||
354 Unique line(s) of event code
|
274 Unique line(s) of event code
|
||||||
|
cardChart
|
||||||
|
33 Component(s)
|
||||||
|
447 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
|
||||||
|
34 Component(s)
|
||||||
|
420 Line(s) of event code
|
||||||
|
239 Unique line(s) of event code
|
||||||
|
cardLChart
|
||||||
|
33 Component(s)
|
||||||
|
412 Line(s) of event code
|
||||||
|
267 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
54 Component(s)
|
||||||
|
541 Line(s) of event code
|
||||||
|
350 Unique line(s) of event code
|
||||||
|
cardThermo
|
||||||
|
57 Component(s)
|
||||||
|
550 Line(s) of event code
|
||||||
|
320 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
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
cardPower
|
|
||||||
54 Component(s)
|
|
||||||
531 Line(s) of event code
|
|
||||||
349 Unique line(s) of event code
|
|
||||||
screensaver
|
screensaver
|
||||||
47 Component(s)
|
47 Component(s)
|
||||||
444 Line(s) of event code
|
458 Line(s) of event code
|
||||||
316 Unique line(s) of event code
|
318 Unique line(s) of event code
|
||||||
|
cardMedia
|
||||||
|
59 Component(s)
|
||||||
|
713 Line(s) of event code
|
||||||
|
357 Unique line(s) of event code
|
||||||
popupTimer
|
popupTimer
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
516 Line(s) of event code
|
516 Line(s) of event code
|
||||||
@@ -90,13 +86,17 @@ popupThermo
|
|||||||
44 Component(s)
|
44 Component(s)
|
||||||
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
|
||||||
|
64 Component(s)
|
||||||
|
448 Line(s) of event code
|
||||||
|
272 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
67 Component(s)
|
67 Component(s)
|
||||||
1194 Line(s) of event code
|
1205 Line(s) of event code
|
||||||
535 Unique line(s) of event code
|
536 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
23 Page(s)
|
23 Page(s)
|
||||||
878 Component(s)
|
881 Component(s)
|
||||||
10576 Line(s) of event code
|
10798 Line(s) of event code
|
||||||
2459 Unique line(s) of event code
|
2472 Unique line(s) of event code
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Variable (string) strCommand
|
|||||||
|
|
||||||
Variable (string) strTmp
|
Variable (string) strTmp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 2
|
Max. Text Size: 2
|
||||||
@@ -58,9 +58,9 @@ Text tBench
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 288
|
x coordinate : 207
|
||||||
y coordinate : 90
|
y coordinate : 287
|
||||||
Width : 152
|
Width : 88
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -82,14 +82,14 @@ Text tBench
|
|||||||
|
|
||||||
Text tTmp
|
Text tTmp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 49
|
x coordinate : 212
|
||||||
y coordinate : 48
|
y coordinate : 253
|
||||||
Width : 257
|
Width : 71
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -103,7 +103,7 @@ Text tTmp
|
|||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : test123test123
|
Text : x
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -135,7 +135,7 @@ Button b0
|
|||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 0
|
y coordinate : 0
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -203,9 +203,9 @@ Button b10
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 100
|
x coordinate : 100
|
||||||
y coordinate : 98
|
y coordinate : 81
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -238,9 +238,9 @@ Button b11
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 100
|
x coordinate : 100
|
||||||
y coordinate : 145
|
y coordinate : 121
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -273,9 +273,9 @@ Button b12
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 242
|
y coordinate : 202
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -335,46 +335,15 @@ Button b13
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
showqq
|
showqq
|
||||||
|
|
||||||
Button b14
|
Button b15
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 99
|
||||||
y coordinate : 0
|
y coordinate : 270
|
||||||
Width : 100
|
|
||||||
Height : 50
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : 3D auto
|
|
||||||
Font ID : 0
|
|
||||||
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 : newtxt
|
|
||||||
Max. Text Size : 10
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Button b15
|
|
||||||
Attributes
|
|
||||||
ID : 22
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 236
|
|
||||||
y coordinate : 263
|
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -403,13 +372,13 @@ Button b15
|
|||||||
|
|
||||||
Button b16
|
Button b16
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 135
|
x coordinate : 0
|
||||||
y coordinate : 263
|
y coordinate : 270
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -444,9 +413,9 @@ Button b2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 195
|
y coordinate : 162
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -514,9 +483,9 @@ Button b4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 96
|
y coordinate : 82
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -551,7 +520,7 @@ Button b5
|
|||||||
x coordinate : 100
|
x coordinate : 100
|
||||||
y coordinate : 0
|
y coordinate : 0
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -584,9 +553,9 @@ Button b6
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 49
|
y coordinate : 41
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -619,9 +588,9 @@ Button b7
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 100
|
x coordinate : 100
|
||||||
y coordinate : 49
|
y coordinate : 41
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -653,10 +622,10 @@ Button b8
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 341
|
x coordinate : 94
|
||||||
y coordinate : 9
|
y coordinate : 161
|
||||||
Width : 106
|
Width : 106
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -690,9 +659,9 @@ Button b9
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 146
|
y coordinate : 122
|
||||||
Width : 100
|
Width : 100
|
||||||
Height : 50
|
Height : 40
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -717,21 +686,6 @@ Button b9
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
page popupNotify
|
page popupNotify
|
||||||
|
|
||||||
Hotspot m0
|
|
||||||
Attributes
|
|
||||||
ID : 26
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID: disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 213
|
|
||||||
y coordinate : 115
|
|
||||||
Width : 210
|
|
||||||
Height : 191
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
|
|||||||
@@ -806,6 +806,11 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
tIcon1.txt=tTmp.txt
|
||||||
|
}
|
||||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -19,6 +19,19 @@ Page screensaver
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
@@ -1069,6 +1082,9 @@ Timer tmSerial
|
|||||||
if(tAMPM.txt=="")
|
if(tAMPM.txt=="")
|
||||||
{
|
{
|
||||||
vis tAMPM,0
|
vis tAMPM,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis tAMPM,1
|
||||||
}
|
}
|
||||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
ref tIcon1
|
ref tIcon1
|
||||||
|
|||||||
@@ -19,6 +19,19 @@ Page screensaver2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
@@ -43,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: 1935
|
||||||
|
|
||||||
Variable (string) strTmp
|
Variable (string) strTmp
|
||||||
Attributes
|
Attributes
|
||||||
@@ -69,7 +117,7 @@ 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
|
||||||
@@ -83,7 +131,7 @@ Variable (string) tTmp
|
|||||||
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
|
||||||
@@ -852,6 +900,25 @@ 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"
|
||||||
|
if(entn1.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -881,6 +948,25 @@ 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"
|
||||||
|
if(entn2.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -910,6 +996,25 @@ 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"
|
||||||
|
if(entn3.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -939,6 +1044,25 @@ 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"
|
||||||
|
if(entn4.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -968,6 +1092,25 @@ 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"
|
||||||
|
if(entn5.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -1538,26 +1681,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")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardAlarm
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,19 @@ Page cardEntities
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//wup=cardEntities
|
//wup=cardEntities
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardGrid
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -976,6 +988,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardGrid2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
//remove background & activate reparse mode
|
//remove background & activate reparse mode
|
||||||
vis p0,0
|
vis p0,0
|
||||||
@@ -1174,6 +1186,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardLChart
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardMedia
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
@@ -1253,6 +1265,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardPower
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardQR
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -11,6 +11,18 @@ Page cardThermo
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
dim=dimValueNormal
|
dim=dimValueNormal
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Text tTmp
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : test123test123
|
Text : x
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -141,15 +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 : newtxt
|
|
||||||
Max. Text Size : 10
|
|
||||||
|
|
||||||
Button b15
|
Button b15
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -281,12 +272,6 @@ Button b9
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
page popupNotify
|
page popupNotify
|
||||||
|
|
||||||
Hotspot m0
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Send Component ID: disabled
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
|
|||||||
@@ -457,6 +457,11 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
tIcon1.txt=tTmp.txt
|
||||||
|
}
|
||||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -11,6 +11,19 @@ Page screensaver
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
@@ -476,6 +489,9 @@ Timer tmSerial
|
|||||||
if(tAMPM.txt=="")
|
if(tAMPM.txt=="")
|
||||||
{
|
{
|
||||||
vis tAMPM,0
|
vis tAMPM,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis tAMPM,1
|
||||||
}
|
}
|
||||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||||
ref tIcon1
|
ref tIcon1
|
||||||
|
|||||||
@@ -11,6 +11,19 @@ Page screensaver2
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
|
tSend.txt="event,renderCurrentPage"
|
||||||
|
//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
|
||||||
|
dim=dimValueNormal
|
||||||
recmod=1
|
recmod=1
|
||||||
baud=115200
|
baud=115200
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
@@ -35,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: 1935
|
||||||
|
|
||||||
Variable (string) strTmp
|
Variable (string) strTmp
|
||||||
Attributes
|
Attributes
|
||||||
@@ -57,7 +100,7 @@ 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
|
||||||
@@ -69,7 +112,7 @@ 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
|
||||||
@@ -331,6 +374,25 @@ Text f1Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||||
|
if(entn1.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -340,6 +402,25 @@ Text f2Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||||
|
if(entn2.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -349,6 +430,25 @@ Text f3Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||||
|
if(entn3.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -358,6 +458,25 @@ Text f4Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||||
|
if(entn4.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -367,6 +486,25 @@ Text f5Icon
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||||
|
if(entn5.txt=="")
|
||||||
|
{
|
||||||
|
tSend.txt="event,buttonPress2,screensaver,bExit,"+tTmp.txt
|
||||||
|
}
|
||||||
|
//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
|
||||||
@@ -705,26 +843,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")
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
674
LICENSE
Normal file
674
LICENSE
Normal file
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
@@ -5,7 +5,7 @@ If you like this project consider buying me a pizza 🍕 <a href="https://paypal
|
|||||||
[](https://github.com/hacs/integration)
|
[](https://github.com/hacs/integration)
|
||||||

|

|
||||||
[](https://github.com/joBr99/nspanel-lovelace-ui/releases)
|
[](https://github.com/joBr99/nspanel-lovelace-ui/releases)
|
||||||

|

|
||||||
[](https://github.com/joBr99/nspanel-lovelace-ui/commits/main)
|
[](https://github.com/joBr99/nspanel-lovelace-ui/commits/main)
|
||||||
|
|
||||||
|
|
||||||
@@ -64,3 +64,6 @@ SmartHomeNG: https://github.com/sisamiwe/shng-nspanel-plugin
|
|||||||
|
|
||||||
OpenHAB: https://github.com/donoo/o2n2l
|
OpenHAB: https://github.com/donoo/o2n2l
|
||||||
|
|
||||||
|
NodeRed: https://github.com/laluz742/node-red-contrib-nspanel-lui
|
||||||
|
|
||||||
|
ESPHome without any Backend: https://github.com/olicooper/esphome-nspanel-lovelace-native
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
ha_api = None
|
ha_api = None
|
||||||
mqtt_api = None
|
mqtt_api = None
|
||||||
|
ad_api = None
|
||||||
@@ -132,6 +132,7 @@ class LuiBackendConfig(object):
|
|||||||
'sleepTrackingZones': ["not_home", "off"],
|
'sleepTrackingZones': ["not_home", "off"],
|
||||||
'sleepOverride': None,
|
'sleepOverride': None,
|
||||||
'locale': "en_US",
|
'locale': "en_US",
|
||||||
|
'quiet': True,
|
||||||
'timeFormat': "%H:%M",
|
'timeFormat': "%H:%M",
|
||||||
'dateFormatBabel': "full",
|
'dateFormatBabel': "full",
|
||||||
'dateAdditionalTemplate': "",
|
'dateAdditionalTemplate': "",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import datetime
|
|||||||
import apis
|
import apis
|
||||||
from helper import scale, pos_to_color, rgb_dec565
|
from helper import scale, pos_to_color, rgb_dec565
|
||||||
from pages import LuiPagesGen
|
from pages import LuiPagesGen
|
||||||
|
from luibackend.config import Card
|
||||||
|
|
||||||
class LuiController(object):
|
class LuiController(object):
|
||||||
|
|
||||||
@@ -324,7 +325,7 @@ class LuiController(object):
|
|||||||
apis.ha_api.get_entity(entity_id).call_service("lock")
|
apis.ha_api.get_entity(entity_id).call_service("lock")
|
||||||
elif entity_id.startswith('button') or entity_id.startswith('input_button'):
|
elif entity_id.startswith('button') or entity_id.startswith('input_button'):
|
||||||
apis.ha_api.get_entity(entity_id).call_service("press")
|
apis.ha_api.get_entity(entity_id).call_service("press")
|
||||||
elif entity_id.startswith('input_select'):
|
elif entity_id.startswith('input_select') or entity_id.startswith('select'):
|
||||||
apis.ha_api.get_entity(entity_id).call_service("select_next")
|
apis.ha_api.get_entity(entity_id).call_service("select_next")
|
||||||
elif entity_id.startswith('vacuum'):
|
elif entity_id.startswith('vacuum'):
|
||||||
if apis.ha_api.get_entity(entity_id).state == "docked":
|
if apis.ha_api.get_entity(entity_id).state == "docked":
|
||||||
@@ -333,6 +334,11 @@ class LuiController(object):
|
|||||||
apis.ha_api.get_entity(entity_id).call_service("return_to_base")
|
apis.ha_api.get_entity(entity_id).call_service("return_to_base")
|
||||||
elif entity_id.startswith('service'):
|
elif entity_id.startswith('service'):
|
||||||
apis.ha_api.call_service(entity_id.replace('service.', '', 1).replace('.','/', 1), **entity_config.data)
|
apis.ha_api.call_service(entity_id.replace('service.', '', 1).replace('.','/', 1), **entity_config.data)
|
||||||
|
elif entity_id.startswith('valve'):
|
||||||
|
if apis.ha_api.get_entity(entity_id).state == "open":
|
||||||
|
apis.ha_api.get_entity(entity_id).call_service("close_valve")
|
||||||
|
else:
|
||||||
|
apis.ha_api.get_entity(entity_id).call_service("open_valve")
|
||||||
|
|
||||||
# for media page
|
# for media page
|
||||||
if button_type == "media-next":
|
if button_type == "media-next":
|
||||||
@@ -347,8 +353,8 @@ class LuiController(object):
|
|||||||
else:
|
else:
|
||||||
apis.ha_api.get_entity(entity_id).call_service("turn_off")
|
apis.ha_api.get_entity(entity_id).call_service("turn_off")
|
||||||
if button_type == "media-shuffle":
|
if button_type == "media-shuffle":
|
||||||
suffle = not apis.ha_api.get_entity(entity_id).attributes.shuffle
|
shuffle = not apis.ha_api.get_entity(entity_id).attributes['shuffle']
|
||||||
apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=suffle)
|
apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=shuffle)
|
||||||
if button_type == "volumeSlider":
|
if button_type == "volumeSlider":
|
||||||
pos = int(value)
|
pos = int(value)
|
||||||
# HA wants this value between 0 and 1 as float
|
# HA wants this value between 0 and 1 as float
|
||||||
@@ -365,7 +371,7 @@ class LuiController(object):
|
|||||||
if button_type == "colorTempSlider":
|
if button_type == "colorTempSlider":
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
#scale 0-100 from slider to color range of lamp
|
#scale 0-100 from slider to color range of lamp
|
||||||
color_val = scale(int(value), (0, 100), (entity.attributes.min_mireds, entity.attributes.max_mireds))
|
color_val = scale(int(value), (0, 100), (entity.attributes['min_mireds'], entity.attributes['max_mireds']))
|
||||||
apis.ha_api.get_entity(entity_id).call_service("turn_on", color_temp=color_val)
|
apis.ha_api.get_entity(entity_id).call_service("turn_on", color_temp=color_val)
|
||||||
if button_type == "colorWheel":
|
if button_type == "colorWheel":
|
||||||
apis.ha_api.log(value)
|
apis.ha_api.log(value)
|
||||||
@@ -392,9 +398,9 @@ class LuiController(object):
|
|||||||
if button_type == "opnSensorNotify":
|
if button_type == "opnSensorNotify":
|
||||||
msg = ""
|
msg = ""
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
|
if open_sensors := entity.attributes.get("open_sensors") is not None:
|
||||||
for e in entity.attributes.open_sensors:
|
for e in open_sensors:
|
||||||
msg += f"- {apis.ha_api.get_entity(e).attributes.friendly_name}\r\n"
|
msg += f"- {apis.ha_api.get_entity(e).attributes['friendly_name']}\r\n"
|
||||||
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")
|
self._pages_gen.send_message_page("opnSensorNotifyRes", "", msg, "", "")
|
||||||
|
|
||||||
# for cardUnlock
|
# for cardUnlock
|
||||||
@@ -411,22 +417,22 @@ class LuiController(object):
|
|||||||
|
|
||||||
if button_type == "mode-preset_modes":
|
if button_type == "mode-preset_modes":
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
preset_mode = entity.attributes.preset_modes[int(value)]
|
preset_mode = entity.attributes['preset_modes'][int(value)]
|
||||||
entity.call_service("set_preset_mode", preset_mode=preset_mode)
|
entity.call_service("set_preset_mode", preset_mode=preset_mode)
|
||||||
|
|
||||||
if button_type == "mode-swing_modes":
|
if button_type == "mode-swing_modes":
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
swing_mode = entity.attributes.swing_modes[int(value)]
|
swing_mode = entity.attributes['swing_modes'][int(value)]
|
||||||
entity.call_service("set_swing_mode", swing_mode=swing_mode)
|
entity.call_service("set_swing_mode", swing_mode=swing_mode)
|
||||||
|
|
||||||
if button_type == "mode-fan_modes":
|
if button_type == "mode-fan_modes":
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
fan_mode = entity.attributes.fan_modes[int(value)]
|
fan_mode = entity.attributes['fan_modes'][int(value)]
|
||||||
entity.call_service("set_fan_mode", fan_mode=fan_mode)
|
entity.call_service("set_fan_mode", fan_mode=fan_mode)
|
||||||
|
|
||||||
if button_type == "mode-input_select":
|
if button_type in ["mode-input_select", "mode-select"]:
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
option = entity.attributes.options[int(value)]
|
option = entity.attributes['options'][int(value)]
|
||||||
entity.call_service("select_option", option=option)
|
entity.call_service("select_option", option=option)
|
||||||
|
|
||||||
if button_type == "mode-light":
|
if button_type == "mode-light":
|
||||||
@@ -438,12 +444,12 @@ class LuiController(object):
|
|||||||
if options_list is not None:
|
if options_list is not None:
|
||||||
option = options_list[int(value)]
|
option = options_list[int(value)]
|
||||||
else:
|
else:
|
||||||
option = entity.attributes.effect_list[int(value)]
|
option = entity.attributes['effect_list'][int(value)]
|
||||||
entity.call_service("turn_on", effect=option)
|
entity.call_service("turn_on", effect=option)
|
||||||
|
|
||||||
if button_type == "mode-media_player":
|
if button_type == "mode-media_player":
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
option = entity.attributes.source_list[int(value)]
|
option = entity.attributes['source_list'][int(value)]
|
||||||
entity.call_service("select_source", source=option)
|
entity.call_service("select_source", source=option)
|
||||||
|
|
||||||
# timer detail page
|
# timer detail page
|
||||||
@@ -458,3 +464,9 @@ class LuiController(object):
|
|||||||
apis.ha_api.get_entity(entity_id).call_service("pause")
|
apis.ha_api.get_entity(entity_id).call_service("pause")
|
||||||
if button_type == "timer-finish":
|
if button_type == "timer-finish":
|
||||||
apis.ha_api.get_entity(entity_id).call_service("finish")
|
apis.ha_api.get_entity(entity_id).call_service("finish")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def current_card(self) -> Card:
|
||||||
|
"""Used to get the current card"""
|
||||||
|
|
||||||
|
return self._current_card
|
||||||
|
|||||||
@@ -159,8 +159,8 @@ alarm_control_panel_mapping = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
climate_mapping = {
|
climate_mapping = {
|
||||||
'auto': 'calendar-sync',
|
'auto': 'fan-auto',
|
||||||
'heat_cool': 'calendar-sync',
|
'heat_cool': 'sun-snowflake-variant',
|
||||||
'heat': 'fire',
|
'heat': 'fire',
|
||||||
'off': 'power',
|
'off': 'power',
|
||||||
'cool': 'snowflake',
|
'cool': 'snowflake',
|
||||||
@@ -213,6 +213,9 @@ def get_icon_ha(entity_id, overwrite=None, stateOverwrite=None):
|
|||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.ha_api.get_entity(entity_id)
|
||||||
state = entity.state if stateOverwrite is None else stateOverwrite
|
state = entity.state if stateOverwrite is None else stateOverwrite
|
||||||
|
|
||||||
|
if entity_id in ["sensor.weather_forecast_daily", "sensor.weather_forecast_hourly"]:
|
||||||
|
ha_type = "weather"
|
||||||
|
|
||||||
if overwrite is not None:
|
if overwrite is not None:
|
||||||
if type(overwrite) is str:
|
if type(overwrite) is str:
|
||||||
return get_icon_char(overwrite)
|
return get_icon_char(overwrite)
|
||||||
@@ -263,8 +266,8 @@ def get_icon_ha(entity_id, overwrite=None, stateOverwrite=None):
|
|||||||
# based on media_content_type
|
# based on media_content_type
|
||||||
elif ha_type == "media_player":
|
elif ha_type == "media_player":
|
||||||
result_icon = "speaker-off"
|
result_icon = "speaker-off"
|
||||||
if "media_content_type" in entity.attributes:
|
if media_content_type := entity.attributes.get("media_content_type"):
|
||||||
if entity.attributes.media_content_type in media_content_type_mapping:
|
if media_content_type in media_content_type_mapping:
|
||||||
result_icon = media_content_type_mapping[entity.attributes.media_content_type]
|
result_icon = media_content_type_mapping[media_content_type]
|
||||||
|
|
||||||
return get_icon_char(result_icon)
|
return get_icon_char(result_icon)
|
||||||
|
|||||||
@@ -3,19 +3,37 @@ import apis
|
|||||||
|
|
||||||
class LuiMqttListener(object):
|
class LuiMqttListener(object):
|
||||||
|
|
||||||
def __init__(self, topic, controller, updater):
|
def __init__(self, use_api, topic, api_panel_name, api_device_id, controller, updater):
|
||||||
self._controller = controller
|
self._controller = controller
|
||||||
self._updater = updater
|
self._updater = updater
|
||||||
|
self._api_device_id = api_device_id
|
||||||
|
|
||||||
# Setup, mqtt subscription and callback
|
# Setup, mqtt subscription and callback
|
||||||
apis.mqtt_api.mqtt_subscribe(topic=topic)
|
if use_api:
|
||||||
apis.mqtt_api.listen_event(self.mqtt_event_callback, "MQTT_MESSAGE", topic=topic, namespace='mqtt')
|
apis.ha_api.listen_event(self.api_event_callback, "esphome.nspanel.data")
|
||||||
|
else:
|
||||||
|
apis.mqtt_api.mqtt_subscribe(topic=topic)
|
||||||
|
apis.mqtt_api.listen_event(self.mqtt_event_callback, "MQTT_MESSAGE", topic=topic, namespace='mqtt')
|
||||||
|
|
||||||
|
def api_event_callback(self, event_name, data, kwargs):
|
||||||
|
if not "device_id" in data:
|
||||||
|
return
|
||||||
|
if not data["device_id"] == self._api_device_id:
|
||||||
|
return
|
||||||
|
|
||||||
|
apis.ha_api.log(f'API callback for: {data}')
|
||||||
|
|
||||||
|
self.customrecv_event_callback(event_name, data, kwargs)
|
||||||
|
|
||||||
def mqtt_event_callback(self, event_name, data, kwargs):
|
def mqtt_event_callback(self, event_name, data, kwargs):
|
||||||
apis.mqtt_api.log(f'MQTT callback for: {data}')
|
apis.ha_api.log(f'MQTT callback for: {data}')
|
||||||
|
|
||||||
# Parse Json Message from Tasmota and strip out message from nextion display
|
# Parse Json Message from Tasmota and strip out message from nextion display
|
||||||
data = json.loads(data["payload"])
|
data = json.loads(data["payload"])
|
||||||
|
|
||||||
|
self.customrecv_event_callback(event_name, data, kwargs)
|
||||||
|
|
||||||
|
def customrecv_event_callback(self, event_name, data, kwargs):
|
||||||
if("nlui_driver_version" in data):
|
if("nlui_driver_version" in data):
|
||||||
msg = data["nlui_driver_version"]
|
msg = data["nlui_driver_version"]
|
||||||
self._updater.set_tasmota_driver_version(int(msg))
|
self._updater.set_tasmota_driver_version(int(msg))
|
||||||
@@ -23,7 +41,7 @@ class LuiMqttListener(object):
|
|||||||
if("CustomRecv" not in data):
|
if("CustomRecv" not in data):
|
||||||
return
|
return
|
||||||
msg = data["CustomRecv"]
|
msg = data["CustomRecv"]
|
||||||
apis.mqtt_api.log(f"Received Message from Screen: {msg}")
|
apis.ha_api.log(f"Received Message from Screen: {msg}")
|
||||||
# Split message into parts seperated by ","
|
# Split message into parts seperated by ","
|
||||||
msg = msg.split(",")
|
msg = msg.split(",")
|
||||||
# run action based on received command
|
# run action based on received command
|
||||||
@@ -59,17 +77,38 @@ class LuiMqttListener(object):
|
|||||||
self._controller.detail_open(msg[2], msg[3])
|
self._controller.detail_open(msg[2], msg[3])
|
||||||
|
|
||||||
class LuiMqttSender(object):
|
class LuiMqttSender(object):
|
||||||
def __init__(self, api, topic_send):
|
def __init__(self, api, use_api, topic_send, api_panel_name, quiet):
|
||||||
self._ha_api = api
|
self._ha_api = api
|
||||||
|
self._use_api = use_api
|
||||||
self._topic_send = topic_send
|
self._topic_send = topic_send
|
||||||
|
self._api_panel_name = api_panel_name
|
||||||
self._prev_msg = ""
|
self._prev_msg = ""
|
||||||
|
self._quiet = quiet
|
||||||
|
|
||||||
def send_mqtt_msg(self, msg, topic=None, force=False):
|
def send_mqtt_msg(self, msg, topic=None, force=False):
|
||||||
if not force and self._prev_msg == msg:
|
if not force and self._prev_msg == msg:
|
||||||
self._ha_api.log(f"Dropping identical consecutive message: {msg}")
|
apis.ha_api.log(f"Dropping identical consecutive message: {msg}")
|
||||||
return
|
return
|
||||||
self._prev_msg = msg
|
self._prev_msg = msg
|
||||||
if topic is None:
|
|
||||||
topic = self._topic_send
|
if self._quiet is False:
|
||||||
self._ha_api.log(f"Sending MQTT Message: {msg}")
|
apis.ha_api.log(f"Sending Message: {msg}")
|
||||||
apis.mqtt_api.mqtt_publish(topic, msg)
|
|
||||||
|
if self._use_api:
|
||||||
|
apis.ha_api.call_service(service="esphome/" + self._api_panel_name + "_nspanelui_api_call", command=2, data=msg)
|
||||||
|
else:
|
||||||
|
if topic is None:
|
||||||
|
topic = self._topic_send
|
||||||
|
apis.mqtt_api.mqtt_publish(topic, msg)
|
||||||
|
|
||||||
|
def request_berry_driver_version(self):
|
||||||
|
if self._use_api:
|
||||||
|
apis.ha_api.call_service(service="esphome/" + self._api_panel_name + "_nspanelui_api_call", command=1, data="x")
|
||||||
|
else:
|
||||||
|
apis.mqtt_api.mqtt_publish(self._topic_send.replace("CustomSend", "GetDriverVersion"), "x")
|
||||||
|
|
||||||
|
def flash_nextion(self, url):
|
||||||
|
if self._use_api:
|
||||||
|
apis.ha_api.call_service(service="esphome/" + self._api_panel_name + "_nspanelui_api_call", command=255, data=url)
|
||||||
|
else:
|
||||||
|
apis.mqtt_api.mqtt_publish(self._topic_send.replace("CustomSend", "FlashNextion"), url)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
from dateutil import tz
|
||||||
import dateutil.parser as dp
|
import dateutil.parser as dp
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -24,7 +25,7 @@ class LuiPagesGen(object):
|
|||||||
self._config = config
|
self._config = config
|
||||||
self._locale = config.get("locale")
|
self._locale = config.get("locale")
|
||||||
self._send_mqtt_msg = send_mqtt_msg
|
self._send_mqtt_msg = send_mqtt_msg
|
||||||
|
|
||||||
def get_entity_color(self, entity, ha_type=None, stateOverwrite=None, overwrite=None):
|
def get_entity_color(self, entity, ha_type=None, stateOverwrite=None, overwrite=None):
|
||||||
if overwrite is not None:
|
if overwrite is not None:
|
||||||
if type(overwrite) in [str, list]:
|
if type(overwrite) in [str, list]:
|
||||||
@@ -81,7 +82,7 @@ class LuiPagesGen(object):
|
|||||||
icon_color = 63878 #red
|
icon_color = 63878 #red
|
||||||
if state == "fog":
|
if state == "fog":
|
||||||
icon_color = 38066 #75% grey
|
icon_color = 38066 #75% grey
|
||||||
if state in ["hail", "snowy"]:
|
if state in ["hail", "snowy"]:
|
||||||
icon_color = 65535 #white
|
icon_color = 65535 #white
|
||||||
if state == "lightning":
|
if state == "lightning":
|
||||||
icon_color = 65120 #golden-yellow
|
icon_color = 65120 #golden-yellow
|
||||||
@@ -96,21 +97,28 @@ class LuiPagesGen(object):
|
|||||||
if state == "sunny":
|
if state == "sunny":
|
||||||
icon_color = 65504 #bright-yellow
|
icon_color = 65504 #bright-yellow
|
||||||
|
|
||||||
if "rgb_color" in attr:
|
if color := attr.get("rgb_color"):
|
||||||
color = attr.rgb_color
|
if brightness := attr.get("brightness"):
|
||||||
if "brightness" in attr:
|
color = rgb_brightness(color, brightness)
|
||||||
color = rgb_brightness(color, attr.brightness)
|
|
||||||
icon_color = rgb_dec565(color)
|
icon_color = rgb_dec565(color)
|
||||||
elif "brightness" in attr:
|
elif brightness := attr.get("brightness"):
|
||||||
color = rgb_brightness([253, 216, 53], attr.brightness)
|
color = rgb_brightness([253, 216, 53], brightness)
|
||||||
icon_color = rgb_dec565(color)
|
icon_color = rgb_dec565(color)
|
||||||
return icon_color
|
return icon_color
|
||||||
|
|
||||||
|
|
||||||
def update_time(self, kwargs):
|
def update_time(self, kwargs):
|
||||||
time = datetime.datetime.now().strftime(self._config.get("timeFormat"))
|
time = None
|
||||||
|
# get current time, with timezone if set
|
||||||
|
if self._config.get("timezone"):
|
||||||
|
timezone = tz.gettz(self._config.get("timezone"))
|
||||||
|
time = datetime.datetime.now(tz=timezone)
|
||||||
|
else:
|
||||||
|
time = datetime.datetime.now()
|
||||||
|
nice_time = time.strftime(self._config.get("timeFormat"))
|
||||||
addTemplate = self._config.get("timeAdditionalTemplate")
|
addTemplate = self._config.get("timeAdditionalTemplate")
|
||||||
addTimeText = apis.ha_api.render_template(addTemplate)
|
addTimeText = apis.ha_api.render_template(addTemplate)
|
||||||
self._send_mqtt_msg(f"time~{time}~{addTimeText}")
|
self._send_mqtt_msg(f"time~{nice_time}~{addTimeText}")
|
||||||
|
|
||||||
def update_date(self, kwargs):
|
def update_date(self, kwargs):
|
||||||
global babel_spec
|
global babel_spec
|
||||||
@@ -120,7 +128,7 @@ class LuiPagesGen(object):
|
|||||||
else:
|
else:
|
||||||
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("dateAdditionalTemplate")
|
addTemplate = self._config.get("dateAdditionalTemplate")
|
||||||
addDateText = apis.ha_api.render_template(addTemplate)
|
addDateText = apis.ha_api.render_template(addTemplate)
|
||||||
self._send_mqtt_msg(f"date~{date}{addDateText}")
|
self._send_mqtt_msg(f"date~{date}{addDateText}")
|
||||||
@@ -129,7 +137,7 @@ class LuiPagesGen(object):
|
|||||||
if target_page == "cardUnlock":
|
if target_page == "cardUnlock":
|
||||||
target_page = "cardAlarm"
|
target_page = "cardAlarm"
|
||||||
self._send_mqtt_msg(f"pageType~{target_page}")
|
self._send_mqtt_msg(f"pageType~{target_page}")
|
||||||
|
|
||||||
def update_screensaver_weather(self, theme):
|
def update_screensaver_weather(self, theme):
|
||||||
entities = self._config._config_screensaver.entities
|
entities = self._config._config_screensaver.entities
|
||||||
|
|
||||||
@@ -142,7 +150,7 @@ class LuiPagesGen(object):
|
|||||||
item_str = ""
|
item_str = ""
|
||||||
for item in entities:
|
for item in entities:
|
||||||
item_str += self.generate_entities_item(item, "cardEntities", mask=["type", "entityId"])
|
item_str += self.generate_entities_item(item, "cardEntities", mask=["type", "entityId"])
|
||||||
|
|
||||||
self._send_mqtt_msg(f"weatherUpdate{item_str}")
|
self._send_mqtt_msg(f"weatherUpdate{item_str}")
|
||||||
# send color if configured in screensaver
|
# send color if configured in screensaver
|
||||||
if theme is not None:
|
if theme is not None:
|
||||||
@@ -172,17 +180,20 @@ class LuiPagesGen(object):
|
|||||||
colorOverride = item.colorOverride
|
colorOverride = item.colorOverride
|
||||||
name = item.nameOverride
|
name = item.nameOverride
|
||||||
uuid = item.uuid
|
uuid = item.uuid
|
||||||
|
|
||||||
# check ha template for name
|
# check ha template for name
|
||||||
if item.nameOverride is not None and ("{" in item.nameOverride and "}" in item.nameOverride):
|
if item.nameOverride is not None and ("{" in item.nameOverride and "}" in item.nameOverride):
|
||||||
name = apis.ha_api.render_template(item.nameOverride)
|
name = apis.ha_api.render_template(item.nameOverride)
|
||||||
|
|
||||||
# type of the item is the string before the "." in the entityId
|
# type of the item is the string before the "." in the entityId
|
||||||
if entityId is not None:
|
if entityId is not None:
|
||||||
entityType = entityId.split(".")[0]
|
entityType = entityId.split(".")[0]
|
||||||
else:
|
else:
|
||||||
entityType = "delete"
|
entityType = "delete"
|
||||||
|
|
||||||
|
if entityId in ["sensor.weather_forecast_daily", "sensor.weather_forecast_hourly"]:
|
||||||
|
entityType = "weather"
|
||||||
|
|
||||||
apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")
|
apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")
|
||||||
|
|
||||||
status_entity = apis.ha_api.get_entity(item.status) if item.status and apis.ha_api.entity_exists(item.status) else None
|
status_entity = apis.ha_api.get_entity(item.status) if item.status and apis.ha_api.entity_exists(item.status) else None
|
||||||
@@ -212,7 +223,7 @@ class LuiPagesGen(object):
|
|||||||
if status_entity:
|
if status_entity:
|
||||||
icon_res = get_icon_ha(item.status, overwrite=icon)
|
icon_res = get_icon_ha(item.status, overwrite=icon)
|
||||||
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
||||||
if item.status.startswith("sensor") and (cardType == "cardGrid" or cardType == "cardGrid2") and item.iconOverride is None:
|
if item.status.startswith("sensor") and cardType in ["cardGrid", "cardGrid1", "cardGrid2"] and item.iconOverride is None:
|
||||||
icon_res = status_entity.state[:4]
|
icon_res = status_entity.state[:4]
|
||||||
if icon_res[-1] == ".":
|
if icon_res[-1] == ".":
|
||||||
icon_res = icon_res[:-1]
|
icon_res = icon_res[:-1]
|
||||||
@@ -236,7 +247,7 @@ class LuiPagesGen(object):
|
|||||||
if status_entity:
|
if status_entity:
|
||||||
icon_id = get_icon_ha(item.status, overwrite=icon)
|
icon_id = get_icon_ha(item.status, overwrite=icon)
|
||||||
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
||||||
if item.status.startswith("sensor") and (cardType == "cardGrid" or cardType == "cardGrid2") and item.iconOverride is None:
|
if item.status.startswith("sensor") and cardType in ["cardGrid", "cardGrid1", "cardGrid2"] and item.iconOverride is None:
|
||||||
icon_id = status_entity.state[:4]
|
icon_id = status_entity.state[:4]
|
||||||
if icon_id[-1] == ".":
|
if icon_id[-1] == ".":
|
||||||
icon_id = icon_id[:-1]
|
icon_id = icon_id[:-1]
|
||||||
@@ -245,7 +256,7 @@ class LuiPagesGen(object):
|
|||||||
if entity is None:
|
if entity is None:
|
||||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml"
|
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml"
|
||||||
|
|
||||||
|
|
||||||
# HA Entities
|
# HA Entities
|
||||||
# common res vars
|
# common res vars
|
||||||
entityTypePanel = "text"
|
entityTypePanel = "text"
|
||||||
@@ -264,7 +275,7 @@ class LuiPagesGen(object):
|
|||||||
icon_up_status = "disable"
|
icon_up_status = "disable"
|
||||||
icon_stop_status = "disable"
|
icon_stop_status = "disable"
|
||||||
icon_down_status = "disable"
|
icon_down_status = "disable"
|
||||||
bits = entity.attributes.supported_features
|
bits = entity.attributes.get('supported_features')
|
||||||
pos = entity.attributes.get("current_position")
|
pos = entity.attributes.get("current_position")
|
||||||
if pos is None:
|
if pos is None:
|
||||||
pos_status = entity.state
|
pos_status = entity.state
|
||||||
@@ -297,19 +308,24 @@ class LuiPagesGen(object):
|
|||||||
device_class = entity.attributes.get("device_class", "")
|
device_class = entity.attributes.get("device_class", "")
|
||||||
unit_of_measurement = entity.attributes.get("unit_of_measurement", "")
|
unit_of_measurement = entity.attributes.get("unit_of_measurement", "")
|
||||||
value = entity.state
|
value = entity.state
|
||||||
|
|
||||||
|
try:
|
||||||
|
value = str(round(float(value), 1))
|
||||||
|
except:
|
||||||
|
print("An exception occurred")
|
||||||
|
|
||||||
# limit value to 4 chars on us-p
|
# limit value to 4 chars on us-p
|
||||||
if self._config.get("model") == "us-p" and cardType == "cardEntities":
|
if self._config.get("model") == "us-p" and cardType == "cardEntities":
|
||||||
value = entity.state[:4]
|
value = entity.state[:4]
|
||||||
if value[-1] == ".":
|
if value[-1] == ".":
|
||||||
value = value[:-1]
|
value = value[:-1]
|
||||||
|
|
||||||
if device_class != "temperature":
|
if device_class != "temperature":
|
||||||
value = value + " "
|
value = value + " "
|
||||||
value = value + unit_of_measurement
|
value = value + unit_of_measurement
|
||||||
if entityType == "binary_sensor":
|
if entityType == "binary_sensor":
|
||||||
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}.{entity.state}")
|
||||||
if (cardType == "cardGrid" or cardType == "cardGrid2") and entityType == "sensor" and icon is None:
|
if cardType in ["cardGrid", "cardGrid1", "cardGrid2"] and entityType == "sensor" and icon is None:
|
||||||
icon_id = entity.state[:4]
|
icon_id = entity.state[:4]
|
||||||
if icon_id[-1] == ".":
|
if icon_id[-1] == ".":
|
||||||
icon_id = icon_id[:-1]
|
icon_id = icon_id[:-1]
|
||||||
@@ -371,20 +387,50 @@ class LuiPagesGen(object):
|
|||||||
elif entityType == "weather":
|
elif entityType == "weather":
|
||||||
entityTypePanel = "text"
|
entityTypePanel = "text"
|
||||||
unit = get_attr_safe(entity, "temperature_unit", "")
|
unit = get_attr_safe(entity, "temperature_unit", "")
|
||||||
if type(item.stype) == int and len(entity.attributes.forecast) >= item.stype:
|
rt = None
|
||||||
fdate = dp.parse(entity.attributes.forecast[item.stype]['datetime'])
|
if type(item.stype) == str and ":" in item.stype and len(item.stype.split(":")) == 2:
|
||||||
global babel_spec
|
spintstr = item.stype.split(":")
|
||||||
if babel_spec is not None:
|
rt = spintstr[0]
|
||||||
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
item.stype = int(spintstr[1])
|
||||||
name = babel.dates.format_datetime(fdate.astimezone(), dateformat, locale=self._locale)
|
if type(item.stype) == int:
|
||||||
|
bits = get_attr_safe(entity, "supported_features", 0b0)
|
||||||
|
if not rt:
|
||||||
|
rt = "daily"
|
||||||
|
if bits & 0b001: #FORECAST_DAILY
|
||||||
|
rt = "daily"
|
||||||
|
elif bits & 0b010: #FORECAST_HOURLY
|
||||||
|
rt = "hourly"
|
||||||
|
elif bits & 0b100: #FORECAST_TWICE_DAILY
|
||||||
|
rt = "twice_daily"
|
||||||
|
|
||||||
|
results = apis.ha_api.call_service(
|
||||||
|
"weather/get_forecasts", target={"entity_id": entityId}, service_data={"type": rt}
|
||||||
|
)
|
||||||
|
forecast = results.get("result", {}).get("response", {}).get(entityId, {}).get('forecast') or entity.attributes.get('forecast', [])
|
||||||
|
if len(forecast) >= item.stype:
|
||||||
|
day_forecast = forecast[item.stype]
|
||||||
|
fdate = dp.parse(day_forecast['datetime'])
|
||||||
|
global babel_spec
|
||||||
|
if babel_spec is not None:
|
||||||
|
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
||||||
|
name = babel.dates.format_datetime(fdate.astimezone(), dateformat, locale=self._locale)
|
||||||
|
else:
|
||||||
|
dateformat = "%a" if item.nameOverride is None else item.nameOverride
|
||||||
|
name = fdate.astimezone().strftime(dateformat)
|
||||||
|
icon_id = get_icon_ha(entityId, stateOverwrite=day_forecast['condition'])
|
||||||
|
value = f'{day_forecast.get("temperature", "")}{unit}'
|
||||||
|
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=day_forecast['condition'], overwrite=colorOverride)
|
||||||
else:
|
else:
|
||||||
dateformat = "%a" if item.nameOverride is None else item.nameOverride
|
value = f'{get_attr_safe(entity, "temperature", "")}{unit}'
|
||||||
name = fdate.astimezone().strftime(dateformat)
|
|
||||||
icon_id = get_icon_ha(entityId, stateOverwrite=entity.attributes.forecast[item.stype]['condition'])
|
|
||||||
value = f'{entity.attributes.forecast[item.stype].get("temperature", "")}{unit}'
|
|
||||||
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=entity.attributes.forecast[item.stype]['condition'], overwrite=colorOverride)
|
|
||||||
else:
|
else:
|
||||||
value = f'{get_attr_safe(entity, "temperature", "")}{unit}'
|
value = f'{get_attr_safe(entity, "temperature", "")}{unit}'
|
||||||
|
elif entityType == "valve":
|
||||||
|
entityTypePanel = "valve"
|
||||||
|
value = get_translation(self._locale, f"backend.component.binary_sensor.state.door.{entity.state}")
|
||||||
|
if entity.state == "open":
|
||||||
|
icon_id = get_icon_id("valve-open")
|
||||||
|
else:
|
||||||
|
icon_id = get_icon_id("valve-closed")
|
||||||
else:
|
else:
|
||||||
name = "unsupported"
|
name = "unsupported"
|
||||||
# Overwrite for value
|
# Overwrite for value
|
||||||
@@ -418,7 +464,7 @@ class LuiPagesGen(object):
|
|||||||
font = 3
|
font = 3
|
||||||
elif isinstance(item.font, int):
|
elif isinstance(item.font, int):
|
||||||
font = item.font
|
font = item.font
|
||||||
icon_id += f'{icon_id}¬{font}'
|
icon_id = f'{icon_id}¬{font}'
|
||||||
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
||||||
|
|
||||||
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
||||||
@@ -443,7 +489,7 @@ class LuiPagesGen(object):
|
|||||||
command = f"entityUpd~Not found~{navigation}~{item}~check~220~apps.yaml~150~300~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Please~your~~"
|
command = f"entityUpd~Not found~{navigation}~{item}~check~220~apps.yaml~150~300~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Please~your~~"
|
||||||
else:
|
else:
|
||||||
entity = apis.ha_api.get_entity(item)
|
entity = apis.ha_api.get_entity(item)
|
||||||
heading = title if title != "unknown" else entity.attributes.friendly_name
|
heading = title if title != "unknown" else entity.attributes['friendly_name']
|
||||||
current_temp = get_attr_safe(entity, "current_temperature", "")
|
current_temp = get_attr_safe(entity, "current_temperature", "")
|
||||||
dest_temp = get_attr_safe(entity, "temperature", None)
|
dest_temp = get_attr_safe(entity, "temperature", None)
|
||||||
dest_temp2 = ""
|
dest_temp2 = ""
|
||||||
@@ -464,10 +510,10 @@ class LuiPagesGen(object):
|
|||||||
state_value += get_translation(self._locale, f"backend.component.climate.state._.{entity.state}")
|
state_value += get_translation(self._locale, f"backend.component.climate.state._.{entity.state}")
|
||||||
if hvac_action != "":
|
if hvac_action != "":
|
||||||
state_value += ")"
|
state_value += ")"
|
||||||
|
|
||||||
min_temp = int(get_attr_safe(entity, "min_temp", 0)*10)
|
min_temp = int(get_attr_safe(entity, "min_temp", 0)*10)
|
||||||
max_temp = int(get_attr_safe(entity, "max_temp", 0)*10)
|
max_temp = int(get_attr_safe(entity, "max_temp", 0)*10)
|
||||||
step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10)
|
step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10)
|
||||||
icon_res_list = []
|
icon_res_list = []
|
||||||
icon_res = ""
|
icon_res = ""
|
||||||
|
|
||||||
@@ -492,7 +538,7 @@ class LuiPagesGen(object):
|
|||||||
state = 0
|
state = 0
|
||||||
if(mode == entity.state):
|
if(mode == entity.state):
|
||||||
state = 1
|
state = 1
|
||||||
|
|
||||||
icon_res_list.append(f"~{icon_id}~{color_on}~{state}~{mode}")
|
icon_res_list.append(f"~{icon_id}~{color_on}~{state}~{mode}")
|
||||||
|
|
||||||
icon_res = "".join(icon_res_list)
|
icon_res = "".join(icon_res_list)
|
||||||
@@ -507,11 +553,11 @@ class LuiPagesGen(object):
|
|||||||
icon_res = "~"*4 + icon_res_list[0] + "~"*4 + icon_res_list[1] + "~"*4 + icon_res_list[2] + "~"*4 + icon_res_list[3]
|
icon_res = "~"*4 + icon_res_list[0] + "~"*4 + icon_res_list[1] + "~"*4 + icon_res_list[2] + "~"*4 + icon_res_list[3]
|
||||||
elif len(icon_res_list) >= 5 or self._config.get("model") == "us-p":
|
elif len(icon_res_list) >= 5 or self._config.get("model") == "us-p":
|
||||||
icon_res = "".join(icon_res_list) + "~"*4*(8-len(icon_res_list))
|
icon_res = "".join(icon_res_list) + "~"*4*(8-len(icon_res_list))
|
||||||
|
|
||||||
currently_translation = get_translation(self._locale, "frontend.ui.card.climate.currently")
|
currently_translation = get_translation(self._locale, "frontend.ui.card.climate.currently")
|
||||||
state_translation = get_translation(self._locale, "frontend.ui.panel.config.devices.entities.state")
|
state_translation = get_translation(self._locale, "frontend.ui.panel.config.devices.entities.state")
|
||||||
action_translation = get_translation(self._locale, "frontend.ui.card.climate.operation").replace(' ','\r\n')
|
action_translation = get_translation(self._locale, "frontend.ui.card.climate.operation").replace(' ','\r\n')
|
||||||
|
|
||||||
detailPage = "1"
|
detailPage = "1"
|
||||||
if any(x in ["preset_modes", "swing_modes", "fan_modes"] for x in entity.attributes):
|
if any(x in ["preset_modes", "swing_modes", "fan_modes"] for x in entity.attributes):
|
||||||
detailPage = "0"
|
detailPage = "0"
|
||||||
@@ -519,6 +565,50 @@ class LuiPagesGen(object):
|
|||||||
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{state_value}~{min_temp}~{max_temp}~{step_temp}{icon_res}~{currently_translation}~{state_translation}~{action_translation}~{temperature_unit_icon}~{dest_temp2}~{detailPage}"
|
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{state_value}~{min_temp}~{max_temp}~{step_temp}{icon_res}~{currently_translation}~{state_translation}~{action_translation}~{temperature_unit_icon}~{dest_temp2}~{detailPage}"
|
||||||
self._send_mqtt_msg(command)
|
self._send_mqtt_msg(command)
|
||||||
|
|
||||||
|
def generate_chart_page(self, navigation, title, entity):
|
||||||
|
item = entity.entityId
|
||||||
|
if not apis.ha_api.entity_exists(item):
|
||||||
|
command = f"entityUpd~Not found~{navigation}"
|
||||||
|
else:
|
||||||
|
entity = apis.ha_api.get_entity(item)
|
||||||
|
heading = title if title != "unknown" else entity.attributes['friendly_name']
|
||||||
|
|
||||||
|
# get data from homeassistant
|
||||||
|
data_raw = apis.ha_api.get_history(entity_id = item, days = 7)
|
||||||
|
data = [(d.get('last_updated', None),d.get('state', None)) for d in data_raw[0]]
|
||||||
|
data = dict(data)
|
||||||
|
|
||||||
|
# Parse timestamps and convert to datetime objects, excluding 'unavailable' values
|
||||||
|
time_temp_pairs = [(datetime.datetime.fromisoformat(timestamp), int(val)) for timestamp, val in data.items() if val != 'unavailable']
|
||||||
|
# Sort the data based on timestamps
|
||||||
|
time_temp_pairs.sort(key=lambda x: x[0])
|
||||||
|
# Calculate the time span
|
||||||
|
start_time = time_temp_pairs[0][0]
|
||||||
|
end_time = time_temp_pairs[-1][0]
|
||||||
|
time_span = end_time - start_time
|
||||||
|
# Calculate time intervals for evenly spaced data points
|
||||||
|
num_data_points = 24
|
||||||
|
time_intervals = [start_time + i * time_span / (num_data_points - 1) for i in range(num_data_points)]
|
||||||
|
# Find the closest data points for these time intervals
|
||||||
|
evenly_spaced_data = []
|
||||||
|
for interval in time_intervals:
|
||||||
|
closest_pair = min(time_temp_pairs, key=lambda x: abs(x[0] - interval))
|
||||||
|
time, val = closest_pair
|
||||||
|
val = int(val)
|
||||||
|
evenly_spaced_data.append((time, val))
|
||||||
|
|
||||||
|
datapoints = ""
|
||||||
|
for idx, (time, val) in enumerate(evenly_spaced_data):
|
||||||
|
datapoints += f"{val}~"
|
||||||
|
|
||||||
|
color = 65504
|
||||||
|
ydesc = "Akku [%]"
|
||||||
|
yscale = "25:50:75:100"
|
||||||
|
#datapoints = "19^22:00~17~12~8~7^2:00~6~6~5~5^6:00~5~15~19~12^10:00~17~24~18~12^14:00~13~13~13~15^18:00~25~28~26"
|
||||||
|
|
||||||
|
command = f"entityUpd~{heading}~{navigation}~{color}~{ydesc}~{yscale}~{datapoints}"
|
||||||
|
self._send_mqtt_msg(command)
|
||||||
|
|
||||||
def generate_media_page(self, navigation, title, entity, entities, mediaBtn):
|
def generate_media_page(self, navigation, title, entity, entities, mediaBtn):
|
||||||
entityId = entity.entityId
|
entityId = entity.entityId
|
||||||
if entity.status is not None:
|
if entity.status is not None:
|
||||||
@@ -528,12 +618,12 @@ class LuiPagesGen(object):
|
|||||||
else:
|
else:
|
||||||
media_icon = self.generate_entities_item(entity, "cardGrid")
|
media_icon = self.generate_entities_item(entity, "cardGrid")
|
||||||
ha_entity = apis.ha_api.get_entity(entityId)
|
ha_entity = apis.ha_api.get_entity(entityId)
|
||||||
heading = title if title != "unknown" else ha_entity.attributes.friendly_name
|
heading = title if title != "unknown" else ha_entity.attributes['friendly_name']
|
||||||
title = get_attr_safe(ha_entity, "media_title", "")
|
title = get_attr_safe(ha_entity, "media_title", "")
|
||||||
author = get_attr_safe(ha_entity, "media_artist", "")
|
author = get_attr_safe(ha_entity, "media_artist", "")
|
||||||
volume = int(get_attr_safe(ha_entity, "volume_level", 0)*100)
|
volume = int(get_attr_safe(ha_entity, "volume_level", 0)*100)
|
||||||
iconplaypause = get_icon_id("pause") if ha_entity.state == "playing" else get_icon_id("play")
|
iconplaypause = get_icon_id("pause") if ha_entity.state == "playing" else get_icon_id("play")
|
||||||
bits = ha_entity.attributes.supported_features
|
bits = ha_entity.attributes['supported_features']
|
||||||
onoffbutton = "disable"
|
onoffbutton = "disable"
|
||||||
if bits & 0b10000000:
|
if bits & 0b10000000:
|
||||||
if ha_entity.state == "off":
|
if ha_entity.state == "off":
|
||||||
@@ -551,7 +641,7 @@ class LuiPagesGen(object):
|
|||||||
item_str = ""
|
item_str = ""
|
||||||
for item in entities:
|
for item in entities:
|
||||||
item_str += self.generate_entities_item(item, "cardGrid")
|
item_str += self.generate_entities_item(item, "cardGrid")
|
||||||
|
|
||||||
bck_override = entity.iconOverride
|
bck_override = entity.iconOverride
|
||||||
if entity.status is not None:
|
if entity.status is not None:
|
||||||
bck_entity = entity.entityId
|
bck_entity = entity.entityId
|
||||||
@@ -559,14 +649,14 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
entity.iconOverride = "mdi:speaker"
|
entity.iconOverride = "mdi:speaker"
|
||||||
item_str += self.generate_entities_item(entity, "cardGrid")
|
item_str += self.generate_entities_item(entity, "cardGrid")
|
||||||
|
|
||||||
entity.iconOverride = bck_override
|
entity.iconOverride = bck_override
|
||||||
if entity.status is not None:
|
if entity.status is not None:
|
||||||
entity.entityId = bck_entity
|
entity.entityId = bck_entity
|
||||||
|
|
||||||
command = f"entityUpd~{heading}~{navigation}~{entityId}~{title}~~{author}~~{volume}~{iconplaypause}~{onoffbutton}~{shuffleBtn}{media_icon}{item_str}"
|
command = f"entityUpd~{heading}~{navigation}~{entityId}~{title}~~{author}~~{volume}~{iconplaypause}~{onoffbutton}~{shuffleBtn}{media_icon}{item_str}"
|
||||||
self._send_mqtt_msg(command)
|
self._send_mqtt_msg(command)
|
||||||
|
|
||||||
def generate_alarm_page(self, navigation, title, entity, overwrite_supported_modes, alarmBtn):
|
def generate_alarm_page(self, navigation, title, entity, overwrite_supported_modes, alarmBtn):
|
||||||
item = entity.entityId
|
item = entity.entityId
|
||||||
if not apis.ha_api.entity_exists(item):
|
if not apis.ha_api.entity_exists(item):
|
||||||
@@ -583,7 +673,7 @@ class LuiPagesGen(object):
|
|||||||
if not entity.attributes.get("code_arm_required", False):
|
if not entity.attributes.get("code_arm_required", False):
|
||||||
numpad = "disable"
|
numpad = "disable"
|
||||||
if overwrite_supported_modes is None:
|
if overwrite_supported_modes is None:
|
||||||
bits = entity.attributes.supported_features
|
bits = entity.attributes['supported_features']
|
||||||
if bits & 0b000001:
|
if bits & 0b000001:
|
||||||
supported_modes.append("arm_home")
|
supported_modes.append("arm_home")
|
||||||
if bits & 0b000010:
|
if bits & 0b000010:
|
||||||
@@ -622,7 +712,7 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
#add button to show sensor state
|
#add button to show sensor state
|
||||||
add_btn = ""
|
add_btn = ""
|
||||||
if "open_sensors" in entity.attributes and entity.attributes.open_sensors is not None:
|
if entity.attributes.get("open_sensors") is not None:
|
||||||
add_btn=f"{get_icon_id('progress-alert')}~{rgb_dec565([243,179,0])}~"
|
add_btn=f"{get_icon_id('progress-alert')}~{rgb_dec565([243,179,0])}~"
|
||||||
if alarmBtn is not None and type(alarmBtn) is dict:
|
if alarmBtn is not None and type(alarmBtn) is dict:
|
||||||
entity = alarmBtn.get("entity")
|
entity = alarmBtn.get("entity")
|
||||||
@@ -633,8 +723,8 @@ class LuiPagesGen(object):
|
|||||||
else:
|
else:
|
||||||
icon_color = rgb_dec565([243,179,0])
|
icon_color = rgb_dec565([243,179,0])
|
||||||
add_btn=f"{iconnav}~{icon_color}~{entity}"
|
add_btn=f"{iconnav}~{icon_color}~{entity}"
|
||||||
|
|
||||||
|
|
||||||
# add padding to arm buttons
|
# add padding to arm buttons
|
||||||
arm_buttons = ""
|
arm_buttons = ""
|
||||||
for b in supported_modes:
|
for b in supported_modes:
|
||||||
@@ -644,12 +734,12 @@ class LuiPagesGen(object):
|
|||||||
arm_buttons += "~"*((4-len(supported_modes))*2)
|
arm_buttons += "~"*((4-len(supported_modes))*2)
|
||||||
command = f"entityUpd~{title}~{navigation}~{item}{arm_buttons}~{icon}~{color}~{numpad}~{flashing}~{add_btn}"
|
command = f"entityUpd~{title}~{navigation}~{item}{arm_buttons}~{icon}~{color}~{numpad}~{flashing}~{add_btn}"
|
||||||
self._send_mqtt_msg(command)
|
self._send_mqtt_msg(command)
|
||||||
|
|
||||||
def generate_unlock_page(self, navigation, item, title, destination, pin):
|
def generate_unlock_page(self, navigation, item, title, destination, pin):
|
||||||
color = rgb_dec565([255,0,0])
|
color = rgb_dec565([255,0,0])
|
||||||
icon = get_icon_id("lock")
|
icon = get_icon_id("lock")
|
||||||
supported_modes = ["cardUnlock-unlock"]
|
supported_modes = ["cardUnlock-unlock"]
|
||||||
|
|
||||||
# add padding to arm buttons
|
# add padding to arm buttons
|
||||||
arm_buttons = ""
|
arm_buttons = ""
|
||||||
for b in supported_modes:
|
for b in supported_modes:
|
||||||
@@ -688,8 +778,8 @@ class LuiPagesGen(object):
|
|||||||
if (time.time()-card.last_update) < card.cooldown:
|
if (time.time()-card.last_update) < card.cooldown:
|
||||||
return
|
return
|
||||||
card.last_update = time.time()
|
card.last_update = time.time()
|
||||||
|
|
||||||
|
|
||||||
leftBtn = "delete~~~~~"
|
leftBtn = "delete~~~~~"
|
||||||
if card.uuid_prev is not None:
|
if card.uuid_prev is not None:
|
||||||
leftBtn = self.generate_entities_item(Entity(
|
leftBtn = self.generate_entities_item(Entity(
|
||||||
@@ -726,6 +816,8 @@ class LuiPagesGen(object):
|
|||||||
if send_page_type:
|
if send_page_type:
|
||||||
if card.cardType == "cardGrid" and len(card.entities) > 6:
|
if card.cardType == "cardGrid" and len(card.entities) > 6:
|
||||||
card.cardType = "cardGrid2"
|
card.cardType = "cardGrid2"
|
||||||
|
if card.cardType == "cardGrid1":
|
||||||
|
card.cardType = "cardGrid"
|
||||||
self.page_type(card.cardType)
|
self.page_type(card.cardType)
|
||||||
|
|
||||||
# send sleep timeout if there is one configured for the current card
|
# send sleep timeout if there is one configured for the current card
|
||||||
@@ -733,9 +825,9 @@ class LuiPagesGen(object):
|
|||||||
self._send_mqtt_msg(f"timeout~{card.sleepTimeout}")
|
self._send_mqtt_msg(f"timeout~{card.sleepTimeout}")
|
||||||
else:
|
else:
|
||||||
self._send_mqtt_msg(f'timeout~{self._config.get("sleepTimeout")}')
|
self._send_mqtt_msg(f'timeout~{self._config.get("sleepTimeout")}')
|
||||||
|
|
||||||
temp_unit = card.raw_config.get("temperatureUnit", "celsius")
|
temp_unit = card.raw_config.get("temperatureUnit", "celsius")
|
||||||
if card.cardType in ["cardEntities", "cardGrid", "cardGrid2"]:
|
if card.cardType in ["cardEntities", "cardGrid", "cardGrid1","cardGrid2"]:
|
||||||
self.generate_entities_page(navigation, card.title, card.entities, card.cardType, temp_unit)
|
self.generate_entities_page(navigation, card.title, card.entities, card.cardType, temp_unit)
|
||||||
return
|
return
|
||||||
if card.cardType == "cardThermo":
|
if card.cardType == "cardThermo":
|
||||||
@@ -770,6 +862,10 @@ class LuiPagesGen(object):
|
|||||||
if card.cardType == "cardPower":
|
if card.cardType == "cardPower":
|
||||||
self.generate_power_page(navigation, card.title, card.entities)
|
self.generate_power_page(navigation, card.title, card.entities)
|
||||||
return
|
return
|
||||||
|
if card.cardType == "cardChart":
|
||||||
|
self.generate_chart_page(navigation, card.title, card.entity)
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def generate_light_detail_page(self, entity_id, is_open_detail=False):
|
def generate_light_detail_page(self, entity_id, is_open_detail=False):
|
||||||
if entity_id.startswith('uuid'):
|
if entity_id.startswith('uuid'):
|
||||||
@@ -783,25 +879,26 @@ class LuiPagesGen(object):
|
|||||||
color_temp = "disable"
|
color_temp = "disable"
|
||||||
color = "disable"
|
color = "disable"
|
||||||
effect_supported = "disable"
|
effect_supported = "disable"
|
||||||
|
supported_color_modes = entity.attributes['supported_color_modes']
|
||||||
if "onoff" not in entity.attributes.supported_color_modes:
|
|
||||||
|
if "onoff" not in supported_color_modes:
|
||||||
brightness = 0
|
brightness = 0
|
||||||
if entity.state == "on":
|
if entity.state == "on":
|
||||||
if "brightness" in entity.attributes:
|
if brightness := entity.attributes.get("brightness"):
|
||||||
# scale 0-255 brightness from ha to 0-100
|
# scale 0-255 brightness from ha to 0-100
|
||||||
brightness = int(scale(entity.attributes.brightness,(0,255),(0,100)))
|
brightness = int(scale(brightness, (0,255), (0,100)))
|
||||||
else:
|
else:
|
||||||
brightness = "disable"
|
brightness = "disable"
|
||||||
if "color_temp" in entity.attributes.supported_color_modes:
|
if "color_temp" in supported_color_modes:
|
||||||
if "color_temp" in entity.attributes:
|
if color_temp := entity.attributes.get("color_temp"):
|
||||||
# scale ha color temp range to 0-100
|
# scale ha color temp range to 0-100
|
||||||
color_temp = int(scale(entity.attributes.color_temp,(entity.attributes.min_mireds, entity.attributes.max_mireds),(0,100)))
|
color_temp = int(scale(color_temp, (entity.attributes['min_mireds'], entity.attributes['max_mireds']),(0, 100)))
|
||||||
else:
|
else:
|
||||||
color_temp = "unknown"
|
color_temp = "unknown"
|
||||||
else:
|
else:
|
||||||
color_temp = "disable"
|
color_temp = "disable"
|
||||||
list_color_modes = ["xy", "rgb", "rgbw", "hs"]
|
list_color_modes = ["xy", "rgb", "rgbw", "hs"]
|
||||||
if any(item in list_color_modes for item in entity.attributes.supported_color_modes):
|
if any(item in list_color_modes for item in supported_color_modes):
|
||||||
color = "enable"
|
color = "enable"
|
||||||
else:
|
else:
|
||||||
color = "disable"
|
color = "disable"
|
||||||
@@ -811,20 +908,20 @@ class LuiPagesGen(object):
|
|||||||
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~{entity_id}~~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}~{effect_supported}", force=is_open_detail)
|
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}~{color_translation}~{color_temp_translation}~{brightness_translation}~{effect_supported}", force=is_open_detail)
|
||||||
|
|
||||||
def generate_shutter_detail_page(self, entity_id, is_open_detail=False):
|
def generate_shutter_detail_page(self, entity_id, is_open_detail=False):
|
||||||
entity = apis.ha_api.get_entity(entity_id)
|
entity = apis.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_ha(entity_id)
|
icon_id = get_icon_ha(entity_id)
|
||||||
|
|
||||||
pos = entity.attributes.get("current_position")
|
pos = entity.attributes.get("current_position")
|
||||||
if pos is None:
|
if pos is None:
|
||||||
pos_status = entity.state
|
pos_status = entity.state
|
||||||
pos = "disable"
|
pos = "disable"
|
||||||
else:
|
else:
|
||||||
pos_status = pos
|
pos_status = pos
|
||||||
|
|
||||||
pos_translation = ""
|
pos_translation = ""
|
||||||
icon_up = ""
|
icon_up = ""
|
||||||
icon_stop = ""
|
icon_stop = ""
|
||||||
@@ -841,7 +938,7 @@ class LuiPagesGen(object):
|
|||||||
iconTiltRightStatus = "disable"
|
iconTiltRightStatus = "disable"
|
||||||
tilt_pos = "disable"
|
tilt_pos = "disable"
|
||||||
|
|
||||||
bits = entity.attributes.supported_features
|
bits = entity.attributes['supported_features']
|
||||||
|
|
||||||
# position supported
|
# position supported
|
||||||
if bits & 0b00001111:
|
if bits & 0b00001111:
|
||||||
@@ -928,7 +1025,7 @@ class LuiPagesGen(object):
|
|||||||
if modes:
|
if modes:
|
||||||
modes_out += f"{heading}~{mode}~{cur_mode}~{modes_res}~"
|
modes_out += f"{heading}~{mode}~{cur_mode}~{modes_res}~"
|
||||||
|
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{icon_id}~{icon_color}~{modes_out}", force=is_open_detail)
|
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{icon_id}~{icon_color}~{modes_out}", force=is_open_detail)
|
||||||
|
|
||||||
def generate_input_select_detail_page(self, entity_id, is_open_detail=False):
|
def generate_input_select_detail_page(self, entity_id, is_open_detail=False):
|
||||||
options_list = None
|
options_list = None
|
||||||
@@ -992,8 +1089,9 @@ class LuiPagesGen(object):
|
|||||||
label2 = get_translation(self._locale, "frontend.ui.card.timer.actions.cancel")
|
label2 = get_translation(self._locale, "frontend.ui.card.timer.actions.cancel")
|
||||||
label3 = get_translation(self._locale, "frontend.ui.card.timer.actions.finish")
|
label3 = get_translation(self._locale, "frontend.ui.card.timer.actions.finish")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}", force=is_open_detail)
|
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}", force=is_open_detail)
|
||||||
|
|
||||||
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")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{ident}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")
|
self._send_mqtt_msg(f"entityUpdateDetail~{ident}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
"comfort": "Komfort",
|
"comfort": "Komfort",
|
||||||
"eco": "Eko",
|
"eco": "Eko",
|
||||||
"home": "Doma",
|
"home": "Doma",
|
||||||
"none": "Žiadny",
|
"none": "Žiadna",
|
||||||
"sleep": "Pohotovostný režim"
|
"sleep": "Spánok"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"humidifier": {
|
"humidifier": {
|
||||||
@@ -3951,4 +3951,4 @@
|
|||||||
"sidebar_toggle": "Prepínač bočného panela"
|
"sidebar_toggle": "Prepínač bočného panela"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
class Updater:
|
class Updater:
|
||||||
def __init__(self, log, send_mqtt_msg, topic_send, mode, desired_display_firmware_version, desired_display_firmware_model, desired_display_firmware_url, desired_tasmota_driver_version, desired_tasmota_driver_url):
|
def __init__(self, log, mqttsend, topic_send, mode, desired_display_firmware_version, desired_display_firmware_model, desired_display_firmware_url, desired_tasmota_driver_version, desired_tasmota_driver_url):
|
||||||
|
|
||||||
self._log = log
|
self._log = log
|
||||||
|
|
||||||
self.desired_display_firmware_version = desired_display_firmware_version
|
self.desired_display_firmware_version = desired_display_firmware_version
|
||||||
@@ -10,7 +9,7 @@ class Updater:
|
|||||||
self.desired_tasmota_driver_url = desired_tasmota_driver_url
|
self.desired_tasmota_driver_url = desired_tasmota_driver_url
|
||||||
|
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
self._send_mqtt_msg = send_mqtt_msg
|
self.mqttsend = mqttsend
|
||||||
self.topic_send = topic_send
|
self.topic_send = topic_send
|
||||||
self.current_tasmota_driver_version = None
|
self.current_tasmota_driver_version = None
|
||||||
self.current_display_firmware_version = None
|
self.current_display_firmware_version = None
|
||||||
@@ -18,6 +17,7 @@ class Updater:
|
|||||||
|
|
||||||
def set_tasmota_driver_version(self, driver_version):
|
def set_tasmota_driver_version(self, driver_version):
|
||||||
self.current_tasmota_driver_version = driver_version
|
self.current_tasmota_driver_version = driver_version
|
||||||
|
|
||||||
def set_current_display_firmware_version(self, panel_version, panel_model=None):
|
def set_current_display_firmware_version(self, panel_version, panel_model=None):
|
||||||
self.current_display_firmware_version = panel_version
|
self.current_display_firmware_version = panel_version
|
||||||
self.current_display_model = panel_model
|
self.current_display_model = panel_model
|
||||||
@@ -33,8 +33,8 @@ class Updater:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def send_message_page(self, id, heading, msg, b1, b2):
|
def send_message_page(self, id, heading, msg, b1, b2):
|
||||||
self._send_mqtt_msg(f"pageType~popupNotify")
|
self.mqttsend.send_mqtt_msg(f"pageType~popupNotify")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{id}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")
|
self.mqttsend.send_mqtt_msg(f"entityUpdateDetail~{id}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")
|
||||||
|
|
||||||
def check_updates(self):
|
def check_updates(self):
|
||||||
# return's true if a notification was send to the panel
|
# return's true if a notification was send to the panel
|
||||||
@@ -80,12 +80,11 @@ class Updater:
|
|||||||
|
|
||||||
def request_berry_driver_version(self):
|
def request_berry_driver_version(self):
|
||||||
self.current_tasmota_driver_version = None
|
self.current_tasmota_driver_version = None
|
||||||
topic = self.topic_send.replace("CustomSend", "GetDriverVersion")
|
self.mqttsend.request_berry_driver_version()
|
||||||
self._send_mqtt_msg("X", topic=topic)
|
|
||||||
|
|
||||||
def update_berry_driver(self):
|
def update_berry_driver(self):
|
||||||
topic = self.topic_send.replace("CustomSend", "Backlog")
|
topic = self.topic_send.replace("CustomSend", "Backlog")
|
||||||
self._send_mqtt_msg(f"UpdateDriverVersion {self.desired_tasmota_driver_url}; Restart 1", topic=topic)
|
self.mqttsend.send_mqtt_msg(f"UpdateDriverVersion {self.desired_tasmota_driver_url}; Restart 1", topic=topic)
|
||||||
|
|
||||||
def update_panel_driver(self):
|
def update_panel_driver(self):
|
||||||
topic = self.topic_send.replace("CustomSend", "FlashNextion")
|
self.mqttsend.flash_nextion(self.desired_display_firmware_url)
|
||||||
self._send_mqtt_msg(self.desired_display_firmware_url, topic=topic)
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import hassapi as hass
|
import adbase as ad
|
||||||
|
|
||||||
from luibackend.config import LuiBackendConfig
|
from luibackend.config import LuiBackendConfig
|
||||||
from luibackend.controller import LuiController
|
from luibackend.controller import LuiController
|
||||||
@@ -6,29 +6,35 @@ from luibackend.mqtt import LuiMqttListener, LuiMqttSender
|
|||||||
from luibackend.updater import Updater
|
from luibackend.updater import Updater
|
||||||
|
|
||||||
import apis
|
import apis
|
||||||
|
import json
|
||||||
|
from typing import Literal
|
||||||
|
|
||||||
class NsPanelLovelaceUIManager(hass.Hass):
|
class NsPanelLovelaceUIManager(ad.ADBase):
|
||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
self.log('Starting')
|
self.adapi = self.get_ad_api()
|
||||||
apis.ha_api = self
|
self.adapi.log('Starting')
|
||||||
|
apis.ad_api = self.adapi
|
||||||
|
apis.ha_api = self.get_plugin_api("HASS")
|
||||||
apis.mqtt_api = self.get_plugin_api("MQTT")
|
apis.mqtt_api = self.get_plugin_api("MQTT")
|
||||||
|
|
||||||
cfg = self._cfg = LuiBackendConfig(self, self.args["config"])
|
cfg = self._cfg = LuiBackendConfig(apis.ha_api, self.args["config"])
|
||||||
|
|
||||||
|
use_api = cfg.get("use_api") == True
|
||||||
|
|
||||||
topic_send = cfg.get("panelSendTopic")
|
topic_send = cfg.get("panelSendTopic")
|
||||||
topic_recv = cfg.get("panelRecvTopic")
|
topic_recv = cfg.get("panelRecvTopic")
|
||||||
|
api_panel_name = cfg.get("panelName")
|
||||||
|
api_device_id = cfg.get("panelDeviceId")
|
||||||
|
quiet = cfg.get("quiet")
|
||||||
|
|
||||||
mqttsend = LuiMqttSender(self, topic_send)
|
mqttsender = self._mqttsender = LuiMqttSender(apis.ha_api, use_api, topic_send, api_panel_name, quiet)
|
||||||
|
|
||||||
# Request Tasmota Driver Version
|
self._controller = LuiController(cfg, mqttsender.send_mqtt_msg)
|
||||||
apis.mqtt_api.mqtt_publish(topic_send.replace("CustomSend", "GetDriverVersion"), "x")
|
|
||||||
|
|
||||||
controller = LuiController(cfg, mqttsend.send_mqtt_msg)
|
|
||||||
|
|
||||||
desired_tasmota_driver_version = 8
|
desired_tasmota_driver_version = 8
|
||||||
desired_display_firmware_version = 53
|
desired_display_firmware_version = 53
|
||||||
version = "v4.3.1"
|
version = "v4.7.3"
|
||||||
|
|
||||||
model = cfg.get("model")
|
model = cfg.get("model")
|
||||||
if model == "us-l":
|
if model == "us-l":
|
||||||
@@ -39,11 +45,36 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
|||||||
desired_display_firmware_url = cfg._config.get("displayURL-EU", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-{version}.tft")
|
desired_display_firmware_url = cfg._config.get("displayURL-EU", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-{version}.tft")
|
||||||
desired_tasmota_driver_url = cfg._config.get("berryURL", "https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be")
|
desired_tasmota_driver_url = cfg._config.get("berryURL", "https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mode = cfg.get("updateMode")
|
mode = cfg.get("updateMode")
|
||||||
updater = Updater(self.log, mqttsend.send_mqtt_msg, topic_send, mode, desired_display_firmware_version, model, desired_display_firmware_url, desired_tasmota_driver_version, desired_tasmota_driver_url)
|
updater = Updater(self.adapi.log, mqttsender, topic_send, mode, desired_display_firmware_version, model, desired_display_firmware_url, desired_tasmota_driver_version, desired_tasmota_driver_url)
|
||||||
|
|
||||||
|
# Request Tasmota Driver Version
|
||||||
|
updater.request_berry_driver_version()
|
||||||
|
|
||||||
LuiMqttListener(topic_recv, controller, updater)
|
LuiMqttListener(use_api, topic_recv, api_panel_name, api_device_id, self._controller, updater)
|
||||||
|
|
||||||
self.log(f'Started ({version})')
|
self.adapi.log(f'Started ({version})')
|
||||||
|
|
||||||
|
#
|
||||||
|
# helpers
|
||||||
|
#
|
||||||
|
|
||||||
|
def show_card(self, card_key: str) -> None:
|
||||||
|
"""Used to show card on panel"""
|
||||||
|
|
||||||
|
msg = json.dumps({"CustomRecv":f"event,buttonPress2,navigate.{card_key},button"})
|
||||||
|
topic = self._cfg.get("panelRecvTopic")
|
||||||
|
self._mqttsender.send_mqtt_msg(msg, topic)
|
||||||
|
|
||||||
|
def navigate(self, direction: Literal['up', 'prev', 'next']) -> None:
|
||||||
|
"""Used to navigate different directions on the panel"""
|
||||||
|
|
||||||
|
msg = json.dumps({"CustomRecv":f"event,buttonPress2,nav{direction.title()},button"})
|
||||||
|
topic = self._cfg.get("panelRecvTopic")
|
||||||
|
self._mqttsender.send_mqtt_msg(msg, topic)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def current_card(self) -> str:
|
||||||
|
"""Used to get the panel's current card"""
|
||||||
|
|
||||||
|
return self._controller.current_card.key
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ key | optional | type | default | description
|
|||||||
`dateAdditionalTemplate` | 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') }}"`
|
||||||
`timeAdditionalTemplate` | 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
|
||||||
|
`timezone` | True | string | "" | Timezone for the time on the panel: `Europe/Berlin` - See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a list of TZ Identifiers (supported from upcoming version v4.4)
|
||||||
`defaultBackgroundColor` | True | string | ha-dark | backgroud color of all cards, valid values: `black`, `ha-dark`
|
`defaultBackgroundColor` | True | string | ha-dark | backgroud color of all cards, valid values: `black`, `ha-dark`
|
||||||
`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
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user