{"id":18489225,"url":"https://github.com/floriancassayre/ebike-connect-js","last_synced_at":"2025-04-08T21:30:42.512Z","repository":{"id":59561261,"uuid":"537933537","full_name":"FlorianCassayre/ebike-connect-js","owner":"FlorianCassayre","description":"An unofficial API for the Bosch eBike Connect web service, written for Node.js","archived":false,"fork":false,"pushed_at":"2024-10-09T17:43:02.000Z","size":89,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T14:44:59.835Z","etag":null,"topics":["api","bosch","ebike","ebike-connect","iot","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/FlorianCassayre.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-17T21:22:41.000Z","updated_at":"2025-02-20T21:45:16.000Z","dependencies_parsed_at":"2024-09-06T14:00:38.762Z","dependency_job_id":"aa168c4d-3b91-4325-aab9-7b0170a688b3","html_url":"https://github.com/FlorianCassayre/ebike-connect-js","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"d4124658f704bf09dd6502b0311d15735c7177c5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlorianCassayre%2Febike-connect-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlorianCassayre%2Febike-connect-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlorianCassayre%2Febike-connect-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlorianCassayre%2Febike-connect-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlorianCassayre","download_url":"https://codeload.github.com/FlorianCassayre/ebike-connect-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247931034,"owners_count":21020155,"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","bosch","ebike","ebike-connect","iot","nodejs"],"created_at":"2024-11-06T12:55:55.285Z","updated_at":"2025-04-08T21:30:42.175Z","avatar_url":"https://github.com/FlorianCassayre.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebike-connect-js\n\n![](https://github.com/FlorianCassayre/ebike-connect-js/actions/workflows/ci.yml/badge.svg)\n![](https://img.shields.io/npm/v/ebike-connect-js?color=brightgreen)\n![](https://img.shields.io/npm/l/ebike-connect-js?color=brightgreen)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"logo.svg\"\u003e\n\u003c/p\u003e\n\nAn unofficial API for the [Bosch eBike Connect](https://www.ebike-connect.com/) web service, written for Node.js. :bike:\n\n## Installation\n\n```\nnpm install ebike-connect-js\n```\n\n## Usage\n\nThis library is designed for Node.js only and will not work on browsers.\n\nYou will need your username and password for the eBike Connect service.\nWe recommend storing them in environment variables, e.g. `.env`:\n```\nEBIKE_CONNECT_USERNAME=xxxxx\nEBIKE_CONNECT_PASSWORD=xxxxx\n```\n\nThen create a file `myfile.js`:\n```javascript\nimport { postAuth, getMyEBikes } from 'ebike-connect-js';\n\nconst credentials = {\n  username: process.env.EBIKE_CONNECT_USERNAME,\n  password: process.env.EBIKE_CONNECT_PASSWORD,\n};\n\npostAuth(credentials)\n  .then(auth =\u003e getMyEBikes(auth)())\n  .then(json =\u003e console.log(json));\n```\n\nYou may then load these environment variables using e.g. the package [dotenv](https://www.npmjs.com/package/dotenv) by running `node -r dotenv/config myfile.js` (or `ts-node -r dotenv/config myfile.ts`).\n\n## Example project\n\nThis library was used to build the following website: **[bike.cassayre.me](https://bike.cassayre.me/)** ([GitHub](https://github.com/FlorianCassayre/ebike-visualization))\n\n## Bug report\n\nThe methods and type declarations provided by this library are purely speculative, as the API may change at any time.\n\nPlease file a ticket if you encounter problems.\n\n## Related projects\n\n- [eMerzh/ebike-dl](https://github.com/eMerzh/ebike-dl): CLI written in Python to download your data\n- [gitlab.com/cycliste-urbain/resources](https://gitlab.com/cycliste-urbain/resources/-/tree/main/eBCDownload): a similar project\n- [cgiesche/ebikeconnect-api](https://github.com/cgiesche/ebikeconnect-api): Java client (unmaintained)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloriancassayre%2Febike-connect-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloriancassayre%2Febike-connect-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloriancassayre%2Febike-connect-js/lists"}