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
lua
Moderator: Telldus
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: lua
Yes, currently the sandbox limits the use for external libraries.
I will put a tcp/ip library on the wish list, thanks.
I will put a tcp/ip library on the wish list, thanks.
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: lua
Any updates on when we can expect http or tcp libraries for lua scripting?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.
It would obviously open up a huge amount of possibilities.
Re: lua
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.
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.