• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

resolved.. MMM-NetworkScanner

Scheduled Pinned Locked Moved Utilities
20 Posts 6 Posters 3.7k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    tritran
    last edited by sdetweil May 8, 2020, 9:16 PM May 8, 2020, 8:11 PM

    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!

    Re: MMM-NetworkScanner No Devices

    M 1 Reply Last reply May 9, 2020, 2:03 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @tritran
      last edited by May 9, 2020, 2:03 PM

      @tritran

      Good catch! :thumbsup:

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        sonicgoose
        last edited by sonicgoose May 10, 2020, 5:05 PM May 10, 2020, 5:05 PM

        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.

        B 1 Reply Last reply May 11, 2020, 1:43 AM Reply Quote 0
        • B Offline
          bhepler Module Developer @sonicgoose
          last edited by bhepler May 11, 2020, 1:45 AM May 11, 2020, 1:43 AM

          @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?

          S 1 Reply Last reply May 11, 2020, 11:53 AM Reply Quote 0
          • S Offline
            sonicgoose @bhepler
            last edited by May 11, 2020, 11:53 AM

            @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.)

            1 Reply Last reply Reply Quote 0
            • D Offline
              DarrenHill
              last edited by DarrenHill May 11, 2020, 6:48 PM May 11, 2020, 6:47 PM

              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).

              S 1 Reply Last reply May 11, 2020, 10:09 PM Reply Quote 0
              • S Offline
                sonicgoose @DarrenHill
                last edited by May 11, 2020, 10:09 PM

                @DarrenHill

                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.

                S 1 Reply Last reply May 11, 2020, 10:54 PM Reply Quote 0
                • S Away
                  sdetweil @sonicgoose
                  last edited by May 11, 2020, 10:54 PM

                  @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

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply May 12, 2020, 12:28 PM Reply Quote 0
                  • S Offline
                    sonicgoose @sdetweil
                    last edited by May 12, 2020, 12:28 PM

                    @sdetweil Thanks. Github is to me about as intuitive as theoretical physics. How exactly do I go about that?

                    S 1 Reply Last reply May 12, 2020, 1:47 PM Reply Quote 0
                    • S Away
                      sdetweil @sonicgoose
                      last edited by May 12, 2020, 1:47 PM

                      @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 install

                      then restart your MM, and read the readme for the slametps copy of the repo for new features

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply May 12, 2020, 3:29 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        7/20
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy