lua

Moderator: Telldus

Post Reply
pfassberg
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

lua

Post by pfassberg »

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: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: lua

Post by micke.prag »

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: Fri Mar 17, 2023 9:45 am

Re: lua

Post by chrisq »

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: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by kamsvag »

+1
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by kamsvag »

It's not happening any time soon was the response I got. :(
chrisq
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by chrisq »

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: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by kamsvag »

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: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by kamsvag »

Still waiting for TCP in Lua...
kamsvag
Posts: 67
Joined: Fri Mar 17, 2023 9:45 am

Re: lua

Post by kamsvag »

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