mababio / Tesla-Control-Services

General purpose GCP function that takes set of controls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tesla-control

Summary

Wrapped TeslaPy python module into a GCP Cloud Function that allow you to

  • Lock/Unlock
  • Set temp

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
  • Set up Jobs in GCP Scheduler

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

General purpose GCP function that takes set of controls


Languages

Language:Python 90.2%Language:Dockerfile 9.8%