Giter Site home page Giter Site logo

volkswagen-carnet-client's Introduction

Python Volkswagen CarNet Client

This is a Python client for Volkswagen CarNet, it simulates the behaviour of the CarNet web page. It allows users to retrieve information about the vehicle (location, temperature and mileage), next to this the Window melt and Climat functionalities can be started from the Python script. This was built based on work from wez3 and reneboer.

Installation

Clone the Github repo and if you want to use mqtt, enter the correct MQTT-broker host and port in the lib_mqtt.py:

MQTT_HOST = "<hostname or IP>" <- host where your mqtt broker runs
MQTT_PORT = <port> <- port of your mqtt service, default is 1883

Usage

Run the script with arguments. If you only own one car in VW we, the vin parameter is obsolete. The following are supported:

python3 we_connect_client.py -u <username> -p <password> -s <spin> -v <vin> -c retrieveCarNetInfo
python3 we_connect_client.py  -u <username> -p <password> -s <spin> -v <vin> -c startClimat
python3 we_connect_client.py  -u <username> -p <password> -s <spin> -v <vin> -c stopClimat
python3 we_connect_client.py  -u <username> -p <password> -s <spin> -v <vin> -c startWindowMelt
python3 we_connect_client.py  -u <username> -p <password> -s <spin> -v <vin> -c stopWindowMelt

... (see code for more options)

Send all data to the MQTT broker configured in lib_mqtt:

python3 we_connect_client.py -u <username> -p <password> -s <spin> -v <vin> -c mqtt

See also FHEM integration

ORIGINAL README FROM RENEBOER:

python-carnet-client

Python script we_connect_clinet.py emulates the VW WE Connect web site to send commands to your car and get status.

You must have a VW WE Connect (formerly CarNet) userid and password. Also make sure to logon to the portal https://www.portal.volkswagen-we.com first before using the script. The VW site prompts for several items at first logon the script does not handle.

This script requires the requests library. To install it, run pip install requests.

Based of work from wez3 at https://github.com/wez3/volkswagen-carnet-client It has similar functions and Charging control for electric VW's

The first two parameters are your userid and password (in single quotes!), the optional third is the command.

Avaible commands to the script are: startCharge, stopCharge, getCharge, startClimat, stopClimat, getClimat, startClimate, getClimate, stopClimate, startWindowMelt, stopWindowMelt, getWindowMelt

If no command is specified the full car status is retreived.

Command example:

python we_connect_client.py '<userid>' '<pwd>' startCharge

volkswagen-carnet-client's People

Contributors

bgewehr avatar wez3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.