Popup window idea

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

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

Popup window idea

Post 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)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Popup window idea

Post 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"
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Popup window idea

Post 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.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Popup window idea

Post by devros »

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 1 guest