Magic Mirror Module - A module for Magic Mirror that displays the connected clients to your router.
- Clone repository into
../modules/
inside your MagicMirror folder. - Run
npm install
inside theMMM-RouterClients
folder. - Add the module to the Magic Mirror config.
{
module: "MMM-RouterClients",
position: "top_left",
header: "Devices in the network",
config: {
provider: "asus",
protocol: "http",
username: "<username to login to router>",
password: "<password to login to router>"
}
}
- Done!
showClientNames
: If the name of the clients should be displayed or just a count, defaults to trueshowInterfaceName
: If the name of the interface should be displayed, defaults to trueshowProtected
: If an icon should be displayed to indicate if the network requires authentication, defaults to trueshowSSID
: If the SSID for the wireless networks should be displayed, defaults to truealertNewClients
: If new clients should result in a notification to the alert-module, defaults to truenewDuration
: How long should a device be treated as new in milliseconds, defaults to a full dayupdateInterval
: How often should the data be refreshed from the router in milliseconds, defaults to an hourpersistData
: If the data should be saved to a file, otherwise a restart of the mirror will treat all devices as new, defaults to falseprovider
: Which provider should be used, see possible providers below, required
The only provider for now, can connect via HTTP/HTTPS or via SSH.
HTTP is easier to setup (uses your standard username & password), but it logs you out from the web UI when it refreshes!
Only tested on a TUF-AX5400 with latest stock firmware for now.
host
: Where to connect to, probably should be www.asusrouter.com, requiredport
: Which port to connect to, probably should be 80 if using HTTP. requiredprotocol
: Should be any of these values: http, https, ssh. requiredusername
: The username to login with, requiredpassword
: The password to login with, required if using HTTP/HTTPS, but optional for SSHprivateKey
: If private key authentication should be used for SSH, the value of the key, optionalprivateKeyPath
: If private key authentication should be used for SSH, the path to the file that has the key, optional