mababio / tesla-get-location

GCP Function that returns Tesla location

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tesla-get-location

Summary

Wrapped TeslaPy python module intop a GCP Cloud Function that returns GPS Cordinates of Tesla vechile. Currently, this service is using GCP as compute, but the core logic can live anywhere.

Setup For GCP

  • Set up GCP project, and IAM service accounts
  • Tesla Credential: Find out how to generate cache.json Tesla credential file here

Optional

  • Secret Manager: You can choose to store your cache.json file in GCP Secret manager or store it locally. You can use secret_manager.py script to assist with this.
  • Cloud Build: can use cloudbuild.yaml to build out the Cloud Function.

About

GCP Function that returns Tesla location


Languages

Language:Python 100.0%