{"id":13693103,"url":"https://github.com/timdorr/tesla-api","last_synced_at":"2025-12-16T20:52:56.304Z","repository":{"id":6737767,"uuid":"7983886","full_name":"timdorr/tesla-api","owner":"timdorr","description":"🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.","archived":false,"fork":false,"pushed_at":"2024-12-06T08:09:00.000Z","size":1010,"stargazers_count":2052,"open_issues_count":22,"forks_count":538,"subscribers_count":128,"default_branch":"master","last_synced_at":"2025-12-05T13:20:45.507Z","etag":null,"topics":["api","car","iot","ruby","tesla"],"latest_commit_sha":null,"homepage":"https://tesla-api.timdorr.com/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timdorr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"timdorr"}},"created_at":"2013-02-03T00:00:55.000Z","updated_at":"2025-11-30T23:22:57.000Z","dependencies_parsed_at":"2023-02-16T06:01:30.475Z","dependency_job_id":"b1929863-f641-4a13-9fb8-e0978f2871d1","html_url":"https://github.com/timdorr/tesla-api","commit_stats":{"total_commits":579,"total_committers":86,"mean_commits":6.732558139534884,"dds":0.7892918825561313,"last_synced_commit":"671eae21431e16a9d1a1a3f00e8966fd1c4c0644"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/timdorr/tesla-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdorr%2Ftesla-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdorr%2Ftesla-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdorr%2Ftesla-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdorr%2Ftesla-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timdorr","download_url":"https://codeload.github.com/timdorr/tesla-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdorr%2Ftesla-api/sbom","scorecard":{"id":885703,"data":{"date":"2025-08-11","repo":{"name":"github.com/timdorr/tesla-api","commit":"c90d9950bfa58ec02b9ed716688a7e97b760f869"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":4,"reason":"Found 13/30 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/formatting.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/formatting.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/timdorr/tesla-api/formatting.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/formatting.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/timdorr/tesla-api/formatting.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/timdorr/tesla-api/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/timdorr/tesla-api/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T09:57:22.598Z","repository_id":6737767,"created_at":"2025-08-24T09:57:22.601Z","updated_at":"2025-08-24T09:57:22.601Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27771138,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","car","iot","ruby","tesla"],"created_at":"2024-08-02T17:01:05.617Z","updated_at":"2025-12-16T20:52:56.282Z","avatar_url":"https://github.com/timdorr.png","language":"Ruby","readme":"Referrals are back! Need a vehicle to test with? [Get a Tesla with free supercharging](http://ts.la/timothy8449)\n\nDo you work at Tesla? Get in contact! I'd love to help with making this API official.\n\n# Tesla JSON API\n\n[View Documentation](https://tesla-api.timdorr.com/)\n\nThis is unofficial documentation of the Tesla JSON API used by the iOS and Android apps.\nThe API provides functionality to monitor and control the Model S (and future Tesla vehicles) remotely.\nThe project provides both a documentation of the API and a Ruby library for accessing it.\n\n\u003e If any folks at Tesla are reading this, I'd love to help coordinate a developer program for your APIs. If there's any way I can be helpful, please feel free to get in contact. Also, I'd love to be in the beta firmware program :wink:\n\n## Ruby Gem [![Gem Version](https://img.shields.io/gem/v/tesla_api.svg)](http://rubygems.org/gems/tesla_api) [![Build Status](https://img.shields.io/travis/timdorr/tesla-api/master.svg)](https://travis-ci.org/timdorr/tesla-api)\n\nThis gem provides a basic wrapper around the API to easily query and command the car remotely.\nIt also provides access to the streaming API and a means to process data coming from it.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tesla_api'\n```\n\nOr install it yourself:\n\n```sh\ngem install tesla_api\n```\n\n## Usage\n\nHere's a quick example:\n\n```ruby\nrequire 'tesla_api'\n\ntesla_api = TeslaApi::Client.new(email: email, client_id: client_id, client_secret: client_secret)\ntesla_api.login!(password)\n# Or if you have an access token:\ntesla_api = TeslaApi::Client.new(access_token: access_token)\n\nmodel_s = tesla_api.vehicles.first # =\u003e \u003cTeslaApi::Vehicle\u003e\n\nmodel_s.wake_up\nvehicle_data = model_s.vehicle_data\nmodel_s.auto_conditioning_start unless vehicle_data[\"climate_state\"][\"is_auto_conditioning_on\"]\n\nmodel_s.set_charge_limit(90)\nmodel_s.charge_start\n\ncharge_state = vehicle_data[\"charge_state\"]\nputs \"Your Model S is #{charge_state[\"charging_state\"]} \" +\n     \"with a SOC of #{charge_state[\"battery_level\"]}% \" +\n     \"and an estimate range of #{charge_state[\"est_battery_range\"]} miles\"\n```\n\n## Copyright\n\nRuby portions are Copyright (c) 2014-Present Tim Dorr. Released under the terms of the\nMIT license. See LICENSE for details.\n","funding_links":["https://github.com/sponsors/timdorr"],"categories":["Network and Middleware","API Wrappers","Ruby","Development"],"sub_categories":["Sensor and Acuator Interfaces","Development APIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimdorr%2Ftesla-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimdorr%2Ftesla-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimdorr%2Ftesla-api/lists"}