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 help needed

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 8 Posters 14.7k Views 8 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.
    • pugslyP Offline
      pugsly
      last edited by

      The mac address scanner was working up until yesterday when a new version came out. If you look at your logs you can see it is doing MAC scanning. Mine keeps throwing an error saying the module ‘ping’ is missing.

      I don’t want to scan by IP address because I have some machines that I don’t have ping enabled.

      1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @cowboysdude
        last edited by

        @cowboysdude

        After I assigned static IP addresses via my FIOS router the scanner started working, somewhat. Then I rearranged my mirror, somewhat.

        0_1486855552533_IMG_1731edit.jpg 0_1486855587628_IMG_1732edit.jpg

        Create a working config
        How to add modules

        slametpsS 1 Reply Last reply Reply Quote 0
        • slametpsS Offline
          slametps @Mykle1
          last edited by

          @Mykle1 yap, mine is no longer working after updating the module :'( I think there is something wrong with the new module for MAC comparison. Hope the author fix this soon.

          regards,

          Slamet PS

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @slametps
            last edited by

            @slametps I think so too. I could not get it to work with MAC addresses. Assigning static IP addresses is the only way I could get it to work, and even that was not perfect, as it would not show my desktop as active , even with a static ip address

            Create a working config
            How to add modules

            slametpsS 1 Reply Last reply Reply Quote 0
            • pugslyP Offline
              pugsly
              last edited by

              Im sure because you have the firewall on, it won’t ping if thats the case. This is one of the reasons I want to do it by MAC address.

              1 Reply Last reply Reply Quote 0
              • slametpsS Offline
                slametps @Mykle1
                last edited by slametps

                @Mykle1 said in MMM-NetworkScanner help needed:

                @slametps I think so too. I could not get it to work with MAC addresses. Assigning static IP addresses is the only way I could get it to work, and even that was not perfect, as it would not show my desktop as active , even with a static ip address

                Unfortunately, mine was not working, neither MAC nor IP. :sob:
                While I tracing the execution through console log, the problem is in here:

                ...
                payload.forEach(function (item) {
                                var device = self.getDeviceByMacAddress(item); // device is null, although self.getDeviceByMacAddress() return not null. still no idea.
                                console.log("devices: " + device);
                                if (device) {
                                    device.online = true;
                                    device.lastSeen = moment();
                                    self.networkDevices.push(device);
                                }
                            });
                ...
                

                regards,

                Slamet PS

                1 Reply Last reply Reply Quote 0
                • I Offline
                  izanbard
                  last edited by

                  in this context self has no meaning - add var self = this; to the top of the function or replace self with this

                  slametpsS 1 Reply Last reply Reply Quote 0
                  • slametpsS Offline
                    slametps @izanbard
                    last edited by

                    @izanbard said in MMM-NetworkScanner help needed:

                    in this context self has no meaning - add var self = this; to the top of the function or replace self with this

                    self is already defined in the original complete code. the original author @ianperrin will take a look into the latest code (v0.0.2, I presume).
                    @Mykle1 : For now, I downloaded the previous version (tags v0.0.1 before the official bugs free the new version v0.0.2 fixed/released), and work like a charm.

                    git clone --tags v0.0.1 https://github.com/ianperrin/MMM-NetworkScanner.git
                    

                    regards,

                    Slamet PS

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @slametps
                      last edited by

                      @slametps said in MMM-NetworkScanner help needed:

                      @Mykle1 : For now, I downloaded the previous version (tags v0.0.1 before the official bugs free the new version v0.0.2 fixed/released), and work like a charm.

                      Very good. :thumbsup:

                      Create a working config
                      How to add modules

                      slametpsS 1 Reply Last reply Reply Quote 0
                      • slametpsS Offline
                        slametps @Mykle1
                        last edited by

                        @Mykle1 said in MMM-NetworkScanner help needed:

                        @slametps said in MMM-NetworkScanner help needed:

                        @Mykle1 : For now, I downloaded the previous version (tags v0.0.1 before the official bugs free the new version v0.0.2 fixed/released), and work like a charm.

                        Very good. :thumbsup:

                        I just fresh cloned the (new) latest version (rather than update/git pull), it is working flawlessly now. Thx to @ianperrin.

                        regards,

                        Slamet PS

                        1 Reply Last reply Reply Quote 0
                        • FlatPepsiF Offline
                          FlatPepsi
                          last edited by

                          And easy question I hope you guys can help with – is this module active or passive?

                          For example, if I take my magic mirror to work to show it off, will this module activly send out network traffic to the network and trigger security alerts (getting me in big trouble)?

                          I’m hoping the answer is that it only looks for IP and Mac addresses listed in the configuration.

                          slametpsS 1 Reply Last reply Reply Quote 0
                          • slametpsS Offline
                            slametps @FlatPepsi
                            last edited by

                            @FlatPepsi it is active since arp-scan will executed every updateInterval setting. Of course, it will trigger such a security alert if violate the security policy of your office. No, arp-scan will scan all available devices in the network.

                            regards,

                            Slamet PS

                            1 Reply Last reply Reply Quote 1
                            • 3 Offline
                              35110 @slametps
                              last edited by

                              @slametps said in MMM-NetworkScanner help needed:

                              @Mykle1 try to execute the following in shell:

                              arp-scan -l -q
                              

                              Compare all the scanned MAC with your MAC device entries in MMM-NetworkScanner.

                              I have run the command sudo arp-scan -l -q and somehow find only devices that are in the LAN, but no device what is in the WIFI - so unfortunately no mobile. My MM always shows me only “NO DEVICE ONLINE”.

                              I proceeded as follows:

                              cd ~ /
                              sudo apt-get install arp-scan

                              cd ~ / MagicMirror / modules
                              git clone https://github.com/ianperrin/MMM-NetworkScanner.git
                              cd ~ / MagicMirror / modules / MMM-NetworkScanner
                              npm install

                              cd ~ / MagicMirror / config
                              nano config.js

                                            {
                                                      module: "MMM-NetworkScanner",
                                                      position: "bottom_right",
                                                      config: {
                                                              device: [
                                                                      { macAddress: "XX:XX:XX:XX:XX:XX", name: "I", icon: "mobile"},
                                                              ],
                                                      showUnknown: true,
                                                      }
                                              },
                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                epi
                                last edited by

                                In my case, all the devices on LAN and 2.4 networks are found, while 5ghz network is not seen even through sudo arp-scan -l -q

                                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
                                • 1 / 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