Code: Alles auswählen
.result.loadpoints[[.vehicleSoc
VG
Det
Code: Alles auswählen
user@Tower:~# curl -s http://192.168.0.5:17070/api/state?jq=.result.loadpoints[[.vehicleSoc
Code: Alles auswählen
user@Tower:~# curl -s http://192.168.0.5:17070/api/state?jq=.loadpoints[].vehicleSoc
0
Code: Alles auswählen
user@Tower:~# curl -s http://192.168.0.5:17070/api/state?jq=.result.loadpoints[].vehicleSoc
0
Code: Alles auswählen
You can escape [ with %5B and ] with %5D.
Code: Alles auswählen
127.0.1.1:80 127.0.0.1 - - [27/Nov/2023:17:32:43 +0100] "GET /hulk66[1].html?jq=.result.loadpoints[].vehicleSoc HTTP/1.1" 200 230 "-" "curl/7.64.0"
Code: Alles auswählen
2023-11-27 17:42:11,757 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev0} - http://raspi4:80 "GET /hulk66%5B1%5D.html?jq=.result.loadpoints%5B%5D.vehicleSoc HTTP/1.1" 200 3
Code: Alles auswählen
127.0.1.1:80 192.168.178.89 - - [27/Nov/2023:17:43:07 +0100] "GET /hulk66%5B1%5D.html?jq=.result.loadpoints%5B%5D.vehicleSoc HTTP/1.1" 200 286 "-" "python-requests/2.25.1"