From 669ead9e7922bae4766073e181d04d7bc7cd1c63 Mon Sep 17 00:00:00 2001 From: Edward Firmo Date: Wed, 2 Aug 2023 10:27:39 +0200 Subject: [PATCH] Fix `fan.turn_off` call Removed timer call from fan stop button. This solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/791#discussioncomment-6494535 --- nspanel_eu.HMI | Bin 21307134 -> 21307134 bytes nspanel_eu.tft | Bin 6324480 -> 6324480 bytes nspanel_eu_code/alarm.txt | 394 ++++++++++++++++ nspanel_eu_code/buttonpage02.txt | 23 +- nspanel_eu_code/entitypage02.txt | 19 +- nspanel_eu_code/weather02.txt | 2 +- nspanel_eu_code/weather03.txt | 2 +- nspanel_eu_code/weather04.txt | 2 +- nspanel_us.HMI | Bin 21307134 -> 21307134 bytes nspanel_us.tft | Bin 7666376 -> 7666376 bytes nspanel_us_land.HMI | Bin 21307134 -> 21307134 bytes nspanel_us_land.tft | Bin 6324496 -> 6324496 bytes nspanel_us_land_code/alarm.txt | 394 ++++++++++++++++ nspanel_us_land_code/buttonpage02.txt | 635 ++++++++++++++++++++++++++ nspanel_us_land_code/entitypage02.txt | 362 +++++++++++++++ nspanel_us_land_code/weather02.txt | 2 +- nspanel_us_land_code/weather03.txt | 2 +- nspanel_us_land_code/weather04.txt | 2 +- 18 files changed, 1819 insertions(+), 20 deletions(-) create mode 100644 nspanel_eu_code/alarm.txt create mode 100644 nspanel_us_land_code/alarm.txt create mode 100644 nspanel_us_land_code/buttonpage02.txt create mode 100644 nspanel_us_land_code/entitypage02.txt diff --git a/nspanel_eu.HMI b/nspanel_eu.HMI index 167d7dda75ff2d10a3511d00a7c4af3f47fea1c6..6ee85f742cd962132e7b8835572cccd04f12cd84 100644 GIT binary patch delta 1579 zcmd7MiC2_W9Eb7uorM|662)9{30usv0CT|+WL#4#QcKISRLT}jY>JdgD;0hPWTiIN zRJLimS(;;wRwx46PHDE#N~^Y5TB$8aKHpCL58iV=&%O8Dd+xc-RZCNwv8Hp-EsAvs zw)Z;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Tg6V zu+_Snn_B0BWsm{O;VD=FPeUeTK{n*TN+5U!RzWU23#(xbxM3}g)cF>Hqy;U#z(cEBs}DwM!$uoHH{ZrB5_!(Mm;N}&wigmTyi zZ^7H3!+v-N-h~739#lXjR6#Yo4>fQQYT*#n!3S^{jzB#eg%68vF%+LmT|#POVe&faAeYIi4IZj)`ODcyl^%d^opoI&yqDejI;J z0H+ftkQ2lS=2$pZP6($nCzR8L)0NYW)1A|U)05MS)0@+Wb1UaIPG3$x&h4B#IQ=ZgyH}I diff --git a/nspanel_eu.tft b/nspanel_eu.tft index bd380330144026f6dedd63025fc341e0057ebef5..593441f9f4409d749ee19a5f7b142e28cc4615e4 100644 GIT binary patch delta 241 zcmWl|XD$O^007WbZEEjbqc&B0)!x*qJ&z*IOB}&(cMu%IFX!=j$$QD=qA&kN~X3k&I&}PMtZIb@6c-OGT1z@pQK7HIcdu eufpr_CcF*r!u#+cd<>ty5~=6kO#aXN_vastCQ>^9 delta 241 zcmWl|XD$O^007XSw%ViiF11^G)!v(`J^r{y)4aqHTtwm!{=0=c_`Kxh^7*3Ne+3E^ zi6~a0RGD%WDpiT9R-;y(dJP&iY1Sg9RhxDlI(6yRqgS7P0|vzn8I~|&)R=J-CQV67 znKonAoOuftEm^i=Roa?$8#Zm(wqw_xeFqL5IdDeS1B#AOqW}N^ diff --git a/nspanel_eu_code/alarm.txt b/nspanel_eu_code/alarm.txt new file mode 100644 index 0000000..fa3922e --- /dev/null +++ b/nspanel_eu_code/alarm.txt @@ -0,0 +1,394 @@ +Page alarm + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + if(api==0) + { + page home + }else + { + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + } + + Touch Press Event + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "touchevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "touchevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + + Page Exit Event + home.entity.txt="" + +Variable (string) alarmsetting + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) back_page + Attributes + ID : 8 + Scope : local + Text : home + Max. Text Size: 15 + +Variable (string) va0 + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 10 + +Text page_label + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Alarm Control Panel + Max. Text Size : 25 + +Text icon_state + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_home_text + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Home + Max. Text Size : 10 + +Text bt_home_bri + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_home_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_away_text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Away + Max. Text Size : 10 + +Text bt_away_bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_away_icon + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_night_text + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Night + Max. Text Size : 10 + +Text bt_night_bri + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_night_icon + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Picture alarm_exit + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_home_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_away_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_night_pic + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Dual-state Button bt_disarm + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Disarm + Max. Text Size : 10 + +Dual-state Button bt_vacations + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Vacations + Max. Text Size : 10 + +Dual-state Button bt_bypass + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Bypass + Max. Text Size : 10 + +Hotspot alarm_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + if(back_page.txt=="buttonpage01") + { + page buttonpage01 + }else if(back_page.txt=="buttonpage02") + { + page buttonpage02 + }else if(back_page.txt=="buttonpage03") + { + page buttonpage03 + }else if(back_page.txt=="buttonpage04") + { + page buttonpage04 + }else + { + page home + } + +Hotspot bt_home + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Hotspot bt_away + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Hotspot bt_night + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 3 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 2 + Scope: local + Value: 0 + + Events + Touch Press Event + swipestore.en=1 // Start swipestore timer + + Touch Release Event + swipestore.en=0 + // Touch has ended, x + if(tch0==0) + { + swipec=swipex-tch2 + // From Left to Right + if(swipec>swipedx) + { + //page + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/buttonpage02.txt b/nspanel_eu_code/buttonpage02.txt index 3d6af5d..c614825 100644 --- a/nspanel_eu_code/buttonpage02.txt +++ b/nspanel_eu_code/buttonpage02.txt @@ -12,14 +12,21 @@ Page buttonpage02 Events Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis button_back,1 + dim=home.brightness.val + if(api==0) + { + page home + }else + { + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + } Touch Press Event printh 92 diff --git a/nspanel_eu_code/entitypage02.txt b/nspanel_eu_code/entitypage02.txt index 5c453cf..c0473b9 100644 --- a/nspanel_eu_code/entitypage02.txt +++ b/nspanel_eu_code/entitypage02.txt @@ -12,12 +12,19 @@ Page entitypage02 Events Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF + dim=home.brightness.val + if(api==0) + { + page home + }else + { + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + } Touch Press Event printh 92 diff --git a/nspanel_eu_code/weather02.txt b/nspanel_eu_code/weather02.txt index 5f34cca..52f4f34 100644 --- a/nspanel_eu_code/weather02.txt +++ b/nspanel_eu_code/weather02.txt @@ -13,7 +13,7 @@ Page weather02 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else diff --git a/nspanel_eu_code/weather03.txt b/nspanel_eu_code/weather03.txt index 801cf59..05a083c 100644 --- a/nspanel_eu_code/weather03.txt +++ b/nspanel_eu_code/weather03.txt @@ -13,7 +13,7 @@ Page weather03 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else diff --git a/nspanel_eu_code/weather04.txt b/nspanel_eu_code/weather04.txt index c097ed6..8c34b9a 100644 --- a/nspanel_eu_code/weather04.txt +++ b/nspanel_eu_code/weather04.txt @@ -13,7 +13,7 @@ Page weather04 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else diff --git a/nspanel_us.HMI b/nspanel_us.HMI index 10083201c6c48df22c9565fcd2f723c943ad3c34..a66d852405cd3bf927979fc7a69da1fee5fc46c6 100644 GIT binary patch delta 1507 zcmd7N`+v@59LMqdyWRK3a=2%hS>!CI%_+l})7Z?h$T5e73OUvga@r>=XKv?nsjL%Y zxCzOja;&t3wb&9J(5Caq>hKrhk1RcLyI|% z?_B7W$T7(y$3`V~>+Je}6;++!$_U|-H8?Y?%uTn`$agqA-0dou>&eUs&v7DL4Wq^< z-+Rs8Bs;|w8Rv32nP($5HE`$W=8g8{CN@n?Pe@Boa1ek%xZy#NKRqG1?8*CMj(&Sn zy-8`_BnJTqgc}|N`MpWO1-tK)2Mpu%oM_Fhg|)O;Yh|r1&e~X8YiI4PgT-4%>tqR* zXq_#|x>#51X5Foa^|VLrG3#Z$?Q!d4eXXDMw*fZLp0GhS*oN3pOSUI%m<_iP_LMzs z&)7&CWuxs`8)IW_oQ<~$HgVT;mu|V&3W((p1~!92{z0xZNLEXEQn#WMJ?94oLAtFRht zuommE9viR`o3I(L;x%l+>v#iiVk^?|7T(4?co*+s8@3|@JFpX(*oEEL13&g+AKu4) z9Kb<*fJ68Yhj9c)aSR{fV|;?+IDwNmh0{2LPw^Q($60)VEPRP`_zLH70T+>tuaSdq za0!=@i#&XbEBFpqaSh+&2mFYia2+>r6F(y#1-OM@@GE}9@Aw0M;x829HtyhW+(i-o znO_*~EQS)G1S)RDqXa3zN-?Fl5~4hylu$}4rIgZ&R|!?hC}B!jrJPb;30Ep85lTfR zQh89Rq*PWOQmQCbm1;_LrG`>dsio9b9#-lob(MNbeWigCrTq8RhB`G;8Y@kdrphBq lGbKi8uC!2EDzQo{rL_{Lv{BkB?UeRP2j@^>biCuq{}(4Dn<@YR delta 1591 zcmd7P`BzkB7{Kwl!(|{Gb4H1gv|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kh!{>)Qc diff --git a/nspanel_us_land_code/alarm.txt b/nspanel_us_land_code/alarm.txt new file mode 100644 index 0000000..fa3922e --- /dev/null +++ b/nspanel_us_land_code/alarm.txt @@ -0,0 +1,394 @@ +Page alarm + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + if(api==0) + { + page home + }else + { + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + } + + Touch Press Event + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "touchevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}" + printh 92 + prints "touchevent",0 + printh 00 + prints alarmsetting.txt,0 + printh 00 + printh FF FF FF + + Page Exit Event + home.entity.txt="" + +Variable (string) alarmsetting + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) back_page + Attributes + ID : 8 + Scope : local + Text : home + Max. Text Size: 15 + +Variable (string) va0 + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 10 + +Text page_label + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Alarm Control Panel + Max. Text Size : 25 + +Text icon_state + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_home_text + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Home + Max. Text Size : 10 + +Text bt_home_bri + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_home_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_away_text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Away + Max. Text Size : 10 + +Text bt_away_bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_away_icon + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_night_text + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Night + Max. Text Size : 10 + +Text bt_night_bri + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bt_night_icon + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Picture alarm_exit + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_home_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_away_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_night_pic + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Dual-state Button bt_disarm + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Disarm + Max. Text Size : 10 + +Dual-state Button bt_vacations + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Vacations + Max. Text Size : 10 + +Dual-state Button bt_bypass + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : Bypass + Max. Text Size : 10 + +Hotspot alarm_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + if(back_page.txt=="buttonpage01") + { + page buttonpage01 + }else if(back_page.txt=="buttonpage02") + { + page buttonpage02 + }else if(back_page.txt=="buttonpage03") + { + page buttonpage03 + }else if(back_page.txt=="buttonpage04") + { + page buttonpage04 + }else + { + page home + } + +Hotspot bt_home + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Hotspot bt_away + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Hotspot bt_night + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 3 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 2 + Scope: local + Value: 0 + + Events + Touch Press Event + swipestore.en=1 // Start swipestore timer + + Touch Release Event + swipestore.en=0 + // Touch has ended, x + if(tch0==0) + { + swipec=swipex-tch2 + // From Left to Right + if(swipec>swipedx) + { + //page + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_us_land_code/buttonpage02.txt b/nspanel_us_land_code/buttonpage02.txt new file mode 100644 index 0000000..c64cc44 --- /dev/null +++ b/nspanel_us_land_code/buttonpage02.txt @@ -0,0 +1,635 @@ +Page buttonpage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + if(api==0) + { + page home + }else + { + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + } + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 100 + +Text button01text + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02text + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02bri + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03bri + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04text + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04bri + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05bri + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07bri + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08bri + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bpage02_label + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text button01icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture button01pic + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button02pic + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button03pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button04pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button05pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button06pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button07pic + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button08pic + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot button_back + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button08 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 1 + Scope: local + Value: 0 + + Events + Touch Press Event + swipestore.en=1 // Start swipestore timer + + Touch Release Event + swipestore.en=0 + // Touch has ended, x + if(tch0==0) + { + swipec=swipex-tch2 + // From Left to Right + if(swipec>swipedx) + { + page buttonpage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page home + } + } + diff --git a/nspanel_us_land_code/entitypage02.txt b/nspanel_us_land_code/entitypage02.txt new file mode 100644 index 0000000..8e8008e --- /dev/null +++ b/nspanel_us_land_code/entitypage02.txt @@ -0,0 +1,362 @@ +Page entitypage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + if(api==0) + { + page home + }else + { + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + } + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text entity02_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value07_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value08_label + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value01_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value06 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value07 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value08 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Hotspot entity02_back + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 1 + Scope: local + Value: 0 + + Events + Touch Press Event + swipestore.en=1 // Start swipestore timer + + Touch Release Event + swipestore.en=0 + // Touch has ended, x + if(tch0==0) + { + swipec=swipex-tch2 + // From Left to Right + if(swipec>swipedx) + { + page entitypage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_us_land_code/weather02.txt b/nspanel_us_land_code/weather02.txt index c30e3f9..1a459ff 100644 --- a/nspanel_us_land_code/weather02.txt +++ b/nspanel_us_land_code/weather02.txt @@ -13,7 +13,7 @@ Page weather02 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else diff --git a/nspanel_us_land_code/weather03.txt b/nspanel_us_land_code/weather03.txt index cb9af5c..c572fac 100644 --- a/nspanel_us_land_code/weather03.txt +++ b/nspanel_us_land_code/weather03.txt @@ -13,7 +13,7 @@ Page weather03 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else diff --git a/nspanel_us_land_code/weather04.txt b/nspanel_us_land_code/weather04.txt index 5ed5fe7..21b204f 100644 --- a/nspanel_us_land_code/weather04.txt +++ b/nspanel_us_land_code/weather04.txt @@ -13,7 +13,7 @@ Page weather04 Events Preinitialize Event dim=home.brightness.val - if(home.api.val==0) + if(api==0) { page home }else