Hi everyone… im trying to use the HTTP binding and JSON transformation to pull the Online status of my google wifi.
Using the JSONPATH transformation $.wan.online
I setup the Thing with
UID: http:url:Gwifi_HTTP
label: GWIFI HTTP URL Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.86.1/api/v1/status
refresh: 30
commandMethod: GET
contentType: application/json
timeout: 3000
bufferSize: 2048
channels:
- id: gwifistste
channelTypeUID: http:string
label: gws
description: ""
configuration:
mode: READONLY
I setup a string item with
JSONPATH Profile
Jsonpath expression
$.wan.online
Web page looks like this.
{
"setupState": "GWIFI_OOBE_COMPLETE",
"software": {
"blockingUpdate": 1,
"softwareVersion": "12371.52.22",
"updateChannel": "stable-channel",
"updateNewVersion": "0.0.0.0",
"updateProgress": 0.0,
"updateRequired": false,
"updateStatus": "idle"
},
"system": {
"countryCode": "us",
"hardwareId": "WHIRLWIND",
"modelId": "ACdqK",
"uptime": 511980
},
"vorlonInfo": {
"migrationMode": "vorlon_all"
},
"wan": {
"captivePortal": false,
"ethernetLink": true,
"gatewayIpAddress": "",
"invalidCredentials": false,
"ipAddress": true,
"ipMethod": "dhcp",
"ipPrefixLength": 24,
"leaseDurationSeconds": 7200,
"localIpAddress": "",
"nameServers": [ "" ],
"online": true,
"pppoeDetected": false
}
I get NULL for all results… i got it working with my PiHole and Solar pages but i cant crack this one…
Thanks!