Skip to content

Telegram Bot which sends blinking gifs when disks fail.

Notifications You must be signed in to change notification settings

hopfenspace/DiskFailureBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiskFailureBot

Bot which sends blinking gifs when disks fail.

We wanted to have a Telegram bot which notifies everyone when one of the disks in a RAID dies. The idea came up to use a stock image of the server and simulate the broken disk blinking light.

Setup

  • Install dependencies
apt install python python-pip python-opencv imagemagick ffmpeg
pip install python-telegram-bot
  • Edit config.json
  • Find a good stock photo of your server
  • Add disk LED coordinates to gifgen.py
  • Run the bot using python telegram_bot.py

Commands

  • /status retrieve the current status of all disks
  • /demo get a demo gif with randomly broken disks (it needs some way of showing off its coolness, even when all disks are operational)

Examples

About

Telegram Bot which sends blinking gifs when disks fail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published