Telegram bot that notifies when battery is low
Project description
Telegram battery bot.
Monitors laptop battery level and sends a message on Telegram when it drop below specified threshold.
Usage:
batbottg -t TELEGRAM_TOKEN -u TELEGRAM_USER [-b BATTERY_THRESHOLD] [-f CHECK_FREQUENCY]
batbottg -c CONFIG_FILE
batbottg --help
Options:
-t, --telegram-token=TELEGRAM_TOKEN Telegram bot token
-u, --telegram-user=TELEGRAM_USER Telegram user ID
-b, --battery-threshold=BATTERY_THRESHOLD Battery level alert threshold [default: 10]
-f, --check-frequency=CHECK_FREQUENCY Level check frequency [default: 60]
-c, --config=CONFIG_FILE Read config from file
--help Show this screen
Config file format:
[bot]
telegram_token = TELEGRAM_TOKEN
telegram_user = TELEGRAM_USER
battery_threshold = BATTERY_THRESHOLD
check_frequency = CHECK_FREQUENCY
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file battery-bot-telegram-0.1.3.tar.gz
.
File metadata
- Download URL: battery-bot-telegram-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.5 Linux/5.4.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2927549461c3fdd83bc93fb3498b9bf27ef524601699e7576e6ab4d4f749783c |
|
MD5 | 33063bbb0ee3d167ecfee92d0c31ac5a |
|
BLAKE2b-256 | 3e665531e257cc51f27a20fe33885b77b2a44dddb6db0f826864440a08821e5a |
File details
Details for the file battery_bot_telegram-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: battery_bot_telegram-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.5 Linux/5.4.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cce8b957e75e88de72292f2adc129c2a498d887128dc9b5680fc6f61eb98e97 |
|
MD5 | ab379caccfcbca28bc0adcc5686cd95f |
|
BLAKE2b-256 | 994af1a8774c0968857717484ee5d8936bafdd762089e24916cfa4b96edc3d2a |