Closed wivaku closed 2 years ago
same for me
The JSON output doesn't apply to the "status" command. The status command talks to multiple endpoints, and formats the result automatically.
If you wish to return JSON, you should query the endpoints individually:
renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v2/cars/{vin}/battery-status"
renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v1/cars/{vin}/charge-mode"
renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v2/cars/{vin}/cockpit"
renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v1/cars/{vin}/location"
renault-api --json http get "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v1/cars/{vin}/hvac-status"
We also have this PR open regarding the support for Dacia Spring: #459
Note: this is a duplicate of #188
I tried:
renault-api --json status
Was expecting JSON output (and -for my Dacia Spring EV car-: was hoping for more output, especially charge status)