Notifications page rebuilt

- Notification button processed on ESPHome (as all the info is there)
- Added word-wrap for main text
- Expanded text size
- Handling display mode (used to define the number of chars per line on Notifications)
- Versioning handling - As a consequence of the previous item.
This commit is contained in:
Edward Firmo
2023-09-06 00:52:35 +02:00
parent 1c1cf8e959
commit 066cd31616
18 changed files with 247 additions and 204 deletions

View File

@@ -13,10 +13,12 @@ Page boot
Events
Preinitialize Event
dim=100
covx display_mode,aux2.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"boot\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
prints nspanelevent.txt,0
printh 00
printh FF FF FF
@@ -26,7 +28,7 @@ Variable (int32) counter
Scope: local
Value: 0
Variable (string) aux
Variable (string) aux1
Attributes
ID : 13
Scope : local
@@ -38,7 +40,14 @@ Variable (string) nspanelevent
ID : 14
Scope : local
Text :
Max. Text Size: 100
Max. Text Size: 150
Variable (string) aux2
Attributes
ID : 15
Scope : local
Text :
Max. Text Size: 10
Text ip_addr
Attributes
@@ -107,7 +116,7 @@ Text tft_version
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 4.0
Text : 4.0dev
Max. Text Size : 8
Text esph_version
@@ -150,9 +159,10 @@ Timer timer
Events
Timer Event
counter.val++
covx counter.val,aux.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"component\": \"timeout\", \"value\": "+aux.txt+"}"
bluep_version.txt="Retry: "+aux.txt
covx counter.val,aux1.txt,0,0
covx display_mode,aux2.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"component\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
bluep_version.txt="Retry: "+aux1.txt
printh 92
prints "nspanelevent",0
printh 00