reneboer / python-carnet-client

python script that emulated the VW WE Connect (formerly CarNet) web site
GNU General Public License v3.0
21 stars 9 forks source link

External temperature #21

Open mikaelho opened 5 years ago

mikaelho commented 5 years ago

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?

odelma commented 5 years ago

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.

mikaelho commented 5 years ago

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.

odelma commented 5 years ago

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

mikaelho commented 4 years ago

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

odelma commented 4 years ago

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

mikaelho commented 4 years ago

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?

odelma commented 4 years ago

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