Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdy/tesla-voice
API.AI project to allow interacting with the Telsa API through Google Home
https://github.com/mattdy/tesla-voice
Last synced: about 2 months ago
JSON representation
API.AI project to allow interacting with the Telsa API through Google Home
- Host: GitHub
- URL: https://github.com/mattdy/tesla-voice
- Owner: mattdy
- License: mit
- Created: 2017-04-24T14:30:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T10:26:03.000Z (over 7 years ago)
- Last Synced: 2024-04-08T02:28:40.245Z (5 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeslaVoice
## IntroductionProject to allow interacting with the [Telsa API](http://docs.timdorr.apiary.io/) through [Google Home](https://madeby.google.com/home/).
This requires two components - an [API.AI](http://api.ai) project (contained within one directory here), and a web server that makes appropriate queries against the Telsa API.
More project details, and a video of the project in action, can be found at http://mattdyson.org/projects/teslavoice
## Getting started
### Web Server
The web server (`VoiceResponse.py`) is designed to be run as a [supervisord](http://supervisord.org/) service, and will listen for requests on `/webhook` that meet the format passed by [API.AI](http://api.ai), returning an appropriately formatted response.An additional file named Credentials.py is also required in the same directory, containing two variables - `TESLA_EMAIL` and `TESLA_PASSWORD`, which must match your MyTesla account
For integration with Google Home, this web server must be accessible through HTTPS (HTTP requests are not allowed). `VoiceResponse.py` is set up to provide a HTTP server, so I used a separate [Apache](https://httpd.apache.org/) instance using ProxyPass from [mod_proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html):
```
ProxyPass /teslawebhook http://:7800/webhookProxyPassReverse http://:7800/webhook
```
### API.AI project
Insert the URL of the above web server into `apiai/agent.json` in the appropriate place, then ZIP the entire folder and upload through the 'Export and Import' function found in an API.AI project.You should then be able to publish the test version for local usage through the method described [on this page](https://medium.com/google-cloud/how-to-create-a-custom-private-google-home-action-260e2c512fc) to create a permanent private action on Google Home.