Looking for a little guidance here.
I am building a device type for an energy monitor, and have managed to get as far as receiving a response back from a LAN Http request executed by a hubaction. However, I am at a loss as to how to extract the pieces of data that I need from the response.
This is the data I am getting back:
{“report”:“Instantaneous values:
voltage=246.5 Vrms
FFTComponents:
Phase 1:
\tcurrent=2.243 A, activePower=484.742 W, reactivePower=266.086 var, apparentPower=552.971 VA, cosfi=87, quadrant=0, phaseshift=0.0, phaseDiff=0.0
\tFFTComponents:
Phase 2:
\tcurrent=0.117 A, activePower=-3.926 W, reactivePower=28.746 var, apparentPower=29.013 VA, cosfi=10, quadrant=0, phaseshift=0.0, phaseDiff=0.0
\tFFTComponents:
Phase 3:
\tcurrent=2.199 A, activePower=480.816 W, reactivePower=250.56 var, apparentPower=542.185 VA, cosfi=88, quadrant=0, phaseshift=0.0, phaseDiff=0.0
\tFFTComponents:
Load[280114] state[1] power: 65.5 on Sat Oct 24 22:23:25 GMT 2015
Load[275162] state[1] power: 134.4 on Sat Oct 24 22:15:02 GMT 2015
Phase 3, peak active power 8808.649 W at 27/06/2015 19:20:35
”}
The data I need to get back is the figure after “activePower” for each of Phase 1, Phase 2, and Phase 3.
Where do I start ?