mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Make [notifications.pushover] optional for non-pushover methods
The pushover config section is now only required when notifications.method is "pushover". Validation at startup rejects the missing-section case so a misconfiguration fails fast instead of erroring on every notification. Updates the sample TOML, README and nix module for consistency. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
6c4f8c22bb
commit
be2a8fce58
@@ -39,6 +39,8 @@ enabled=true # Set to false to disable the DHCP scanner
|
||||
method="pushover" # For now just pushover, you can set this to "none" to avoid sending notifications (it will just log)
|
||||
notify_when_not_seen_for="1w" # Send a notification if a device comes back online after not being seen for this timeframe. Defaults to "1w" if omitted
|
||||
|
||||
# The [notifications.pushover] section is only required when method="pushover". For any other
|
||||
# method (e.g. "none") you can omit this whole section.
|
||||
[notifications.pushover]
|
||||
token="" # Your pushover token goes here, just copy&paste from their website after creating the app
|
||||
user_key="" # User key goes here, this is the account wide code for pushover
|
||||
|
||||
Reference in New Issue
Block a user