Console for lua/dzvents

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Console for lua/dzvents

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

Re: Console for lua/dzvents

Post 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)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Console for lua/dzvents

Post 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 ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Console for lua/dzvents

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest