Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.
/ ethogram Public archive

Telegram bot for ethOS!

Notifications You must be signed in to change notification settings

Mazyod/ethogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethogram alt text

⚠️ This bot is no longer hosted nor maintained.

Telegram bot for ethOS!

Since the bot now tracks the chat id's in a file, even if it restarts, we can alert users of downtime, or possible issues with the bot itself by sending status messages (not implemented yet).

Getting Started

  • Just add ethogramBot to the group, or chat it up directly.
  • run /start [PANEL_ID] to monitor [PANEL_ID].ethosdistro.com

Installation

If you'd like to deploy your own version of this bot, please follow this rough guide:

  • Use BotFather from Telegram to create a bot, and acquire TELEGRAM_TOKEN
  • Clone this repo on a server, such as DigitialOcean. (Don't use heroku, since this bot relies on file persistence)
  • cd into the repo root
  • Create ethogram.json, as follows:
{
  "TELEGRAM_TOKEN": "[YOUR_TELEGRAM_TOKEN_FROM ABOVE]",
  "WEBHOOK_HOST": "[HOSTNAME_FOR_YOUR_SERVER]"
}
  • Create certs directory, and add required SSL files for https webhook support: (TODO: Add more details)
    • cert.pem
    • private.key
  • Now, you have two options:
    • Using Docker:
      • Build the docker image docker build -t ethogram .
      • Run a container docker run -d -p 8443:8443 -v "$(pwd)":/app ethogram
    • Execute directly:
      • Install python3
      • Install requirements using pip3 install -r requirements.txt
      • Run using python3 driver.py

Metrics

action alert description
all_stats send all available stats
gpu_temps Alert range 40 - 75 C
hashrates Alert increase/decrease of +10%
timestamp Alert if t(n) > t(n+1)

Demo