{"id":36488450,"url":"https://github.com/csmith/alphabat","last_synced_at":"2026-01-12T01:53:34.699Z","repository":{"id":64919994,"uuid":"579353616","full_name":"csmith/alphabat","owner":"csmith","description":"Battery status for HyperX Cloud Alpha Wireless headsets","archived":false,"fork":false,"pushed_at":"2025-06-13T21:45:11.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T22:35:30.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/csmith.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-17T12:14:27.000Z","updated_at":"2025-06-13T21:45:15.000Z","dependencies_parsed_at":"2024-06-20T14:23:06.284Z","dependency_job_id":null,"html_url":"https://github.com/csmith/alphabat","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/csmith/alphabat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Falphabat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Falphabat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Falphabat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Falphabat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csmith","download_url":"https://codeload.github.com/csmith/alphabat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Falphabat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-12T01:53:34.627Z","updated_at":"2026-01-12T01:53:34.689Z","avatar_url":"https://github.com/csmith.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alphabat\n\nAlphabat is a simple command line tool to retrieve the battery status of a\nHyperX Cloud Alpha Wireless headset. (This also has the side effect of making\nthe headset report the correct battery level when pressing the power button.)\n\n## Usage\n\n```shell\nCGO_ENABLED=1 go install github.com/csmith/alphabat@latest\n$(go env GOPATH)/bin/alphabat\n```\n\n## Permissions and udev\n\nIn order to read and write to a USB device your user account will need\npermission to access them. On Linux, you should add a udev rule along\nthe lines of:\n\n```udev\nSUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"03f0\", ATTRS{idProduct}==\"098d\", TAG+=\"uaccess\"\n```\n\nSorting permissions out on other operating systems is left as an exercise\nfor the reader. (Pull requests to this README gladly accepted!)\n\n## Exit codes\n\nIf something goes wrong, alphabat will exit with the following status codes:\n\n| Exit code | Meaning                 | Possible cause               |\n|-----------|-------------------------|------------------------------|\n| 1         | Device not found        | Dongle not connected         |\n| 2         | Unable to open device   | No permissions               |\n| 3         | Unable to send data     | ?                            |\n| 4         | Unable to read data     | ?                            |\n| 5         | HID library unavailable | Compiled without cgo enabled |\n| 125       | No response from device | Headset not turned on        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmith%2Falphabat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsmith%2Falphabat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmith%2Falphabat/lists"}