Lua XML parse with domoticz_applyXPath

Post Reply
Posts: 32
Joined: Thursday 08 December 2016 21:50
Target OS: Linux
Domoticz version:

Lua XML parse with domoticz_applyXPath

Post by mikkel75 » Wednesday 25 January 2017 22:39


I'm having problems getting domoticz_applyXPath() to pass an XML sting like this

Code: Select all

I need to be able to index into the G1.RaumTemp value of 2172....

I have tried something like this:

Code: Select all

 domoticz_applyXPath(response_body[1],'//body/item_list/i[contains(@n, "G1.RaumTemp")]/@v')
BUT Lua reports:

Error: EventSystem: attempt to call global 'domoticz_applyXPath' (a nil value)

Hope some XML experts can help....

Thanks ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest