Skip to main content

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

Metadata

Release files for battery-bot-telegram 0.1.3

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.3
File Size Uploaded
battery-bot-telegram-0.1.3.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.0 kB

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

Download URL battery-bot-telegram-0.1.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2927549461c3fdd83bc93fb3498b9bf27ef524601699e7576e6ab4d4f749783c
BLAKE2b-256 checksum
How to use checksums
3e665531e257cc51f27a20fe33885b77b2a44dddb6db0f826864440a08821e5a
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.3-py3-none-any.whl

Download URL battery_bot_telegram-0.1.3-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cce8b957e75e88de72292f2adc129c2a498d887128dc9b5680fc6f61eb98e97
BLAKE2b-256 checksum
How to use checksums
994af1a8774c0968857717484ee5d8936bafdd762089e24916cfa4b96edc3d2a
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

This release

0.1.3 This release

2 release files

0.1.2

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