Page 1 of 1
Popup window idea
Posted: Sunday 21 October 2018 1:05
by devros
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)
Re: Popup window idea
Posted: Sunday 21 October 2018 1:21
by waaren
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"
Re: Popup window idea
Posted: Sunday 21 October 2018 8:54
by devros
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.
Re: Popup window idea
Posted: Saturday 27 October 2018 19:49
by devros
Ok found dirty way how to do it
viewtopic.php?f=8&t=25444