Page 2 of 2

Re: dzVents OpenURL json to LUA how to read  [Solved]

Posted: Monday 31 August 2020 21:33
by jake
waaren wrote:
jake wrote: Monday 31 August 2020 18:59 Although I can now continue my script, I would like to know out of curiosity how I could still show the 'false' in a log line, instead of domoticz failing with 'attempt to concatenate a boolean value'
You can with

Code: Select all

print("The result true or false from the request is ".. tostring(json.result['Player.HasAudio']))
or

Code: Select all

domoticz.log("The result true or false from the request is ".. tostring(json.result['Player.HasAudio']), domoticz.LOG_FORCE)
Thanks! Much appreciated!