{"id":17700776,"url":"https://github.com/cdown/bats","last_synced_at":"2025-03-31T02:28:41.701Z","repository":{"id":11636274,"uuid":"14138973","full_name":"cdown/bats","owner":"cdown","description":"Simple battery status tool","archived":false,"fork":false,"pushed_at":"2022-03-13T22:52:31.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T07:31:04.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdown.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}},"created_at":"2013-11-05T10:50:16.000Z","updated_at":"2022-03-13T22:48:13.000Z","dependencies_parsed_at":"2022-08-27T21:53:10.110Z","dependency_job_id":null,"html_url":"https://github.com/cdown/bats","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fbats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fbats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fbats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fbats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdown","download_url":"https://codeload.github.com/cdown/bats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246406010,"owners_count":20771869,"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":[],"created_at":"2024-10-24T17:43:04.903Z","updated_at":"2025-03-31T02:28:41.675Z","avatar_url":"https://github.com/cdown.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"bats is an extremely simple battery status printer written in bash. It uses\n[sysfs][sysfs] to get the battery data, so right now it is Linux-specific.\n\n## Usage\n\n    $ # Will show information about all available batteries\n    $ bats\n    42DFF\n    $ # Explicitly choose a battery\n    $ bats BAT1\n    76C\n\n## Output\n\nThe output is in the following format `\u003cpercentage\u003e\u003cstatus\u003e`. The percentage is\nthe remaining battery charge left, which is calculated by totalling all of the\nbattery capacities together and getting a percentage compared to the current\ncharge.\n\n### Status symbols:\n\nThe status symbols transparently represent the battery status as provided by\n`battery.h`:\n\n- C: Charging\n- D: Discharging\n- N: Not charging (eg. due to battery threshold)\n- F: Full\n- U: Unknown\n\n[sysfs]: https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fbats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdown%2Fbats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fbats/lists"}