lua

Moderator: Telldus

Post Reply
pfassberg
Posts: 6
Joined: Thu Jan 18, 2018 11:08 am

lua

Post by pfassberg » Thu Jan 18, 2018 11:08 am

Hi,

I'm trying to use the lua API, and the initial tests has been successful.

The sandbox seems to limit the usability a bit... "require" seems to be missing.

Is there a tcp/ip library that I can use and how?


// Peter

micke.prag
Site Admin
Posts: 2218
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Re: lua

Post by micke.prag » Thu Jan 18, 2018 11:08 am

Yes, currently the sandbox limits the use for external libraries.

I will put a tcp/ip library on the wish list, thanks.
Micke Prag
Software
Telldus Technologies

chrisq
Posts: 3
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by chrisq » Thu Jan 18, 2018 11:08 am

micke.prag wrote:Yes, currently the sandbox limits the use for external libraries.

I will put a tcp/ip library on the wish list, thanks.
Any updates on when we can expect http or tcp libraries for lua scripting?
It would obviously open up a huge amount of possibilities.

kamsvag
Posts: 62
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by kamsvag » Thu Jan 18, 2018 11:08 am

+1

kamsvag
Posts: 62
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by kamsvag » Thu Jan 18, 2018 11:08 am

It's not happening any time soon was the response I got. :(

chrisq
Posts: 3
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by chrisq » Thu Jan 18, 2018 11:08 am

kamsvag wrote:It's not happening any time soon was the response I got. :(
That's a shame, the tellstick znet is pretty useless for integration without it.
Such an easy feature to add as well, disappointed.

kamsvag
Posts: 62
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by kamsvag » Thu Jan 18, 2018 11:08 am

I've built a script that pulls status of units from the Tellstick and compares to previous pull. Changes will be reported to given IP address. It's not as clean as having the Tellstick report changes but it gets the job done.

ex.
c:> c:\python27\python.exe c:\scripts\TDTools.py --requestsstatus-device 1 10.0.100.2

The IP of the Tellstick is configured in a config file so it's not required in this syntax. The '1' is for timeintervall, in this case one second and the IP is the address of the server to witch we report the changes.

I use eventGhost as server for my home automation and this sends a UDP message to that server so I can trigger events.

kamsvag
Posts: 62
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by kamsvag » Thu Jan 18, 2018 11:08 am

Still waiting for TCP in Lua...

kamsvag
Posts: 62
Joined: Thu Jan 18, 2018 11:08 am

Re: lua

Post by kamsvag » Thu Jan 18, 2018 11:08 am

Any updates on when this could happen? Easter egg would be welcome. :)

Post Reply