Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

battery-bot-telegram-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

battery_bot_telegram-0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for battery-bot-telegram-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2927549461c3fdd83bc93fb3498b9bf27ef524601699e7576e6ab4d4f749783c
MD5 33063bbb0ee3d167ecfee92d0c31ac5a
BLAKE2b-256 3e665531e257cc51f27a20fe33885b77b2a44dddb6db0f826864440a08821e5a

See more details on using hashes here.

File details

Details for the file battery_bot_telegram-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for battery_bot_telegram-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5cce8b957e75e88de72292f2adc129c2a498d887128dc9b5680fc6f61eb98e97
MD5 ab379caccfcbca28bc0adcc5686cd95f
BLAKE2b-256 994af1a8774c0968857717484ee5d8936bafdd762089e24916cfa4b96edc3d2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page