essaidi.me
Bring projects, writing, and tools together in a site that is easy to navigate, while preserving content and links from the previous portfolio.
Loading
A local network tool that uses Selenium to interact with a TP-Link router when no API is available.
Local network workflow
MAM — MAC address managementRouter
TP-Link admin interface
Automation
Selenium WebDriver
Inventory
Django · SQLite
In this case study
I built MAM to solve a problem with my former IAM-provided TP-Link ADSL router. Checking connected devices meant opening its web interface and entering credentials each time. The router had no API for this workflow, so I built a Django interface backed by Selenium to automate access and keep a local device inventory.
Make the connected-device information shown by my router accessible without repeating the same manual login and navigation. I wanted to retrieve device addresses and make router interactions programmable through the interface that was available.
Selenium signs in to the router's admin interface to retrieve its connected-device list, including MAC and IP addresses, and support programmable router interactions. Django presents the device list and lets the user save MAC addresses, device types, and descriptions in SQLite, including records for devices that are no longer connected.
Automate the available interface. Selenium provides a way to interact with router controls when there is no API. The tradeoff is dependence on the router's pages and firmware version.
Read from the router. Its device list was the information source I needed, rather than relying only on what a separate network scan could discover. This does not make every router table perfectly current or complete.
Keep router management on the home network. I ran MAM on my local home server. I considered hosting it on EC2 but chose not to implement that approach because making router management reachable from the cloud introduced a risk I was not comfortable taking.
Preserve device context. Saving MAC addresses with a type and description makes the inventory useful even when a device disconnects.
Django provides the application interface, styled with Tailwind CSS and Crispy Tailwind. Selenium connects to the router's web administration pages. SQLite keeps the saved device inventory separate from the current connected-device list.
Users can see currently connected devices, save them to a local inventory, and review both connected and previously recorded MAC addresses with their device information.
The integration supports specific TP-Link router versions, not every router model. Browser automation depends on the structure of the admin interface, so firmware or page changes may require adjustments. MAM ran on my local home server, with access to the router inside the LAN. I did not deploy or test it on EC2 or another cloud host. Cloud access remained an idea I chose not to pursue because of the router-management exposure it could introduce.
While exploring my own router, I discovered an FTP service and used it to investigate its configuration. I was able to change the router username, an option its web interface did not expose. That exploration showed me that the web interface exposed only part of the device's configuration surface. It was separate from MAM's Selenium-based workflow.
Bring projects, writing, and tools together in a site that is easy to navigate, while preserving content and links from the previous portfolio.
Make it easy to find Steam games, keep a personal shortlist, and see which titles are on sale. The goal was a small browser-based tool, without an account system or integration with a user's Steam wishlist.
Collect electrical readings from an ESP32 at home and turn them into useful charts, date-range statistics, and consumption-based cost estimates without paying for additional infrastructure.