https://github.com/malja/full_battery_notification
[Working][Not maintained] A PowerShell script which generates a notification when the battery is fully charged
https://github.com/malja/full_battery_notification
battery notifications powershell-script windows-10
Last synced: 2 months ago
JSON representation
[Working][Not maintained] A PowerShell script which generates a notification when the battery is fully charged
- Host: GitHub
- URL: https://github.com/malja/full_battery_notification
- Owner: malja
- License: mit
- Created: 2017-09-11T22:00:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T00:21:03.000Z (almost 9 years ago)
- Last Synced: 2024-02-23T22:45:26.251Z (over 2 years ago)
- Topics: battery, notifications, powershell-script, windows-10
- Language: PowerShell
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Full Battery Notification
This powershell script keeps polling battery status in an infinite loop. If the battery is charging even though
it is fully charged, a notification with sound is created.
It allows user to define custom icon, text and duration for shown notification.
## Usage
Download one of the [releases](https://github.com/malja/full_battery_notification/releases)
([latest one](https://github.com/malja/full_battery_notification/releases/tag/v1.1)). Unzip it and follow instructions
in Readme.txt file.
## Configuration
Configuration is loaded from file config.psd1 in current working directory. It has to consist of following keys:
- __Icon__ - Relative path to the icon of Full battery shown in system tray when notification is invoked. It should be .ico file with resolution of 16x16 pixels.
- __Title__ - Notification title
- __Text__ - Localized notification text
- __BatteryLevel__ - Number from 0 to 100 representing battery level in percentage which should be used as indicator that the battery is full.
- __ShowDuration__ - Number of milliseconds for which the notification is shown.
- __UpdateInterval__ - Number of seconds between each battery check
Default configuration:
```powershell
@{
Icon = ".\FullBattery.ico"
Title = "Battery is full"
Text = "Your battery is full. Please unplug the charger."
BatteryLevel = 89
ShowDuration = 5000
UpdateInterval = 30
}
```
## How does it look?

## Icons
- FullBattery.ico - made by [Freepik](http://www.freepik.com) from [Flaticon](https://www.flaticon.com/") is licensed by [CC 3.0](http://creativecommons.org/licenses/by/3.0/).