Detects a device on the local wifi network and beeps if a device name is listed in the "AlertOnDeviceConnectedList.txt" file.
- Grabs the list of local devices' IP addresses from "arp -a" command in windows.
- Runs the IP addresses through python's
socket.getfqdn(...)
function to get the host name. - Lets out a little beep noise if a devices listed in the
AlertOnDeviceConnectedList.txt
is found. - Keeps track of connected devices, so only alerts if the device was recently connected.
I wanted to brush up on my python skills and found this idea on a youtube video.
- Make the code cross-platform.
- Allow configurable beeps/sounds for different devices in the list.
- Requires Python 3.9.
- Needs elevated permissions to clear arp cache.