diff --git a/TODO.md b/TODO.md index bb32fd4..6c8e436 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,7 @@ - [x] Improve notifications layout/text - [ ] Implement the pushover API call directly to support HTML content and review notification text to use it - [x] Add SSDP/uPNP scanner - - [ ] Make sure the new config options are in the TOML files and Nix module + - [x] Make sure the new config options are in the TOML files and Nix module - [ ] Document in README.md the port needs/bindings - [ ] Add DHCP scanner diff --git a/examples/sample_oott.toml b/examples/sample_oott.toml index e439b2d..624f129 100644 --- a/examples/sample_oott.toml +++ b/examples/sample_oott.toml @@ -15,6 +15,9 @@ scan_duration="10m" # How long to wait for response packets on each scan (5m to [mdns_scanner] probe_timeout="2s" # When an mDNS-discovered IP is not in the OS ARP cache, how long to wait for a targeted ARP probe reply to resolve its MAC address +[ssdp_scanner] +probe_timeout="2s" # When an SSDP/UPnP-discovered IP is not in the OS ARP cache, how long to wait for a targeted ARP probe reply to resolve its MAC address + [notifications] 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 diff --git a/nix/modules/oott-service.nix b/nix/modules/oott-service.nix index 0c53b1e..3956201 100644 --- a/nix/modules/oott-service.nix +++ b/nix/modules/oott-service.nix @@ -51,6 +51,11 @@ in { description = "When an mDNS-discovered IP is not in the OS ARP cache, how long to wait for a targeted ARP probe reply to resolve its MAC address."; default = "2s"; }; + ssdp_scanner.probe_timeout = mkOption { + type = types.str; + description = "When an SSDP/UPnP-discovered IP is not in the OS ARP cache, how long to wait for a targeted ARP probe reply to resolve its MAC address."; + default = "2s"; + }; notifications.method = mkOption { type = types.str; description = "For now just pushover, you can set this to none to avoid sending notifications (it will just log).";