Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjaysunil/battery-notification
Get notified on when you need to plug/unplug your charger to preserve battery life.
https://github.com/sanjaysunil/battery-notification
battery battery-notification charging node notification npm reminder
Last synced: 17 days ago
JSON representation
Get notified on when you need to plug/unplug your charger to preserve battery life.
- Host: GitHub
- URL: https://github.com/sanjaysunil/battery-notification
- Owner: SanjaySunil
- License: mit
- Created: 2022-11-16T21:34:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T09:52:03.000Z (about 2 years ago)
- Last Synced: 2024-05-28T18:40:23.780Z (8 months ago)
- Topics: battery, battery-notification, charging, node, notification, npm, reminder
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
battery-notification
Get notified on when you need to plug/unplug your charger to preserve battery life.
Report Bug
·
Request Feature
## What's battery-notification?
[battery-notification]() is a command-line tool which aims to notify you when your battery is too low, and when you need to unplug your charger when your device is at a sufficient battery level. The command-line tool allows you to set battery percentage thresholds for when you want to be notified, and is straight-forward to use.
## Install
```sh
$ npm install battery-notification
```## Usage
```sh
$ battery-notification --helpUsage: battery-notification [options]
Get notified on when you need to plug/unplug your charger to preserve battery life.
Options:
-V, --version output the version number
-l, --low Low battery level threshold
-h, --high High battery level threshold
```> **TIP:** You can also use the command ```battery``` instead of `battery-notification`.
### Running the monitor
```sh
$ battery -l -h
```**Example:**
```sh
$ battery -l 25 -h 95
```> **NOTE:** The threshold values are **optional**. If a threshold value is not specified, it will fall back to the default threshold value (low percentage warning: 20%, high percentage warning: 80%)
## License
Copyright © 2022 Sanjay Sunil ([email protected])
Distributed under the MIT License. See `LICENSE` for more information.