battery-bot-telegram-0.1.3
توضیحات
Telegram bot that notifies when battery is low
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | battery-bot-telegram-0.1.3 |
| نام | battery-bot-telegram |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tomasz Walotek |
| ایمیل نویسنده | tomasz.walotek@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/battery-bot-telegram/ |
| مجوز | - |
# 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
نیازمندی
| مقدار | نام |
|---|---|
| >=12.2,<13.0 | python-telegram-bot |
| >=5.6,<6.0 | psutil |
| >=0.6.2,<0.7.0 | docopt |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl battery-bot-telegram-0.1.3:
pip install battery-bot-telegram-0.1.3.whl
نصب پکیج tar.gz battery-bot-telegram-0.1.3:
pip install battery-bot-telegram-0.1.3.tar.gz