Skip to main content

Telegram battery bot.

Monitors laptop battery level and sends a message on Telegram when it drop below specified level.

Usage:

batbot -t TELEGRAM_TOKEN -u TELEGRAM_USER [-b BATTERY_THRESHOLD] [-f CHECK_FREQUENCY]
batbot -c CONFIG_FILE
batbot --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

Metadata

Release files for battery-bot-telegram 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for battery-bot-telegram 0.1.2
File Size Uploaded
battery-bot-telegram-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for battery-bot-telegram 0.1.2
File Interpreter ABI Platform
battery_bot_telegram-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / battery-bot-telegram-0.1.2.tar.gz

Download URL battery-bot-telegram-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0ad98b8985e374772bb9f55201bda726fb8a22c56fbcf70fa0765baf2dd34ff6
BLAKE2b-256 checksum
How to use checksums
101805ed1f46763c93e711a3f32751f56836df65b32f980a5f66350e6e2c033b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.5 Linux/5.4.7-arch1-1

Release files / battery_bot_telegram-0.1.2-py3-none-any.whl

Download URL battery_bot_telegram-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99414ec6af83516ae066879422f853da8bc3a01bff6b6bb78b842e553e38d4f7
BLAKE2b-256 checksum
How to use checksums
6fd25d107e4026b905dc28fea9a1852887ca8b2abb2a7d0deca120c5dec02680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.5 Linux/5.4.7-arch1-1

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page