Hello there,
I have this JSON reply from a HTTP call:
Code: Select all
{"Label":["12/07/2017","13/07/2017","14/07/2017","15/07/2017","16/07/2017","17/07/2017","18/07/2017"],"Data":["860","877","877","860","860","860","860"]}
I'm only interested on the last data value, the last "860" number that changes over time. It is an ultrasonic oil tank meter so I want to add the remaining litres to Domoticz but I have no idea how to do this. I have experimented a bit with LUA in the past but parsing data from a HTTP call is a complete different thing for me.
The call I do (on browser) is:
Code: Select all
http://website.com/Report/GetChartData?SerialNo=SerialID&DeviceNo=0&NumericPeriod=0
Any pointer to help me get started would be fantastic!
