{"id":31049225,"url":"https://github.com/ztkent/pitooth","last_synced_at":"2025-09-14T21:48:19.878Z","repository":{"id":245726166,"uuid":"819063003","full_name":"ztkent/pitooth","owner":"ztkent","description":"Bluetooth manager for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2025-01-12T00:51:38.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T06:32:15.289Z","etag":null,"topics":["bluetooth","go","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ztkent.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":"2024-06-23T17:08:52.000Z","updated_at":"2025-05-21T05:07:43.000Z","dependencies_parsed_at":"2024-06-23T18:30:06.500Z","dependency_job_id":"8b0a41a2-6602-44ae-a04c-6b0a72b8891a","html_url":"https://github.com/ztkent/pitooth","commit_stats":null,"previous_names":["ztkent/pitooth","ztkent/pi-bluetooth"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ztkent/pitooth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztkent%2Fpitooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztkent%2Fpitooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztkent%2Fpitooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztkent%2Fpitooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ztkent","download_url":"https://codeload.github.com/ztkent/pitooth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztkent%2Fpitooth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275174427,"owners_count":25418064,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":["bluetooth","go","raspberry-pi"],"created_at":"2025-09-14T21:48:17.243Z","updated_at":"2025-09-14T21:48:19.866Z","avatar_url":"https://github.com/ztkent.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiTooth\nGo Bluetooth manager for Raspberry Pi devices.   \nQuickly enable simple Bluetooth connectivity and file transfer capabilities.\n\nYou can import it into your projects, or use it as a standalone tool.\n\n## Features\n- Manage the bluetooth service on the Raspberry Pi.\n- Accept incoming Bluetooth connections.\n- Discover nearby and connected Bluetooth devices.\n- Control the OBEX server to support file transfers.\n\n## Requirements\n- Any Raspberry Pi device with Bluetooth\n- Enable [Bluez ObexD](https://github.com/bluez/bluez)\n\n## Usage\n### CLI\n```bash\n## Build the tool\ncd pitooth/cmd\ngo build -v -o pitooth\n\n## Accept incoming connections with a specified window:\n./pitooth -alias=PiToothDevice -acceptConnections -connectionWindow=60 -log=debug\n\n## Enable OBEX server with a path to store received files:\n./pitooth -enableObex -obexPath=/path/to/obex/files\n\n## Disable OBEX server:\n./pitooth -disableObex\n```\n\n### Library\n```go\nimport (\n    \"log\"\n    \"time\"\n    \"github.com/ztkent/pitooth\"\n)\n\n// Validate bluetooth functionality, then create a new Bluetooth Manager\nbtm, err := NewBluetoothManager(\"YourDeviceName\")\nif err != nil {\n    log.Fatalf(\"Failed to create Bluetooth Manager: %v\", err)\n} \n\n// Become discoverable, and accept incoming connections for 30 seconds\nconnectedDevices, err := btm.AcceptConnections(time.Second * 30)\nif err != nil {\n    log.Fatalf(\"Failed to accept connections: %v\", err)\n}\n\n// Enable the obexd server, and set the file transfer directory\nif err := btm.ControlOBEXServer(true, \"/home/sunlight/sunlight-meter\"); err != nil {\n    log.Fatalf(\"Failed to start OBEX server: %v\", err)\n}\n\n// At this point, any connected devices can send files to the Raspberry Pi.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztkent%2Fpitooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztkent%2Fpitooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztkent%2Fpitooth/lists"}