Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swissmanu/powerbuddy
Schedule starts and shutdowns of your Linux computer.
https://github.com/swissmanu/powerbuddy
Last synced: 28 days ago
JSON representation
Schedule starts and shutdowns of your Linux computer.
- Host: GitHub
- URL: https://github.com/swissmanu/powerbuddy
- Owner: swissmanu
- Created: 2013-11-12T20:43:50.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T11:25:56.000Z (over 6 years ago)
- Last Synced: 2024-12-09T09:18:12.634Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://github.com/swissmanu/powerbuddy
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PowerBuddy
[![Build Status](https://travis-ci.org/swissmanu/powerbuddy.png?branch=master)](https://travis-ci.org/swissmanu/powerbuddy) [![Coverage Status](https://coveralls.io/repos/swissmanu/powerbuddy/badge.png)](https://coveralls.io/r/swissmanu/powerbuddy)`powerbuddy` is a command line utility, written in JavaScript using Node.js and allows you to create exact schedules when to start and shutdown a unix based computer.
## Requirements
### Hardware
* Bios with support for scheduled system startups using `RTC`, aka *[real-time clock](https://www.linux.com/learn/docs/672849-wake-up-linux-with-an-rtc-alarm-clock)*
### Software
* nodejs
* Unix-based operating system, providing:
* working `shutdown` system utilities for shutting down the system
* working `at` system utilities for scheduling jobs
* enabled `rtc` kernel module for scheduling automated system startups## Manage a Schedule
## How PowerBuddy works
After setting up a schedule, `powerbuddy` looks for the next upcoming shutdown task.
At the tasks execution time, following steps are planned to be executed:```bash
powerbuddy syncsystem
shutdown -P now
````powerbuddy syncsystem` schedules the next automatic system startup according to the schedule. Further it plans the next execution of the two commands mentioned above again.
Finally, `shutdown -P now` shuts your system down.
### Rescheduling
If you edit a schedule which is already in place, `powerbuddy` ensures that everything scheduled before is cleaned up. After that, the updated schedule is used to plan the latest actions.## Disable PowerBuddy
If you just want to stop `powerbuddy` from managing your systems up- and downtimes, simply call `powerbuddy disable`.