I have been trying figure out how to write parsed data to influx, but failing. any ideas
welcome.
Here are the facts;
This file state.xml comes from a temperature plc sitting on my network.
administrator@openmaint01:~$ curl -i http://192.168.253.230/state.xml
?xml version=“1.0” encoding=“utf-8”?>
datavalues>
units>C
sensor1temp>-24.6/sensor1temp>
sensor2temp>x.x/sensor2temp>
sensor3temp>x.x/sensor3temp>
sensor4temp>x.x/sensor4temp>
relay1state>0/relay1state>
relay2state>0/relay2state>
I want to parse the sensor1temp value and write it to my influx database.