How to run this code in lua

Hi,
how can i execute this code currectlly in the luup?
this code not working. i get an error in the code.
luup.call_action(http://192.168.0.199:8080/api/rest/speech/tts?text=sometext&times=1&vol=90)

thx

That call is documented here
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_call_action

…with an example.

from your code it looks like you are trying to send an http action to another rest api server???

if this is the case, you may want to use luup.inet.wget instead of luup.call_action. The vera is not running the action, it is only sending an http call for the other server to process the TTS action.

luup.inet.wget(“http://192.168.0.199:8080/api/rest/speech/tts?text=sometext&times=1&vol=90”)

1 Like

many thanks… it’s working.