No description
  • Python 73.9%
  • HTML 25.6%
  • Dockerfile 0.5%
Find a file
2026-01-10 20:46:15 +01:00
core Fix .env quoting for Docker compatibility and refine installation guide 2026-01-10 19:34:59 +01:00
locales Fix .env quoting for Docker compatibility and refine installation guide 2026-01-10 19:34:59 +01:00
modules Fix IP display in Admin module to use EXT_HOST 2026-01-10 20:23:33 +01:00
services Final release: Fixed automation sync/persistence, added installation and user manuals 2026-01-10 19:22:35 +01:00
webui Final release: Fixed automation sync/persistence, added installation and user manuals 2026-01-10 19:22:35 +01:00
.env Install dnsutils in Dockerfile to fix nslookup error 2026-01-10 20:14:45 +01:00
.env.example Fix Docker networking tools and add EXT_HOST config 2026-01-10 19:53:14 +01:00
.gitignore feat: Add Docker configuration and documentation 2026-01-09 23:25:56 +01:00
docker-compose.yml Update docker-compose ports and add EXT_HOST to env 2026-01-10 19:57:16 +01:00
Dockerfile Install dnsutils in Dockerfile to fix nslookup error 2026-01-10 20:14:45 +01:00
INSTALL.md Final cleanup: Add detailed INSTALL.md and USER_MANUAL.md to repo 2026-01-10 20:46:15 +01:00
main.py Final release: Fixed automation sync/persistence, added installation and user manuals 2026-01-10 19:22:35 +01:00
README.md feat: Add Docker configuration and documentation 2026-01-09 23:25:56 +01:00
requirements.txt feat: Complete Web UI with full control panel - Docker, HA, Energy, Network 2026-01-10 00:27:25 +01:00
USER_MANUAL.md Final cleanup: Add detailed INSTALL.md and USER_MANUAL.md to repo 2026-01-10 20:46:15 +01:00

Homelab Bot

🚀 Descripción

Bot de Telegram modular para gestión de Homelab, Docker, Energía, Domótica y Seguridad.

✨ Características

  • 🛡️ Seguridad: Escaneo de red, logs, threat intel
  • 🐳 Docker: Control de contenedores, healthchecks, rollback
  • 🌐 Red: Mapa de red, latencia, anomalías
  • ⚡ Energía: Consumo, solar, costes
  • 🏠 Domótica: Home Assistant integration
  • 🤖 Automatización: Motor de reglas, perfiles
  • ⚙️ Admin: Usuarios, plugins, idiomas

🌍 Idiomas

  • Español
  • Català
  • English

🐳 Docker

# Clonar repositorio
git clone https://github.com/tu-usuario/homelab-bot.git
cd homelab-bot

# Configurar
cp .env.example .env
nano .env  # Añadir tu TELEGRAM_TOKEN

# Ejecutar
docker-compose up -d

# Ver logs
docker-compose logs -f

💻 Desarrollo Local

# Instalar dependencias
pip install -r requirements.txt

# Configurar
cp .env.example .env

# Ejecutar
python main.py

🔌 Añadir Módulos

  1. Crear carpeta modules/mi_modulo/
  2. Crear mi_modulo_module.py con clase que hereda de BaseModule
  3. Opcional: Crear module.json con metadata
  4. Reiniciar el bot

📁 Estructura

├── core/               # Núcleo del bot
│   ├── config.py       # Configuración SQLite
│   ├── plugin_manager.py # Carga dinámica de módulos
│   └── base_module.py  # Clase base para módulos
├── modules/            # Módulos del bot
│   ├── security/
│   ├── docker/
│   ├── network/
│   ├── energy/
│   ├── hass/
│   ├── automation/
│   └── admin/
├── locales/            # Traducciones
│   ├── es.py
│   ├── ca.py
│   └── en.py
├── data/               # Datos persistentes
├── Dockerfile
├── docker-compose.yml
└── main.py

📜 Licencia

MIT