{"id":19466059,"url":"https://github.com/wzr1337/teslastreaming","last_synced_at":"2026-06-19T05:32:05.571Z","repository":{"id":55994470,"uuid":"307827044","full_name":"wzr1337/teslaStreaming","owner":"wzr1337","description":"tesla streamibg api for nodejs","archived":false,"fork":false,"pushed_at":"2020-12-02T11:08:35.000Z","size":67,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T13:51:05.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/wzr1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-27T21:02:16.000Z","updated_at":"2020-12-02T11:08:38.000Z","dependencies_parsed_at":"2022-08-15T11:00:51.338Z","dependency_job_id":null,"html_url":"https://github.com/wzr1337/teslaStreaming","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wzr1337/teslaStreaming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzr1337%2FteslaStreaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzr1337%2FteslaStreaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzr1337%2FteslaStreaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzr1337%2FteslaStreaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wzr1337","download_url":"https://codeload.github.com/wzr1337/teslaStreaming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzr1337%2FteslaStreaming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34519049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2024-11-10T18:25:15.410Z","updated_at":"2026-06-19T05:32:05.550Z","avatar_url":"https://github.com/wzr1337.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeslaStreaming\n\n[![Build Status](https://travis-ci.com/wzr1337/teslaStreaming.svg?branch=master)](https://travis-ci.com/wzr1337/teslaStreaming)\n\nThis module is used to connect to and listen on the Tesla streaming API, exposed via WebSocket. The API is a convenience method in extension of the regular REST API (\u003chttps://teslaapi.io\u003e), which needs to be polled.\n\nThis module is **UNOFFICIAL**.\n\n## prerequisites\n\nIn order to use the streaming API, you need to obtain an `access_token` via the auth REST API.\n\n## Installation\n\nAdd this module to your project using\n\n`$ npm i teslastreaming`\n\n## Usage\n\nThe following example stores a log of messages into an array, a very basic logger if you will:\n\n```typescript\nimport { teslaAPI } from \"./index\";\n\nconst vehicleId = '\u003cyourVehicleId\u003e';\nconst token = '\u003cyourAccessToken\u003e';\n\nconst messages = [];\n\nteslaAPI(vehicleId, token).subscribe((event)=\u003e {\n  messages.push(event);\n  console.log(`messages received: ${messages.length}`);\n  console.log(`Tesla says: ${JSON.stringify(event, null, 2)}`)\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzr1337%2Fteslastreaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwzr1337%2Fteslastreaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzr1337%2Fteslastreaming/lists"}