{"id":17040869,"url":"https://github.com/m4gnv5/9botone","last_synced_at":"2025-04-12T14:32:59.491Z","repository":{"id":80537068,"uuid":"186057848","full_name":"M4GNV5/9BotONE","owner":"M4GNV5","description":"research tool to read/write data from/to a Ninebot ONE A1/S2","archived":false,"fork":false,"pushed_at":"2022-03-11T22:54:47.000Z","size":8,"stargazers_count":23,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T09:04:35.392Z","etag":null,"topics":["a1","ble","bluetooth","electric","monowheel","ninebot","puckjs","s2","scooter","xiaomi"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/M4GNV5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-10T21:44:13.000Z","updated_at":"2024-10-21T22:15:24.000Z","dependencies_parsed_at":"2024-01-12T18:39:20.415Z","dependency_job_id":"ea1a1cf7-cc6f-4216-bba6-ce21581d2b06","html_url":"https://github.com/M4GNV5/9BotONE","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"ca9a65ee9be923465f55b7a5dcfcb1f19fb20daf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4GNV5%2F9BotONE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4GNV5%2F9BotONE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4GNV5%2F9BotONE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M4GNV5%2F9BotONE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M4GNV5","download_url":"https://codeload.github.com/M4GNV5/9BotONE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581250,"owners_count":21128134,"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":["a1","ble","bluetooth","electric","monowheel","ninebot","puckjs","s2","scooter","xiaomi"],"created_at":"2024-10-14T09:10:45.862Z","updated_at":"2025-04-12T14:32:59.470Z","avatar_url":"https://github.com/M4GNV5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 9BotONE\n\nThis repository contains some scripts and tools for communicating with my\nNinebot ONE S2. It could work with other scooters too but might need some\nadjustment.\n\n## Ressources\nThe following docs helped me a lot when fiddling with the bluetooth protocol.\nSome of these are actually related to other similar scooters like the\nNinebot ES2 or the Xiaomi M365.\n\n- https://github.com/etransport/ninebot-docs/wiki/protocol\n- https://github.com/fgorina/9BMetrics/issues/6\n- https://wiki.scooterhacking.org/index.php/Ninebot_ES/SNSC_models\n- https://wiki.scooterhacking.org/index.php/Ninebot_ES/SNSC_ESC_documentation\n\n## 9BotONE.py\n\nPython script which connects to a ninebot and can read/write/dump registers.\nIt runs using `pygatt` using BlueZ (Linux bluetooth stack).\n\n```sh\n# change the mac address in the file\n\npython 9BotONE.py read \u003coffset\u003e \u003clength\u003e\npython 9BotONE.py write \u003coffset\u003e \u003chex bytes...\u003e\npython 9BotONE.py dump \u003cfile\u003e\n```\n\n## Web tool\n\nI initially wrote a javascript implementation of the ninebot tool for the\nkeyfob, but it turns out the bluetooth API of the puckjs is the same as the\n(experimental) WebBluetooth API. So with a few extra lines i was able to\nread/write registers from the webbrowser.\n\nYou can try it yourself here: https://m4gnus.de/ninebot/src/\n\n## Keyfob\n\nHaving to take out my phone, disable mobile internet (so the app doesn't send my\ndata to the \"cloud\"), enable bluetooth, open the app and finally click lock took\ntoo long, so i created a key fob using a [puckjs](https://www.puck-js.com/)\nwhich locks my scooter by simply clicking one button. Click the image for a demo\nvideo:\n\n[![](https://i.m4gnus.de/2019-05/2019-05-18T17:26.png)](https://i.m4gnus.de/2019-05/2019-05-18T16%3A56.mp4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4gnv5%2F9botone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4gnv5%2F9botone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4gnv5%2F9botone/lists"}