https://github.com/jakeoeding/battery-alert
Send laptop battery status notifications via SMS
https://github.com/jakeoeding/battery-alert
twilio-sms
Last synced: about 1 year ago
JSON representation
Send laptop battery status notifications via SMS
- Host: GitHub
- URL: https://github.com/jakeoeding/battery-alert
- Owner: jakeoeding
- Created: 2021-05-31T23:37:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T18:50:55.000Z (almost 5 years ago)
- Last Synced: 2025-06-02T20:33:04.084Z (about 1 year ago)
- Topics: twilio-sms
- Language: C#
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BatteryAlert
Simple script that fetches your battery level and alerts you via SMS message if your battery level is too low or full.
## Dependencies
- Windows only (uses `SystemInformation` from `System.Windows.Forms` for checking battery status)
- Twilio. Add the package via NuGet. You'll also need:
- an account with funds to cover cost of sending messages
- a verified phone number that you can send messages to
- a reserved phone number from Twilio for sending messages from
## Customization
- You can set what battery levels trigger notifications by changing `LOW_THRESHOLD` and `HIGH_THRESHOLD`
- `MINUTES_DELAY` corresponds to the time interval between battery status checks
- `MAX_CHECK_COUNT` provides a way for you to limit the number of checks and effectively gives you an upper bound on the amount of time the program will run (`MINUTES_DELAY` * `MAX_CHECK_COUNT`)