dzVents OpenURL json to LUA how to read  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post 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!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest