This is a quick and dirty command line tool used to take output from the Wireless Network Watcher (WNW) app and send push notifications when unidentified devices are found on the local network.
Pushes are sent using the Pushover API.
WNW has an option to execute an arbitrary executable when a new device is found. Unfortunately, it fires this command too often for me. It seems to fire after a device has been offline for a while, and then comes back online. This was undesirable for me, as I specifically wanted to get pushes when a new device is detected, but not for ones I was already aware of.
To achieve this, I set the User Text for each device entry in WNW with a description of the device. When new devices come online, this field is not set. This command line utility checks to see if the User Text field is empty, and if it is, will then send a push notification.
I've tested this with Wireless Network Watcher v1.97.
- Build this project using Visual Studio 2015
- Place the binary
network-watcher-reporter.exe
andnetwork-watcher-reporter.exe.config
at your preferred location - Edit the configuration file to set your preferred log file path as well as Pushover API token/user.
- Open Wireless Network Watcher
- Go to Options → Advanced Options
- Set your network adapter and IP address range
- Enable Activate the beep/tray balloon alert only if the device is detected in the first time
- Set Background scan interval to your preferred time
- Enable Execute the following command when a new device is detected with the following command line, adjusting the path as necessary:
D:\network-watcher-reporter.exe "%device_name%" "%mac_addr%" "%user_text%" "%adapter_company%" "%ip_addr%"