yes, if the powerline AP acts as its own DHCP server, the router probably won't see those clients :) Although some powerline APs can be configured to connect to the router's DHCP, I think.
thank you 🤓☺️
Technically, it's a valid alternative solution, but I have found that ping doesn't work reliably enough: From time to time packets will be lost even though the client is connected.
Plus, I wanted a solution that doesn't actively scan for the devices connected, but rather uses a passive method...
yes, I am just more comfortable in BASH, so I am running it as my default on my router. I might make a POSIX compliant version in the future; right now I don't have the time 😅. But if anyone fancies it, feel free to transcribe and publish it :)
Thanks for trying it out :)
rung is correct: If you have installed bash via entware, the shebang #!/usr/bin/env bash
should, technically, point to the correct location. If not, run
find / -name bash
to find the correct location and put that in the shebang, for example...
thanks for the suggestion! I needed something that could work without having to communicate with the connected devices i. e. no apps running on our phones; that would have required active cooperation on my brother's part :)
This is a relatively simple bash script that turns off all lights when all members of a household have left and turns them back on again when one of them comes back.
Basically, it continually checks the list of clients currently connected to the router's WiFi network(s) for pre-defined IP...