Files
NSPanel_HA_Blueprint/hmi/dev/nspanel_us_code/utilities.txt
Edward Firmo ccecd91f6f Utilities page caching
Helps with #1977
2024-03-26 18:58:58 +01:00

602 lines
16 KiB
Plaintext

Page utilities
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
if(api==0)
{
page home
}
vis 255,0
vis title_icon,1
vis title,1
vis button_back,1
printh 92
prints "current_page",0
printh 00
prints "utilities",0
printh 00
printh FF FF FF
Variable (int32) home_line_d
Attributes
ID : 46
Scope: local
Value: 4294967295
Variable (int32) group01_line_d
Attributes
ID : 47
Scope: local
Value: 1
Variable (int32) group02_line_d
Attributes
ID : 48
Scope: local
Value: 4294967295
Variable (int32) group03_line_d
Attributes
ID : 49
Scope: local
Value: 1
Variable (int32) group04_line_d
Attributes
ID : 50
Scope: local
Value: 4294967295
Variable (int32) group05_line_d
Attributes
ID : 51
Scope: local
Value: 1
Variable (int32) group06_line_d
Attributes
ID : 52
Scope: local
Value: 4294967295
Text unavailable
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 1
Text title_icon
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text title
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text home_icon
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 賈
Max. Text Size : 4
Text home_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text home
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text homeb
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text grid_icon
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : î´½
Max. Text Size : 4
Text grid_label
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text grid
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text gridb
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group01_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group01_label
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group01
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group01b
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group02_icon
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group02_label
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group02
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group02b
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group03_icon
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group03_label
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group03
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group03b
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group04_icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group04_label
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group04
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group04b
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group05_icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group05_label
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group05
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group05b
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group06_icon
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group06_label
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group06
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group06b
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider home_line
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group01_line
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group02_line
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group03_line
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group04_line
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group05_line
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group06_line
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Button button_back
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: on release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer wakeup_timer
Attributes
ID : 1
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer tm_movement
Attributes
ID : 45
Scope : local
Period (ms): 150
Enabled : yes
Events
Timer Event
//line_main
home_line.val+=home_line_d.val
if(home_line.val>=home_line.maxval)
{
home_line.val=home_line.minval
}else if(home_line.val<=home_line.minval)
{
home_line.val=home_line.maxval
}
//group01_line
group01_line.val+=group01_line_d.val
if(group01_line.val>=group01_line.maxval)
{
group01_line.val=group01_line.minval
}else if(group01_line.val<=group01_line.minval)
{
group01_line.val=group01_line.maxval
}
//group02_line
group02_line.val+=group02_line_d.val
if(group02_line.val>=group02_line.maxval)
{
group02_line.val=group02_line.minval
}else if(group02_line.val<=group02_line.minval)
{
group02_line.val=group02_line.maxval
}
//group03_line
group03_line.val+=group03_line_d.val
if(group03_line.val>=group03_line.maxval)
{
group03_line.val=group03_line.minval
}else if(group03_line.val<=group03_line.minval)
{
group03_line.val=group03_line.maxval
}
//group04_line
group04_line.val+=group04_line_d.val
if(group04_line.val>=group04_line.maxval)
{
group04_line.val=group04_line.minval
}else if(group04_line.val<=group04_line.minval)
{
group04_line.val=group04_line.maxval
}
//group05_line
group05_line.val+=group05_line_d.val
if(group05_line.val>=group05_line.maxval)
{
group05_line.val=group05_line.minval
}else if(group05_line.val<=group05_line.minval)
{
group05_line.val=group05_line.maxval
}
//group06_line
group06_line.val+=group06_line_d.val
if(group06_line.val>=group06_line.maxval)
{
group06_line.val=group06_line.minval
}else if(group06_line.val<=group06_line.minval)
{
group06_line.val=group06_line.maxval
}