{"id":17686098,"url":"https://github.com/alexanderwillner/energywatchdog","last_synced_at":"2026-05-06T20:35:22.225Z","repository":{"id":138466799,"uuid":"193588369","full_name":"AlexanderWillner/energywatchdog","owner":"AlexanderWillner","description":"Simple macOS watchdog script that kills processes that consume a lot of energy","archived":false,"fork":false,"pushed_at":"2019-06-25T19:29:27.000Z","size":3248,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T23:28:10.969Z","etag":null,"topics":["bash","bash-script","daemon","efficiency","energy","energy-monitor","macos","monitor","monitoring","monitoring-tool","script","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/AlexanderWillner.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}},"created_at":"2019-06-24T22:16:19.000Z","updated_at":"2022-04-11T18:45:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ccb05ec-09ca-4d93-90de-b0ca3e9b107e","html_url":"https://github.com/AlexanderWillner/energywatchdog","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"70d4ae272ae4cbec864d96baf915c8eeb9a8f85f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderWillner%2Fenergywatchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderWillner%2Fenergywatchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderWillner%2Fenergywatchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderWillner%2Fenergywatchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderWillner","download_url":"https://codeload.github.com/AlexanderWillner/energywatchdog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246376047,"owners_count":20767215,"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":["bash","bash-script","daemon","efficiency","energy","energy-monitor","macos","monitor","monitoring","monitoring-tool","script","shell","shell-script"],"created_at":"2024-10-24T10:29:56.333Z","updated_at":"2026-05-06T20:35:22.171Z","avatar_url":"https://github.com/AlexanderWillner.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS Energy Watchdog\n\n## Summary\n\nSimple macOS watchdog script that kills processes that consume a lot of energy.\n\n![Notification Screenshot](img/notification.png \"Notification Screenshot\")\n\n## Description\n\nWhen working mobile your MacBook should run as long as possible. However, sometimes tasks in the background drain the battery significantly. Often this is only recognized when a low energy warning pops up. This simple script runs in the background as an agent and kills selected processes, in case they are consuming too much of the CPU (e.g. ```\u003e 80%```) within a small time frame (e.g. ```1 minute```).\n\n## Usage\n\nYou should modify the header of the file ```ws.willner.energywatchdog.sh``` as needed before installing the agent. The ```make``` commands:\n\n```\n$ make\nNothing really to make, but there are some available commands:\n * run      : run application to test it\n * install  : install application as an agent\n * remove   : remove agent\n * feedback : create a GitHub issue\n * style    : style bash scripts\n * harden   : harden bash scripts\n```\n\n## Screenshots\n\nThe output when running the script manually. Here ```Messages.app``` gets killed.\n\n![Shell Screenshot](img/shell.png \"Shell Screenshot\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderwillner%2Fenergywatchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderwillner%2Fenergywatchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderwillner%2Fenergywatchdog/lists"}