forked from hardwarehaven/wolnut
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.yaml
More file actions
23 lines (19 loc) · 1.13 KB
/
example.config.yaml
File metadata and controls
23 lines (19 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# copy this to config.yaml befor running wolnut
log_level: INFO # Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
nut:
ups: "ups@localhost" # Format: <ups-name>@<host>
username: "upsmon" # Optional: omit if NUT server doesn't require auth
password: "password"
poll_interval: 15 # Poll interval in seconds — should be shorter than the NUT shutdown delay on any client
wake_on:
restore_delay_sec: 30 # Delay (in seconds) after power is restored before sending WOL
min_battery_percent: 25 # Wait until battery reaches this percent before WOL
client_timeout_sec: 600 # Time to wait for client to come back online before logging an error
reattempt_delay: 30 # Minimum time (in seconds) between WOL attempts per client
clients:
- name: "client 1" # Human-readable name
host: 192.168.0.100 # IP address preferred for reliability
mac: 38:f7:cd:c5:87:6b
- name: "client 2"
host: hostname.local # You can use a hostname if it resolves to a reachable interface
mac: auto # MAC will be resolved using ARP at runtime