Screen.Recording.2023-08-20.at.8.46.33.PM.mov
This is a script that will toggle Wi-Fi Mac Filtering on and off randomly for one lucky person :D on a Huawei HG8145V5 using Puppeteer.
If you've ever had a housemate who blasts music at 3am, you'll understand.
The script will log into the router, and then toggle the Wi-Fi Mac Filtering on and off randomly. It will then wait for a random amount of time before doing it again.
Modify the .env file appropriately.
ROUTER_ADDRESS, ROUTER_USERNAME and ROUTER_PASSWORD are self explanatory.
Take note also of the SSID Port ID which could be SSID-1, SSID-2 or SSID-5 from my testing.
I have included 3 devices in the .env file which are TEST, MYDEVICE and NAUGHTYBOI for quick testing.
Modify the MAC addresses in .env file to match the devices you want to control. Then run the script with ENV variables for DEVICE and DURATION.
You may modify the REPEAT_COUNT in the .env file to change the number of times the script will toggle the Wi-Fi Mac Filtering on and off.
yarn install
DEVICE=naughtyboi DURATION=long node index.js