Git Product home page Git Product logo

pidell's Introduction

Dell Poweredge Telegram Controller Bot [1]

main staging

This is a python program to issue basic power commands to a Dell Poweredge Server via a Telegram bot. I came up with it because I host my Plex server on an ancient Dell PowerEdge and don't need it to be online all the time but would still like to boot it remotely. First i was using the Internet router's built-in VPN functionality, but then the router started to randomly decide to turn the VPN off. So here we are. I now have a Raspi sitting on top of my server and running that Telegram bot to control the aforementioned server. Works perfectly so far.

Requirements

  • Docker
  • docker-compose

Getting started

Create a settings.env file that defines the parameters given in settings.default.env

  • MANAGE_IP is the ip of the idrac interface
  • SERVER_USERNAME/SERVER_PASSWORD have to be credentials for the idrac interface
  • SERVER_IP is the ip of the OS when the server is up
  • TELEGRAM_OWNER_ID is the telegram User ID of the owner account
  • DELUGE_USERNAME/ DELUGE_PASSWORD are credentials for a deluge account as described here

[Optional] If you want to override the defaults for the values defined in default.env you can do so by creating a file called .env and define the values you want in there. These env variables are used in the docker-compose.yml file. Currently the following variables are defined in that way:

  • MAIN_DNS & FALLBACK_DNS are the ip adresses of 2 DNS servers

run the bot with docker-compose up --build -d

Usage

The bot only provides a few commands as of now, the naming of which should explain enough about what they do:

Everyone Admins Owner
/uptime /start /addadmin
/whatsmyid /stop /deladmin
/ping /getadmins
/gettorrents /addmovie
/addseries

Notice

Basically all torrent related functionality becomes obsolete once one starts using Radarr/Sonarr and a reverse proxy... D;

[1] Suggestions for a better name? anyone?

pidell's People

Contributors

nighmared avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.