Skip to content

Dimoka113/PowerPanelbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Python script for Linux systems to send messages to Telegram!

How To (Install)

  • ..It is assumed that you already have a PowerPanel-based UPS and PowerPanel itself in your system.
  • Download Python 3.11 (Newer or older versions may also be supported. Not verified.)
  • Download the latest release or clone the repository
  • Rename example.config.py to config.py, specify your Telegram bot TOKEN in it.
  • In the admins_ids variable, specify the list of user IDs that will have access to this bot.

Optionals: You can change the language used by the bot by changing the language class in bot/loader.py: lang_class=En(),

(The following languages are supported out of the box: English and Russian.)

You can change the notification phrases by opening the localization you need (example langs/en.py).

How To (Use)

/test - Check how your UPS will operate in battery mode

/mute - Temporarily disable the alarm on the UPS

/status - Get statistics on the status of your UPS

Additionally

Although there is a license for this, I want to duplicate it here.

If you use my code, please consider adding links to the original author.

And please read the license. Thank you!

About

Telegram bot for notifications from UPS based on PowerPanel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages