{"id":13830616,"url":"https://github.com/aduyng/tesla-client","last_synced_at":"2026-02-09T09:39:58.841Z","repository":{"id":37707205,"uuid":"192728375","full_name":"aduyng/tesla-client","owner":"aduyng","description":"A NodeJS application to report my Tesla status","archived":false,"fork":false,"pushed_at":"2023-01-09T11:43:39.000Z","size":781,"stargazers_count":0,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T12:09:49.219Z","etag":null,"topics":["firebase","firebase-database","nodejs","tesla-api"],"latest_commit_sha":null,"homepage":"","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/aduyng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-19T12:31:25.000Z","updated_at":"2019-06-20T04:48:15.000Z","dependencies_parsed_at":"2023-02-08T10:30:30.014Z","dependency_job_id":null,"html_url":"https://github.com/aduyng/tesla-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aduyng/tesla-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduyng%2Ftesla-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduyng%2Ftesla-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduyng%2Ftesla-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduyng%2Ftesla-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aduyng","download_url":"https://codeload.github.com/aduyng/tesla-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduyng%2Ftesla-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264458065,"owners_count":23611476,"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":["firebase","firebase-database","nodejs","tesla-api"],"created_at":"2024-08-04T10:01:03.136Z","updated_at":"2026-02-09T09:39:58.779Z","avatar_url":"https://github.com/aduyng.png","language":"JavaScript","funding_links":[],"categories":["Hardware"],"sub_categories":[],"readme":"# tesla-client\nA collection of Firebase Cloud functions to report the car status using Tesla Unofficial API\n\nI set up this repo with my Raspberry Pi as a cronjob to report the status of the vehicle very 30 minutes. \n\n## Installation\n(Replace `/home/pi/tesla-client` to your installation folder)\n1. Clone this repository\n    ```bash\n    git clone https://github.com/aduyng/tesla-client.git /home/pi/tesla-client\n    ```\n1. Install dependencies\n    ```bash\n    cd /home/pi/tesla-client\n    [sudo] npm install forever --global\n    npm install --production\n    ```\n1. Follow the instruction here: https://firebase.google.com/docs/admin/setup to set up your firebase project and obtain the parameters for `initializeApp()`. Download the service account JSON file and save it to `/home/pi/tesla-client/private/firebase-service-account-key.json`\n1. Enter environment variables in `/home/pi/tesla-client/.env`\n    ```bash\n    TESLA_CLIENT_ID=\u003cthe tesla client id as instructed here https://tesla-api.timdorr.com/api-basics/authentication\u003e\n    TESLA_CLIENT_SECRET=\u003cthe tesla client secret\u003e\n    TESLA_ACCOUNT_USERNAME=\u003cowner email address\u003e\n    TESLA_ACCOUNT_PASSWORD=\u003cowner password\u003e\n    FIREBASE_API_KEY=\u003cfirebase apiKey\u003e\n    FIREBASE_AUTH_DOMAIN=\u003cfirebase authDomain\u003e\n    FIREBASE_DATABASE_URL=\u003cfirebase databaseURL\u003e\n    FIREBASE_PROJECT_ID=\u003cfirebase projectId\u003e\n    FIREBASE_STORAGE_BUCKET=\u003cfirebase storageBucket\u003e\n    FIREBASE_MESSAGING_SENDER_ID=\u003cfirebase messagingSenderId\u003e\n    FIREBASE_APP_ID=\u003cfirebase appId\u003e\n    GOOGLE_APPLICATION_CREDENTIALS=/home/pi/tesla-client/private/firebase-service-account-key.json\n    CRON_SCHEDULE=\"*/5 * * * *\"\n    ```\n1. Start with `forever`\n  ```bash\n  forever start /home/pi/tesla-client/forever.json\n  ```\n\n## Development\nRun `npm run dev` to start the development\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduyng%2Ftesla-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faduyng%2Ftesla-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduyng%2Ftesla-client/lists"}