Control and automate your Volkswagen through http
Requirements
- An Amazon AWS account
Create a new lambda function with the microservice blueprint.
Upload lambda_function.py
and the modules
folder as a .zip file to the new lambda function with lambda_function.main
as the handler and a timeout of 1min 30s or more.
Add your username and password to lambda_function.py
in the VWCarnet
constructor.
Go back to the aws console, open API Gateway and create a new API. Give it a name and click "create API".
Click "Actions" and "Create Method" select the "GET" trigger.
In the setup give it "Lambda Function", "Use Lambda Proxy integration", select your region and function and save.
Go back to the Lambda function and give it the "API Gateway" trigger, select the API you just created. Make it "Open".
You should now have a card with information about the trigger, including a link to trigger it.
Save and you're done!
Using the Invoke URL
from the lambda function trigger the function takes two GET variables task
and action
.
action
can be either start
or stop
while task
can be charging
, heating
& windowheating
.
Using IFTTT and webhooks you can then start any of these tasks using things such as the weather, calendar events or homescreen widgets.
Look no further than here or the echo version.
@robinostlund: https://github.com/robinostlund/volkswagen-carnet