{"id":13692937,"url":"https://github.com/heikkipora/tesla-slack","last_synced_at":"2025-04-12T08:51:52.532Z","repository":{"id":17004672,"uuid":"19767912","full_name":"heikkipora/tesla-slack","owner":"heikkipora","description":"Integrates your Tesla Model S/X fleet to Slack","archived":false,"fork":false,"pushed_at":"2023-07-18T20:30:11.000Z","size":1420,"stargazers_count":29,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T17:14:38.258Z","etag":null,"topics":["async-await","es7","slack","tesla"],"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/heikkipora.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-05-14T05:47:04.000Z","updated_at":"2023-03-07T16:32:01.000Z","dependencies_parsed_at":"2024-01-03T04:56:30.446Z","dependency_job_id":"42dd0680-4feb-4fe7-9062-00195facbb8c","html_url":"https://github.com/heikkipora/tesla-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkipora%2Ftesla-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkipora%2Ftesla-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkipora%2Ftesla-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkipora%2Ftesla-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heikkipora","download_url":"https://codeload.github.com/heikkipora/tesla-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223509789,"owners_count":17157299,"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":["async-await","es7","slack","tesla"],"created_at":"2024-08-02T17:01:03.732Z","updated_at":"2024-11-07T11:47:39.364Z","avatar_url":"https://github.com/heikkipora.png","language":"JavaScript","funding_links":[],"categories":["Integrations",":gear: \u0026nbsp; Open-Source Slack Apps and Integrations"],"sub_categories":["JavaScript/Typescript"],"readme":"# tesla-slack\n\nIntegrates your Tesla Model S/X fleet to https://slack.com\n\nThis piece of code serves as an example of how to a) integrate to Slack b) integrate to Tesla APIs. If you happen to have a fleet of shared Tesla vehicles, it will also provide information to the users of the vehicles' whereabouts.\n\n![\"Slack integration screenshot\"](screenshot.png)\n\nUses https://github.com/gutenye/tesla-api for Tesla portal integration.\n\nI [blogged](blogpost.md) about the integration at Reaktor's site: https://www.reaktor.com/blog/talking-tesla in 2014 (and an older version of this piece of software)\n\n## Requirements\n\nNode.js v12 from https://nodejs.org\n\nThe following ENV variables:\n* TESLA_USERNAME - username to the Tesla portal\n* TESLA_PASSWORD - password to the Tesla portal\n* SLACK_RECEIVE_TOKEN - for \"outgoing Slack webhooks\"\n* GOOGLE_API_KEY - your Google Static Maps API Key\n\n## Testing locally\n\nStart it\n\n    npm start\n\nFetch vehicle list:\n\n    curl --data \"token=\u003cinsert-SLACK_RECEIVE_TOKEN-here\u003e\u0026text=!tesla\" http://localhost:5000/slack\n\nFetch vehicle battery, speed and location information:\n\n    curl --data \"token=\u003cinsert-SLACK_RECEIVE_TOKEN-here\u003e\u0026text=!tesla \u003cinsert-vehicle-name-name\u003e\" http://localhost:5000/slack\n\n~~Works nicely when deployed to Heroku~~ Does not necessarily work (connections timeout) in Heroku since September 2020 - maybe Tesla blocked their outgoing gateway IPs ?\n\nPoint the outoing Slack webhook configuration to /slack on your Node.js instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheikkipora%2Ftesla-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheikkipora%2Ftesla-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheikkipora%2Ftesla-slack/lists"}