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.

    MMM-NetworkScanner-loading...indefinitely

    Scheduled Pinned Locked Moved Solved Troubleshooting
    54 Posts 6 Posters 18.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.
    • S Offline
      sdetweil @jthirasilpa
      last edited by

      @jthirasilpa ok, after looking thru the code, I dont see the mac addresses in the modulename.js…

      so, can u open a terminal window on the pi and do

      sudo arp-scan -l 
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jthirasilpa @sdetweil
        last edited by

        @sdetweil Here is the scan result:

        Interface: enp1s0, datalink type: EN10MB (Ethernet)
        Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/                                                                                                 )
        192.168.1.1     f4:f2:6d:9f:72:89       TP-LINK TECHNOLOGIES CO.,LTD.
        192.168.1.15    c0:3f:d5:65:06:6f       Elitegroup Computer Systems Co.,Ltd.
        192.168.1.50    e0:2f:6d:62:b6:d5       Cisco Systems, Inc
        192.168.1.52    00:15:65:70:6b:f9       XIAMEN YEALINK NETWORK TECHNOLOGY CO.,LT                                                                                                 D
        192.168.1.53    00:15:65:bb:a0:8d       XIAMEN YEALINK NETWORK TECHNOLOGY CO.,LT                                                                                                 D
        192.168.1.101   7c:2f:80:6e:56:ff       Gigaset Communications GmbH
        192.168.1.103   78:3e:53:40:9b:97       BSkyB Ltd
        192.168.1.105   d8:cb:8a:71:a5:f5       Micro-Star INTL CO., LTD.
        192.168.1.108   08:05:81:f5:8c:2e       Roku, Inc.
        192.168.1.109   10:62:e5:ac:b9:f7       Hewlett Packard
        192.168.1.111   f0:1d:bc:8e:da:fa       Microsoft Corporation
        
        13 packets received by filter, 0 packets dropped by kernel
        Ending arp-scan 1.9: 256 hosts scanned in 4.391 seconds (58.30 hosts/sec). 11 re                                                                                                 sponded
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @jthirasilpa
          last edited by sdetweil

          @jthirasilpa change showUnknown: to true in config.js…

          ip addresses 11, 17, and 70 are not known according to the arp scan

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            jthirasilpa
            last edited by jthirasilpa

            Hi Sam - they were not at the time of the scan, but they have been picked up in console messages previously. For example:

            Shouldn’t that then show up on the Mirror?

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

              @jthirasilpa not my module. Trying to help

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jthirasilpa @sdetweil
                last edited by

                @sdetweil Hi Sam - I appreciate your assistance. I am actually asking that question legitimately out of ignorance. I assume that if it appears in the console as follows:

                Object { ipAddress: “192.168.1.11”, name: “Champagne”, icon: “server”, color: “#ffffff”, showOffline: true, online: true }
                

                then it would be show up in the Mirror, but maybe there are several steps in between…

                In any case - thanks for your help.

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

                  @jthirasilpa it matches the IP address with the scanned Mac addresses.
                  If not in the Mac addresses it is not shown.

                  In debug mode I get a big blast of the Mac address info displayed every time there is a scan

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 2 Replies Last reply Reply Quote 0
                  • J Offline
                    jthirasilpa @sdetweil
                    last edited by

                    @sdetweil OK - do not have access to machine now, but will have a look later. Thanks.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jthirasilpa @sdetweil
                      last edited by

                      @sdetweil
                      This is one of the devices from the config.js

                      { ipAddress: "192.168.1.11", name: "Champagne", icon: "server"}
                      
                      MMM-NetworkScanner received a notification: IP_ADDRESS 
                      Object { ipAddress: "192.168.1.11", name: "Champagne", icon: "server", color: "#ffffff", showOffline: true, online: true }
                      

                      This is from the console:

                      MMM-NetworkScanner.js:70:30
                      MMM-NetworkScanner IP_ADDRESS device:  
                      Array [ "Champagne", true ]
                      MMM-NetworkScanner.js:80:31
                      MMM-NetworkScanner is updating device status. 
                      Array [ "Champagne", true ]
                      MMM-NetworkScanner.js:284:31
                      MMM-NetworkScanner Champagne is online
                      

                      Strangely when I run sudo arp -scan -l, this device doesn’t appear. But doesn’t the information from the console suggest that it should be displayed?

                      Conversely, the arp scan does find 192.168.1.15, but console displays this:

                      MMM-NetworkScanner received a notification: IP_ADDRESS 
                      Object { ipAddress: "192.168.1.15", name: "Millie", icon: "server", color: "#ffffff", showOffline: true, online: false }
                      MMM-NetworkScanner.js:70:30
                      MMM-NetworkScanner IP_ADDRESS device:  
                      Array [ "Millie", false ]
                      MMM-NetworkScanner.js:80:31
                      MMM-NetworkScanner is updating device status. 
                      Array [ "Millie", false ]
                      

                      I would think that one of these would be displayed on the MM.

                      Any further thoughts? Thanks.

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

                        @jthirasilpa are those wireless? The arp scan only did Ethernet connected devices

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jthirasilpa
                          last edited by jthirasilpa

                          Those devices are ethernet connected. Also, I was just checking the logs and there are a lot of ip addresses and:

                          0|mm       | [20:52:38.389] [LOG]    MMM-NetworkScanner is performing arp-scan
                          0|mm       | [20:52:38.419] [LOG]    MMM-NetworkScanner is performing ip address scan
                          

                          but no MAC addresses - which you seem to have in your logs.

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jthirasilpa
                            last edited by

                            After a complete reinstall of MM, I finally managed to resolve this. After reinstalling the original NetworkScanner module and using macaddresses to add to the config.js, I kept getting the “sudo requires your password” message. I went through node_helper.js and the only command that appears to require sudo is arp-scan. So I amended sudoers to allow sudo arp-scan without password using:

                            sudo visudo
                            

                            and then adding:

                             # Allow arp-scan without sudo
                            username ALL=(ALL) NOPASSWD: /usr/sbin/arp-scan
                            

                            This allows sudo arp-scan to run without a password, while maintaining password requirements for other sudo commands.

                            Many thanks to Sam et. al. for input on this issue.

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

                              @jthirasilpa cool. Thx for the update. Using the updated file w password support should have allowed without sudoers

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                Hello,
                                i want to use this Module, but i’ve a iphone that is after some time offline when the screen is off. I have a perl script that check into my fritzbox (router) if the iphone connected to the fritzbox.

                                how can i add the perl script to mmm-networkscanner?

                                var arp = sudo([‘arp-scan’, ‘-q’, arpHosts]);

                                like var arp = sudo([‘perlscript.pl’]); ??

                                Thanks!!

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1
                                • 2
                                • 3
                                • 3 / 3
                                • 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