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 4.9k 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.
    • S Offline
      sonicgoose @DarrenHill
      last edited by

      @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 Reply Quote 0
      • S Offline
        sdetweil @sonicgoose
        last edited by

        @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 Reply Quote 0
        • S Offline
          sonicgoose @sdetweil
          last edited by

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

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sonicgoose
            last edited by

            @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 Reply Quote 0
            • S Offline
              sonicgoose @sdetweil
              last edited by

              @sdetweil said in resolved.. MMM-NetworkScanner:

              slametps

              I’ve removed the version I had and installed the repo found here, which has outdated instructions telling me to install the ianperrin version. (I didn’t.) After restarting MM on my RPi, I know get just a list of mac addresses as I entered them in the config where I was getting at least a list of device names and icons. I’m getting really frustrated with this. Maybe time to take a break from it…

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @sonicgoose
                last edited by sdetweil

                @sonicgoose i looked at his code, and it doesn’t look different…

                I don’t know anything about the module

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sonicgoose @sdetweil
                  last edited by

                  @sdetweil Thanks. I appreciate the help and that you took the time to look at the code. I wish I knew more about how this stuff works. I’m learning, but I’m also getting frustrated. I’ll revisit this another time.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarrenHill
                    last edited by DarrenHill

                    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" }
                    				]
                    			}
                    		},
                    
                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sonicgoose
                      last edited by

                      I’ve done a complete reinstall of MagicMirror, all the modules I had, from scratch, and this one still produces only a list, not nice columns and rows of icons. I’ve officially given up.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @sonicgoose
                        last edited by

                        @sonicgoose that source file documents a new config parm

                        showDeviceColums

                        which is false by default
                        add and set to true

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          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