- Replaced `data_storage.py` with `database.py` to use SQLite instead of a JSON file for data storage. - Added an `enforce_retention_policy` function to `database.py` to delete data older than 7 days. - Called this function in the main monitoring loop in `monitor_agent.py`. - Added Docker container monitoring. - Updated `.gitignore` to ignore `monitoring.db`.
22 lines
941 B
Python
Executable File
22 lines
941 B
Python
Executable File
# Configuration for the LLM-Powered Monitoring Agent
|
|
|
|
# Discord Webhook URL
|
|
DISCORD_WEBHOOK_URL = "https://discord.com/api/webhooks/1024892743987773471/3Oh1KOw9tevBd-XtUkj8Rz2K4SePCFsxKmRrHhQw5spDeZKNzoyYoq6zC2cnTKo8VjJn"
|
|
|
|
# Home Assistant Configuration
|
|
HOME_ASSISTANT_URL = "http://192.168.2.112:8123"
|
|
HOME_ASSISTANT_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjOGRmZjI4NDY2MTQ0ZDFkODhiODVjNmQyZTA2MzFiNSIsImlhdCI6MTc1NTU0NDY4OSwiZXhwIjoyMDcwOTA0Njg5fQ.5ZeOkixbdme5SF1QVknZ0bjnPYj1Qrps5HDn-Loi-cQ"
|
|
GOOGLE_HOME_SPEAKER_ID = "media_player.spencer_room_speaker"
|
|
|
|
# Daily Recap Time (in 24-hour format, e.g., "20:00")
|
|
DAILY_RECAP_TIME = "18:28"
|
|
|
|
# Nmap Configuration
|
|
NMAP_TARGETS = "192.168.2.0/24"
|
|
NMAP_SCAN_OPTIONS = "-sS -T4 -R"
|
|
|
|
# Docker Configuration
|
|
DOCKER_CONTAINERS_TO_MONITOR = ["gitea","portainer","gluetun","mealie","n8n","minecraft"]
|
|
|
|
# Test Mode (True to run once and exit, False to run continuously)
|
|
TEST_MODE = False |