Page 1 of 1

Console for lua/dzvents

Posted: Thursday 03 January 2019 14:09
by DAVIZINHO
Hello,

My idea es have a "console" or something similar to put one lua command and test it.
In some case i want to test a command because i dont know if works fine or not and i must create a "test script"; with this idea you can use the console to test it and view the results.

its posible?, do you see usefull like me?

thanks!

Re: Console for lua/dzvents

Posted: Thursday 03 January 2019 16:28
by waaren
DAVIZINHO wrote: Thursday 03 January 2019 14:09 My idea es have a "console" or something similar to put one lua command and test it.
In some case i want to test a command because i dont know if works fine or not and i must create a "test script"; with this idea you can use the console to test it and view the results.
its possible?, do you see useful like me?
If you refer to a standard Lua command you can try it on the Command Line Interface. Install Lua if not already done (sudo apt-get install lua5.2),
type lua from the prompt and you are in the Lua command interpreter. Here you can test all commands ( but you won't have the data (structures) available from the domoticz instance)

Re: Console for lua/dzvents

Posted: Friday 04 January 2019 21:16
by waaren
DAVIZINHO wrote: Thursday 03 January 2019 14:09 My idea es have a "console" or something similar to put one lua command and test it.
In some case i want to test a command because i dont know if works fine or not and i must create a "test script"; with this idea you can use the console to test it and view the results.
Could this console help you ?

Re: Console for lua/dzvents

Posted: Saturday 05 January 2019 15:11
by DAVIZINHO
waaren wrote: Friday 04 January 2019 21:16
DAVIZINHO wrote: Thursday 03 January 2019 14:09 My idea es have a "console" or something similar to put one lua command and test it.
In some case i want to test a command because i dont know if works fine or not and i must create a "test script"; with this idea you can use the console to test it and view the results.
Could this console help you ?
Wow, great!!
thanks a lot!