Read the statement by Michael Teeuw here.
resolved.. MMM-NetworkScanner
-
Hi all - just wanted to update. I was re-reading the forum, and saw that someone had erroneously typed “device” instead of “devices” in the config file. That was my error too!
-
Good catch! :thumbsup:
-
So I’ve wanted this module to work for a long time. I’ve just installed the version from spitzlbergerj, which looks like it offers a compact display for devices—and considering I have almost 60 on my network, compact is what I need. However, all I keep getting is a list, in relatively large font, that takes up the whole depth of my MM screen. Here’s my config:
{ disabled: false, module: 'MMM-NetworkScanner', header: 'Network', position: 'bottom_center', config: { devices: [ { macAddress: "7c:d1:c3:31:33:b7", name: "Apple,", icon: "mobile" }, { macAddress: "68:64:4b:41:e7:19", name: "Apple,", icon: "mobile" }, { macAddress: "68:5b:35:b5:78:d6", name: "Apple,", icon: "mobile" }, { macAddress: "00:05:cd:21:3a:bb", name: "D&M", icon: "mobile" }, { macAddress: "00:23:12:54:d4:b4", name: "Apple,", icon: "mobile", showInNewRow: true }, { macAddress: "00:17:f2:10:08:7b", name: "Apple,", icon: "mobile" }, { macAddress: "c8:e0:eb:59:e4:b3", name: "Apple,", icon: "mobile" }, { macAddress: "68:5b:35:7a:94:14", name: "Apple,", icon: "mobile" }, { macAddress: "a8:bb:cf:15:03:32", name: "Apple,", icon: "mobile" }, { macAddress: "00:1c:26:3e:b0:88", name: "Hon", icon: "mobile" }, { macAddress: "b8:27:eb:33:61:38", name: "PiAware South", icon: "raspberry-pi" }, { macAddress: "b8:27:eb:21:5d:13", name: "PiAware West", icon: "raspberry-pi" }, { macAddress: "98:90:96:ae:95:cb", name: "Dell", icon: "mobile" }, { macAddress: "b8:27:eb:85:59:61", name: "ProximityPi", icon: "raspberry-pi" }, { macAddress: "80:c5:f2:0d:b4:25", name: "AzureWave", icon: "mobile" }, { macAddress: "b8:27:eb:cc:e8:26", name: "PortaPi E", icon: "raspberry-pi" }, { macAddress: "b8:27:eb:99:bd:73", name: "PortaPi W", icon: "raspberry-pi" }, { macAddress: "70:bc:10:94:cc:fb", name: "Microsoft", icon: "mobile" }, { macAddress: "70:bc:10:94:cc:fb", name: "Microsoft", icon: "mobile" }, { macAddress: "d4:f5:47:96:3f:8e", name: "Google,", icon: "mobile" }, { macAddress: "44:07:0b:32:4f:c7", name: "Google,", icon: "mobile" }, { macAddress: "7c:d9:5c:22:4b:4d", name: "Google,", icon: "mobile" }, { macAddress: "7c:70:bc:57:16:67", name: "IEEE", icon: "mobile" }, { macAddress: "c0:4a:00:f3:4c:a4", name: "TP-LINK", icon: "mobile" }, { macAddress: "00:22:41:8a:22:d0", name: "Apple,", icon: "mobile" }, { macAddress: "b8:27:eb:87:f7:fb", name: "Optiplex", icon: "mobile" }, { macAddress: "B8:27:EB:30:F5:10", name: "MagicMirror2", icon: "raspberry-pi" }, ], sort: true, showUnknown: false, showDeviceColumns: true, }, },
I’m stumped why this doesn’t work properly.
Also, the included arps2mm.sh for generating the list of devices doesn’t work properly. It duplicates some devices and ignores others.
-
@sonicgoose - I’m curious: why do you have commas inside the names of some of your devices? It looks like every Apple device is labeled “Apple,” with the comma inside. Same for the Google devices.
Also, could you expand on “doesn’t work properly”? What is it doing that you do not want? What is it not doing that you do want?
-
@bhepler The commas inside the quotes are a find and replace issue, easily fixed. The main problem is that this module says it offers different displays: list, columns, or columns with new lines—but all I get is the list. What I want is the columns with new lines, as shown on the module’s GitHub page (see link in first post.)
-
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).
-
git remote -v
shows
origin https://github.com/spitzlbergerj/MMM-NetworkScanner.git (fetch) origin https://github.com/spitzlbergerj/MMM-NetworkScanner.git (push)
but as you suggested I did find “sjj:” in some comments. Do you have a link to the fork that works for you? slametps doesn’t come up with anything on GitHub.
-
@sonicgoose its HIS fork and HIS special branch … so you have to clone HIS repo, then switch to the special branch that has the code
-
@sdetweil Thanks. Github is to me about as intuitive as theoretical physics. How exactly do I go about that?
-
@sonicgoose so, he said
Only the slametps fork has them, and that’s the version with the column view in it.
that means the USER slametps has a copy (fork) of the original repo, and this fork has the changes
SO…
go to github and find the user slametps, (there is a search box) or google search ‘slametps github’, find his list of repos (push the repositories link), and scroll til you find it, or put ‘network’ (some part of the repo name) in the ‘find a repository’ field and hit enter
click on the repo name, click on clone or download, click on the clipboard (to copy the url to use in clone)
go to your system ~/MagicMirror/modules folder (in a terminal window)
rename your old MMM-NetworkScanner folder out of the way (to some other name, ANY other name)
then
git clone (paste the link from the clipboard)
cd MMM-NetworkScanner
it has a package.json, that means u need to do
npm installthen restart your MM, and read the readme for the slametps copy of the repo for new features