27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
mqtt:
|
|
host: "192.168.1.x" # your MQTT broker IP or hostname
|
|
port: 1883
|
|
username: "your_user" # leave empty if broker has no auth
|
|
password: "your_password" # leave empty if broker has no auth
|
|
topic_prefix: "monitor-py" # base topic: {topic_prefix}/{node_id}/...
|
|
client_id: "" # auto-generated from hostname if left empty
|
|
|
|
monitor:
|
|
interval: 30 # seconds between publishes
|
|
device_name: "" # human-readable HA device name; defaults to hostname
|
|
node_id: "" # MQTT topic slug; defaults to hostname if empty
|
|
|
|
sensors:
|
|
cpu: true
|
|
gpu: true # NVIDIA via nvidia-smi; skipped gracefully if unavailable
|
|
ram: true
|
|
disk:
|
|
enabled: true
|
|
partitions: [] # empty = auto-detect; or list specific mounts: ["/", "/home"]
|
|
io_stats: true # enable read/write speed sensors
|
|
network:
|
|
enabled: true
|
|
interfaces: [] # empty = all non-loopback; or list specific: ["enp6s0"]
|
|
system: true # uptime, logged-in users
|
|
idle_time: true # session idle via xprintidle (requires X11 + xprintidle in PATH)
|