python-carnet-client icon indicating copy to clipboard operation
python-carnet-client copied to clipboard

External temperature

Open mikaelho opened this issue 6 years ago • 7 comments

Winter is coming! A big thank you to everyone who helped fix this script - nothing like telling Siri to heat up the car on those freezing mornings.

But how freezing are they? The earlier API included external temperature, but I am not seeing an example of that in the latest version. Any pointers how I could get it?

mikaelho avatar Oct 20 '19 08:10 mikaelho

At least the getRemoteHeating returns the temperature: { "errorCode":"0", "timerCount":3, "remoteAuxiliaryHeating":{ "status":{ "active":true, "operationMode":"HEATING", "outdoorTemp":"2,5 °C", "remainingTime":22 }

I would also like to get fuel, remaining range, mileage, location etc. but I cannot see those anywhere. It would be nice to have this kind of status report which would contain all relevant information available via the API.

odelma avatar Nov 01 '19 00:11 odelma

Thanks, that sounds like exactly the thing - but I do not see getRemoteHeating anywhere in the current code?

The range etc. data is available with the /-/emanager/get-emanager url, it is just not conveniently exposed by the current code. Will try to get around to submitting a PR.

mikaelho avatar Nov 01 '19 10:11 mikaelho

Sorry, forgot to mention that getRemoteHeating is on the development branch only at the moment: https://github.com/reneboer/python-carnet-client/blob/development/we_connect_client.py#L519

odelma avatar Nov 03 '19 22:11 odelma

@odelma, that link seems to not work any more. Any pointers for finding the code now? Thanks.

mikaelho avatar Nov 15 '19 06:11 mikaelho

I guess it is merged to the master now? https://github.com/reneboer/python-carnet-client/blob/master/we_connect_client.py#L538 https://github.com/reneboer/python-carnet-client/blob/master/we_connect_client.py#L560 https://github.com/reneboer/python-carnet-client/blob/master/we_connect_client.py#L646 edit: maybe you've noticed but this repo is not maintained anymore, so no future updates expected here. This might be developed in future: https://github.com/bgewehr/volkswagen-carnet-client

odelma avatar Nov 15 '19 06:11 odelma

Much obliged, again.

I am doing something wrong, since all I get with getRemoteAccessHeating is /-/rah/get-status {"errorCode":"2","timerCount":3}.

I am unsure about the whole ”remote access” thing - does it require that I have something specific enabled that was not previously required?

mikaelho avatar Nov 15 '19 10:11 mikaelho

Hmm, I think you need to verify that eveyrhing works first in the VW WeConnect web portal https://www.portal.volkswagen-we.com/. Then just use the script as intended, .e.g. we_connect_client.py -u 'username' -p 'password' -s 'spin' -c getRemoteHeating

odelma avatar Nov 15 '19 22:11 odelma