Thanks, that makes sense, and indeed Chrome is happily remembering the setting too.
I wasn’t sure whether the zoom was being applied pre- or post-rendering. But your explanation makes sense, and the solution of doing it “manually” works fine.
Thanks, that makes sense, and indeed Chrome is happily remembering the setting too.
I wasn’t sure whether the zoom was being applied pre- or post-rendering. But your explanation makes sense, and the solution of doing it “manually” works fine.
My “mirror” is actually being used as a desktop display, running on a Pi-Top Ceed with a 14" display on it. Got it set up exactly as I want, using a config file zoom setting of 0.6. On the display it works perfectly.
Just now experimented with setting the mirror up as a server as well by tweaking the address and ipWhitelist, and whilst it’s also working I notice that it’s not taking the zoom config entry into account that way.
If I just connect to the mirror with Chrome on my PC everything is oversized and all the modules are covering each other. Changing the zoom in Chrome to either 50% or 67% makes it look fine (annoyingly Chrome can’t be set to 60%!).
Just thought I’d report it here anyway. Not a major issue at all, but for completeness towards making this excellent project perfect :grinning_face_with_smiling_eyes:
You’re welcome - glad it’s finally working for you :)
@sonicgoose - Note the (mis)spelling of the config parameter for columns - the config entry is “showDeviceColums”, not “showDeviceColumns”. It is missing an n, and needs it removed to work (or the script corrected for it).
See my config example above, which works. Yours is wrong as (ironically) it’s spelt correctly!
This one, from the repo linked above:
https://github.com/spitzlbergerj/MMM-NetworkScanner/blob/master/MMM-NetworkScanner.js
Personally I hate GitHub too, finding it about as straightforward as spaghetti. So I just copied that file and overwrote the one I had installed with it. Then it worked fine.
You can see where it’s been updated based around the comments starting “// sjj” that I mentioned before.
It sounds like the one you already have though. But that version is working for me with multiple rows and columns. This is the relevant part from my config.js (it works equally well with macAddress, I just prefer IP ones):
{
module: "MMM-NetworkScanner",
position: "bottom_right",
config: {
sort: false,
showUnknown: false,
showDeviceColums: true,
coloredState: true,
devices: [
{ ipAddress: "192.168.0.1", name: "Router", icon: "wifi", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.2", name: "Repeater", icon: "wifi", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.3", name: "NAS1", icon: "server", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.4", name: "NAS2", icon: "server", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.5", name: "LoungePi", icon: "tv", colorStateOnline: "green", colorStateOffline: "red", showInNewRow: true },
{ ipAddress: "192.168.0.6", name: "BedroomPi", icon: "tv", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.7", name: "RadioPi", icon: "music", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.8", name: "DockerPi", icon: "cubes", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.9", name: "Printer", icon: "print", colorStateOnline: "green", colorStateOffline: "red", showInNewRow: true },
{ ipAddress: "192.168.0.10", name: "VPNPi", icon: "lock", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.11", name: "PiHole", icon: "filter", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.12", name: "Hive Hub", icon: "plug", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.13", name: "ButtonPi", icon: "keyboard", colorStateOnline: "green", colorStateOffline: "red", showInNewRow: true },
{ ipAddress: "192.168.0.14", name: "Fingbox", icon: "hockey-puck", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.15", name: "Connect", icon: "broadcast-tower", colorStateOnline: "green", colorStateOffline: "red" },
{ ipAddress: "192.168.0.16", name: "Quatro", icon: "broadcast-tower", colorStateOnline: "green", colorStateOffline: "red" }
]
}
},
Double-check in the MMM-NetworkScanner.js file if you can find any comments with "sjj: " in them. If not then you have the original (ianperrin) version of the module, which doesn’t have the modifications in it such as the column mode.
Only the slametps fork has them, and that’s the version with the column view in it.
I hit this issue over the weekend and found that was the problem. Still not sure how I ended up with the wrong version, but I grabbed the correct script from the GitHub repo page and now it’s working fine (except it doesn’t work with my Apple devices as they don’t respond to pings).