You can get the json directily in openHAB and then extract the JSON value of solarUAC
rule "Extract UAC"
when
Time cron "0 0/5 * ? * * *" //Every 5 minutes
then
//url is incomplete in your link and 5 seconds time out
var jsonString = sendHttpGetRequest("http://.solarIP./solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceID=1&DataCollectio", 5000)
solarUAC.postUpdate(transform("JSONPATH", "$.Body.Data.UAC.Value", jsonString))
end
You could also use the HTTP binding to poll the jsonString on a regular basis and cache the item so you can extract several values from it. But this should get you started
Number PACjson "PACjs [%.1f W]" <solarplant> (Fronius)
rules
rule "Extract FV Vars json"
when
Time cron "0 0/5 * ? * * *" //Every 5 minutes
then
//url complete and 5 seconds time out
var jsonString = sendHttpGetRequest("http://solarIP/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceID=1&DataCollection=CommonInverte$
PACjson.postUpdate(transform("JSONPATH", "$.Body.Data.PAC.Value", jsonString))
end