-- Example of XML parser handling data with the following structure -- Data are coming from the OpenWeatherMap API : See http://www.openweathermap.org/current -- -- -- -- FR -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Retrieve the request content s = request['content']; -- Update some devices (index are here for this example) local temp = domoticz_applyXPath(s,'//current/temperature/@value') local humidity = domoticz_applyXPath(s,'//current/humidity/@value') local pressure = domoticz_applyXPath(s,'//current/pressure/@value') domoticz_updateDevice(2988507,'',temp .. ";" .. humidity .. ";0;" .. pressure .. ";0")