{"id":15705589,"url":"https://github.com/trilom/sls-tesla-api","last_synced_at":"2025-05-12T18:27:28.880Z","repository":{"id":143815808,"uuid":"185478087","full_name":"trilom/sls-tesla-api","owner":"trilom","description":"This is a Serverless template to control your Tesla remotely.","archived":false,"fork":false,"pushed_at":"2019-05-07T22:44:25.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T01:42:24.154Z","etag":null,"topics":["api","aws-lambda","python3","serverless","serverless-framework","tesla","teslamotors"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trilom.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-07T21:05:48.000Z","updated_at":"2020-08-24T12:27:06.000Z","dependencies_parsed_at":"2023-12-03T16:15:06.723Z","dependency_job_id":null,"html_url":"https://github.com/trilom/sls-tesla-api","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"9f97c86bae7f1754db5b92259aa66b0990ba2f94"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trilom%2Fsls-tesla-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trilom%2Fsls-tesla-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trilom%2Fsls-tesla-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trilom%2Fsls-tesla-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trilom","download_url":"https://codeload.github.com/trilom/sls-tesla-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253797108,"owners_count":21965830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","aws-lambda","python3","serverless","serverless-framework","tesla","teslamotors"],"created_at":"2024-10-03T20:17:10.914Z","updated_at":"2025-05-12T18:27:28.852Z","avatar_url":"https://github.com/trilom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sls-tesla-api\nThis is most of the Tesla commands api wrapped up, and ready for you to deploy for your own use case in AWS.\n\n## Dependencies\n### Serverless\n```\nnpm install -g serverless\n```\n### Docker\n```\nbrew cask install docker\n```\n### AWS CLI\n```\nbrew install awscli\n```\nThis also needs to be configured with:\n```\naws configure\n```\n## Running\nFirst you need to install dependencies for serverless with:\n```\nnpm install\n```\n\nThen simply run with:\n```\nsls deploy\n```\n\nYou will receive an output that looks similar to this:\n```\nService Information\nservice: sls-tesla-api\nstage: dev\nregion: us-east-1\nstack: sls-tesla-api-dev\nresources: 11\napi keys:\n  None\nendpoints:\n  ANY - https://m6ifh35s2.execute-api.us-east-1.amazonaws.com/dev/{proxy+}\nfunctions:\n  vehiclesCommand: sls-tesla-api-dev-vehiclesCommand\nlayers:\n  None\n```\nYou will be able to invoke the api by the endpoint listed, first you will need to get the vehicle for the bearer token:\n```\nhttp post https://m6ifh35s2.execute-api.us-east-1.amazonaws.com/dev/vehicles bearer_token=abcd1234somelongshieldtoken\n```\nThis will give you a list of vehicle id's, with this in hand, lets honk the horn:\n```\nhttp post https://m6ifh35s2.execute-api.us-east-1.amazonaws.com/dev/command/59085098204580904/honk_horn bearer_token=abcd1234somelongshieldtoken\n```\nYour horn should honk.\n\n## Endpoints\n```\n/command/{vehicleId}/sentry_mode_off\n/command/{vehicleId}/sentry_mode_on\n/command/{vehicleId}/remote_steering_wheel_heater_off\n/command/{vehicleId}/remote_steering_wheel_heater_on\n/command/{vehicleId}/remote_seat_heater_request/{seats}/{level}\n/command/{vehicleId}/set_temps/passenger/{temp}\n/command/{vehicleId}/set_temps/driver/{temp}\n/command/{vehicleId}/set_temps/{temp}\n/command/{vehicleId}/auto_conditioning_stop\n/command/{vehicleId}/auto_conditioning_start\n/command/{vehicleId}/set_charge_limit/{chargeLimit}\n/command/{vehicleId}/charge_max_range\n/command/{vehicleId}/charge_standard\n/command/{vehicleId}/charge_stop\n/command/{vehicleId}/charge_start\n/command/{vehicleId}/charge_port_door_close\n/command/{vehicleId}/charge_port_door_open\n/command/{vehicleId}/open_frunk\n/command/{vehicleId}/open_trunk\n/command/{vehicleId}/honk_horn\n/command/{vehicleId}/flash_lights\n/command/{vehicleId}/wake_up\n/command/{vehicleId}/door_unlock\n/command/{vehicleId}/door_lock\n/vehicles\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrilom%2Fsls-tesla-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrilom%2Fsls-tesla-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrilom%2Fsls-tesla-api/lists"}