{"id":24334556,"url":"https://github.com/codemicro/batmon","last_synced_at":"2026-04-28T05:36:56.872Z","repository":{"id":57638252,"uuid":"430483706","full_name":"codemicro/batmon","owner":"codemicro","description":"Basic Golang program to monitor battery charge level","archived":false,"fork":false,"pushed_at":"2021-11-21T22:39:25.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T09:26:40.683Z","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/codemicro.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":"2021-11-21T21:23:55.000Z","updated_at":"2021-11-21T22:39:27.000Z","dependencies_parsed_at":"2022-09-26T20:21:15.570Z","dependency_job_id":null,"html_url":"https://github.com/codemicro/batmon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemicro%2Fbatmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemicro%2Fbatmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemicro%2Fbatmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemicro%2Fbatmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemicro","download_url":"https://codeload.github.com/codemicro/batmon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243058709,"owners_count":20229431,"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":"2025-01-18T04:17:12.496Z","updated_at":"2025-12-25T05:07:21.427Z","avatar_url":"https://github.com/codemicro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# batmon\n\n*Basic Golang program to monitor battery charge level*\n\n---\n\n`batmon` is a basic utility designed to be in the background of a system to monitor its battery level. Only Linux is supported.\n\n### Installation \n\nThe following requires at least version 1.16 of the Go SDK installed, and to have GOPATH on your PATH.\n\n```\ngo install github.com/codemicro/batmon@latest\n```\n\n### Usage\n\nStart at startup, for example with `cron`:\n\n```\n@reboot /home/akp/go/bin/batmon\n```\n\nNote that `batmon` is blocking.\n\n### Battery information\n\nBattery capacity is retrieved from `/sys/class/power_supply/BAT0/capacity` by default. This can be changed in the `batteryPath` constant in `main.go`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemicro%2Fbatmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemicro%2Fbatmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemicro%2Fbatmon/lists"}