Popup window idea

Easy to use, 100% Lua-based event scripting framework.
Post Reply
devros
Posts: 191
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Popup window idea

Post by devros » Sunday 21 October 2018 1:05

hello,
i have idea but maybe it is already possible. Create script that reacts on selector switch button with popup window in gui, where you can edit or write variable (could be saved for example in domoticz variables). So its posible to use dzvents/lua code to call popuup window in gui?
I want to use it for mpsyt audio artists (that works great allready but only with predefined values)

User avatar
waaren
Posts: 1350
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Popup window idea

Post by waaren » Sunday 21 October 2018 1:21

devros wrote:
Sunday 21 October 2018 1:05
hello,
i have idea but maybe it is already possible. Create script that reacts on selector switch button with popup window in gui, where you can edit or write variable (could be saved for example in domoticz variables). So its posible to use dzvents/lua code to call popuup window in gui?
I want to use it for mpsyt audio artists (that works great allready but only with predefined values)
Even it is possible to create this with Lua/dzVents, it wil not fly. The domoticz event system is single threaded meaning that only one script can run simultaneously at any given time. While the script is waiting for user input, no other script can run and domoticz will send messages like
"Error: EventSystem: Warning!, lua script /opt/domoticz/scripts/dzVents/scripts/popup.lua has been running for more than 10 seconds"
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

devros
Posts: 191
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Popup window idea

Post by devros » Sunday 21 October 2018 8:54

Thanks for info, what about with combination with js or php code in gui? In aurora theme are some quite clever hacks to modify gui.

devros
Posts: 191
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Popup window idea

Post by devros » Saturday 27 October 2018 19:49

Ok found dirty way how to do it
viewtopic.php?f=8&t=25444

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests