Monitor Connected Devices to an ASUS Router Using Raspberry Pi

This article was published over 4 years ago. The information mentioned may be changed or developed.
本文发表于 4 years前。文中提到的信息可能已发生变化。
この記事は 4 years前に書かれたものです。記載された情報は変化した可能性があります。

Title should have explained it all. A simple Python script to monitor if a certain device has connected to the router via Wi-Fi, and send notifications accordingly. You can use this script for whatever purpose you want1I used it to monitor whether my parent has left home when I am “seemingly asleep”. , though probably you might not be able to find one like most of others.

To use this script, you need SSH access to the router, something in your LAN that is always running (in my case, a Raspberry Pi), and the list of MAC addresses to monitor. In this example, I am using an Asus RT-AC1200GU as the router. Other brand or make might need a different command.

First of all, SSH access of the router is needed to be enabled. In the router admin panel, go to Advanced SettingsAdministrationServiceEnable SSH, select Yes. Put your Raspberry Pi SSH public key into the Authorized Keys box. Then click Apply at the bottom.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *