MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. jthirasilpa
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 29
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-NetworkScanner-loading...indefinitely

      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.

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      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.

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

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

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

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

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

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

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      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?

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @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
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      Hi Sam - yes - changed to top_left. Still “Loading…” If I go into the developers console, and search in the text field for “error” it only brings up the following (although the top of the console indicates that there are 3 errors)

      loader.js:203 Error on loading stylesheet: css/custom.css
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      This is what is showing in the console…

      ‘’’
      Load script: modules/MMM-NetworkScanner//MMM-NetworkScanner.js loader.js:179:8
      Module registered: MMM-NetworkScanner module.js:476:6
      Bootstrapping module: MMM-NetworkScanner loader.js:150:7
      Scripts loaded for: MMM-NetworkScanner loader.js:155:8
      Load stylesheet: modules/MMM-NetworkScanner/MMM-NetworkScanner.css loader.js:194:8
      Styles loaded for: MMM-NetworkScanner loader.js:157:9
      Translations loaded for: MMM-NetworkScanner loader.js:159:10
      Starting module: MMM-NetworkScanner MMM-NetworkScanner.js:37:7
      MMM-NetworkScanner config:
      Object { devices: (4) […], network: “-l”, showUnknown: false, showOffline: true, showLastSeen: true, keepAlive: 600, updateInterval: 30, sort: true, residents: [], occupiedCMD: null, … }
      MMM-NetworkScanner.js:38:30
      MMM-NetworkScanner is initiating network scan MMM-NetworkScanner.js:273:30
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.11”, name: “Champagne”, icon: “server”, color: “#ffffff”, showOffline: true, online: true }
      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 MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.17”, name: “Marmite”, icon: “server”, color: “#ffffff”, showOffline: true, online: false }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner Marmite is offline MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.70”, name: “JoJo”, icon: “male”, color: “#ffffff”, showOffline: true, online: false }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner JoJo is offline MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.11”, name: “Champagne”, icon: “server”, color: “#ffffff”, showOffline: true, online: true }
      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 MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.17”, name: “Marmite”, icon: “server”, color: “#ffffff”, showOffline: true, online: false }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner Marmite is offline MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      {…}
      ​
      color: “#ffffff”
      ​
      icon: “male”
      ​
      ipAddress: “192.168.1.70”
      ​
      name: “JoJo”
      ​
      online: false
      ​
      showOffline: true
      ​
      : Object { … }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner JoJo is offline MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.11”, name: “Champagne”, icon: “server”, color: “#ffffff”, showOffline: true, online: true }
      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 MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.17”, name: “Marmite”, icon: “server”, color: “#ffffff”, showOffline: true, online: false }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “Marmite”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner Marmite is offline MMM-NetworkScanner.js:295:31
      MMM-NetworkScanner received a notification: IP_ADDRESS
      Object { ipAddress: “192.168.1.70”, name: “JoJo”, icon: “male”, color: “#ffffff”, showOffline: true, online: false }
      MMM-NetworkScanner.js:70:30
      MMM-NetworkScanner IP_ADDRESS device:
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:80:31
      MMM-NetworkScanner is updating device status.
      Array [ “JoJo”, false ]
      MMM-NetworkScanner.js:284:31
      MMM-NetworkScanner JoJo is offline MMM-NetworkScanner.js:295:31
      ‘’’

      ​

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      Hi Sam - yes it is already installed.

      I treid the steps posted by todro (a couple of times).

      Here is log output, but MM still shows Devices Online “Loading…”:

      [19:46:01.569] [LOG]    Use existing news fetcher for url: http://rss.cnn.com/rss/edition.rss
      [19:46:01.623] [LOG]    MMM-NetworkScanner received CONFIG
      [19:46:01.623] [LOG]    MMM-NetworkScanner completed CONFIG
      [19:46:01.625] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:46:01.625] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:46:01.645] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:46:01.646] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:46:01.646] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:46:01.656] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:46:01.657] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:46:01.657] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:46:01.671] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:46:01.672] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:46:01.681] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [19:46:01.838] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:46:03.674] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:46:03.685] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:46:30.817] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:46:30.818] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:46:30.840] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:46:30.841] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:46:30.842] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:46:30.853] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:46:30.855] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:46:30.856] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:46:30.872] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:46:30.873] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:46:30.882] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [19:46:30.895] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:46:32.875] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:46:32.901] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:47:10.155] [LOG]    [SIGINT] Received. Shutting down server...
      [19:47:10.156] [LOG]    Stopping module helper: updatenotification
      [19:47:10.156] [LOG]    Stopping module helper: newsfeed
      [19:47:10.156] [LOG]    Stopping module helper: MMM-UKNationalRail
      [19:47:10.157] [LOG]    Stopping module helper: MMM-NetworkScanner
      [19:47:20.881] [LOG]    Starting MagicMirror: v2.10.1
      [19:47:20.890] [LOG]    Loading config ...
      [19:47:20.895] [LOG]    Loading module helpers ...
      [19:47:20.896] [LOG]    No helper found for module: alert.
      [19:47:20.930] [LOG]    Initializing new module helper ...
      [19:47:20.931] [LOG]    Module helper loaded: updatenotification
      [19:47:20.932] [LOG]    No helper found for module: clock.
      [19:47:20.932] [LOG]    No helper found for module: currentweather.
      [19:47:21.243] [LOG]    Initializing new module helper ...
      [19:47:21.243] [LOG]    Module helper loaded: newsfeed
      [19:47:21.526] [LOG]    Initializing new module helper ...
      [19:47:21.526] [LOG]    Module helper loaded: MMM-UKNationalRail
      [19:47:21.526] [LOG]    No helper found for module: MMM-TFL.
      [19:47:21.555] [LOG]    Initializing new module helper ...
      [19:47:21.555] [LOG]    Module helper loaded: MMM-NetworkScanner
      [19:47:21.556] [LOG]    All module helpers loaded.
      [19:47:21.556] [LOG]    Starting server on port 8080 ...
      [19:47:21.562] [INFO]   You're using a full whitelist configuration to allow for all IPs
      [19:47:21.569] [LOG]    Server started ...
      [19:47:21.570] [LOG]    Connecting socket for: updatenotification
      [19:47:21.571] [LOG]    Connecting socket for: newsfeed
      [19:47:21.571] [LOG]    Starting module: newsfeed
      [19:47:21.572] [LOG]    Connecting socket for: MMM-UKNationalRail
      [19:47:21.572] [LOG]    MMM-UKNationalRail helper started ...
      [19:47:21.572] [LOG]    Connecting socket for: MMM-NetworkScanner
      [19:47:21.573] [LOG]    Starting module in node_helper: MMM-NetworkScanner
      [19:47:21.573] [LOG]    Sockets connected & modules started ...
      [19:47:21.573] [LOG]
      Ready to go! Please point your browser to: http://0.0.0.0:8080
      [19:47:30.001] [LOG]    Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      [19:47:30.035] [LOG]    Create new news fetcher for url: http://rss.cnn.com/rss/edition.rss - Interval: 300000
      [19:47:30.459] [LOG]    MMM-NetworkScanner received CONFIG
      [19:47:30.460] [LOG]    MMM-NetworkScanner completed CONFIG
      [19:47:30.473] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:47:30.473] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:47:30.501] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:47:30.502] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:47:30.503] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:47:30.515] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:47:30.515] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:47:30.516] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:47:30.532] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:47:30.533] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:47:30.544] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      sudo requires your password: [19:47:30.558] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:47:32.535] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:47:32.547] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:47:59.468] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:47:59.469] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:47:59.489] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:47:59.492] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:47:59.494] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:47:59.504] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:47:59.505] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:47:59.506] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:47:59.514] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:47:59.514] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:47:59.522] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [19:47:59.525] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:48:01.516] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:48:01.529] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:48:26.714] [LOG]    [SIGINT] Received. Shutting down server...
      [19:48:26.715] [LOG]    Stopping module helper: updatenotification
      [19:48:26.716] [LOG]    Stopping module helper: newsfeed
      [19:48:26.716] [LOG]    Stopping module helper: MMM-UKNationalRail
      [19:48:26.716] [LOG]    Stopping module helper: MMM-NetworkScanner
      [19:48:33.169] [LOG]    Starting MagicMirror: v2.10.1
      [19:48:33.179] [LOG]    Loading config ...
      [19:48:33.183] [LOG]    Loading module helpers ...
      [19:48:33.185] [LOG]    No helper found for module: alert.
      [19:48:33.220] [LOG]    Initializing new module helper ...
      [19:48:33.221] [LOG]    Module helper loaded: updatenotification
      [19:48:33.221] [LOG]    No helper found for module: clock.
      [19:48:33.222] [LOG]    No helper found for module: currentweather.
      [19:48:33.526] [LOG]    Initializing new module helper ...
      [19:48:33.527] [LOG]    Module helper loaded: newsfeed
      [19:48:33.809] [LOG]    Initializing new module helper ...
      [19:48:33.810] [LOG]    Module helper loaded: MMM-UKNationalRail
      [19:48:33.810] [LOG]    No helper found for module: MMM-TFL.
      [19:48:33.840] [LOG]    Initializing new module helper ...
      [19:48:33.840] [LOG]    Module helper loaded: MMM-NetworkScanner
      [19:48:33.840] [LOG]    All module helpers loaded.
      [19:48:33.841] [LOG]    Starting server on port 8080 ...
      [19:48:33.847] [INFO]   You're using a full whitelist configuration to allow for all IPs
      [19:48:33.854] [LOG]    Server started ...
      [19:48:33.855] [LOG]    Connecting socket for: updatenotification
      [19:48:33.855] [LOG]    Connecting socket for: newsfeed
      [19:48:33.856] [LOG]    Starting module: newsfeed
      [19:48:33.856] [LOG]    Connecting socket for: MMM-UKNationalRail
      [19:48:33.857] [LOG]    MMM-UKNationalRail helper started ...
      [19:48:33.857] [LOG]    Connecting socket for: MMM-NetworkScanner
      [19:48:33.857] [LOG]    Starting module in node_helper: MMM-NetworkScanner
      [19:48:33.858] [LOG]    Sockets connected & modules started ...
      [19:48:33.858] [LOG]
      Ready to go! Please point your browser to: http://0.0.0.0:8080
      [19:48:47.214] [LOG]    Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      [19:48:47.247] [LOG]    Create new news fetcher for url: http://rss.cnn.com/rss/edition.rss - Interval: 300000
      [19:48:47.312] [LOG]    MMM-NetworkScanner received CONFIG
      [19:48:47.313] [LOG]    MMM-NetworkScanner completed CONFIG
      [19:48:47.314] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:48:47.315] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:48:47.341] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:48:47.342] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:48:47.342] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:48:47.353] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:48:47.353] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:48:47.354] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:48:47.363] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:48:47.364] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:48:47.372] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      sudo requires your password: [19:48:47.686] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:48:49.367] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:48:49.381] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:49:16.634] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:49:16.635] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:49:16.657] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:49:16.658] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:49:16.658] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:49:16.669] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:49:16.669] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:49:16.670] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:49:16.679] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:49:16.681] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:49:16.690] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [19:49:16.702] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [19:49:18.693] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [19:49:18.695] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [19:49:46.639] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [19:49:46.640] [LOG]    MMM-NetworkScanner is performing arp-scan
      [19:49:46.670] [LOG]    MMM-NetworkScanner is performing ip address scan
      [19:49:46.670] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [19:49:46.670] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [19:49:46.680] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [19:49:46.681] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [19:49:46.681] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [19:49:46.703] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [19:49:46.705] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [19:49:46.716] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [19:49:46.740] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      Thanks - I did change the config to add one device “JoJo” with an IpAddress and I changed “Millie” from IpAddress to MacAddress (I am guessing that is why it is not showing in the ping result - but am not sure). I did not make any other changes to the config (apart from adding the debug line). There is no other bottom_center module and it clearly displays Devices Online “Loading…”, so I don’t think it’s the case that entries are being pushed off the page.

       {
      139                         module:                 "MMM-NetworkScanner",
      140                         position:               "bottom_center",
      141                         header:                 "Devices Online",
      142                         config: {
      143                                 devices: [
      144                                 { ipAddress: "192.168.1.11", name: "Champagne", icon: "server"},
      145                                 { macAddress: "xxxx", name: "Millie", icon: "server"},
      146                                 { ipAddress: "192.168.1.17", name:  "Marmite", icon:  "server"},
      147                                 { ipAddress: "192.168.1.70", name: "JoJo", icon: "male"}
      148                                 ],
      149                                 showUnknown: false,
      150                                 showOffline:  true,
      151                                 keepAlive:  600,
      152                                 showLastSeen:  true,
      153                                 updateInterval:  30,
      154                                 debug: true,
      155                                 Password:  'xxxx'
      156                                 }
      157                 },
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      Thanks. Scan seems to find some devices, but does not display them on Mirror.

      Here is output log:

      [20:41:24.611] [LOG]    MMM-NetworkScanner is performing arp-scan
      [20:41:24.650] [LOG]    MMM-NetworkScanner is performing ip address scan
      [20:41:24.651] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [20:41:24.651] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [20:41:24.666] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [20:41:24.667] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [20:41:24.667] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [20:41:24.690] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [20:41:24.691] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [20:41:24.705] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [20:41:24.707] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [20:41:26.741] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [20:41:26.743] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      [20:41:54.605] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      [20:41:54.605] [LOG]    MMM-NetworkScanner is performing arp-scan
      [20:41:54.630] [LOG]    MMM-NetworkScanner is performing ip address scan
      [20:41:54.631] [LOG]    MMM-NetworkScanner is checking device:  Champagne
      [20:41:54.631] [LOG]    MMM-NetworkScanner is pinging  192.168.1.11
      [20:41:54.644] [LOG]    MMM-NetworkScanner is checking device:  Millie
      [20:41:54.645] [LOG]    MMM-NetworkScanner is checking device:  Marmite
      [20:41:54.645] [LOG]    MMM-NetworkScanner is pinging  192.168.1.17
      [20:41:54.658] [LOG]    MMM-NetworkScanner is checking device:  JoJo
      [20:41:54.659] [LOG]    MMM-NetworkScanner is pinging  192.168.1.70
      [20:41:54.672] [LOG]    MMM-NetworkScanner completed SCAN_NETWORK
      [20:41:54.675] [LOG]    MMM-NetworkScanner ping result:  [ 'Champagne', true ]
      [20:41:56.706] [LOG]    MMM-NetworkScanner ping result:  [ 'Marmite', false ]
      [20:41:56.707] [LOG]    MMM-NetworkScanner ping result:  [ 'JoJo', false ]
      

      Error log:

      [20:35:38.953] [ERROR]  (node:20348) MaxListenersExceededWarning: Possible Event                                                                                                                                                             Emitter memory leak detected. 11 error listeners added. Use emitter.setMaxListen                                                                                                                                                             ers() to increase limit
      [20:35:38.953] [ERROR]  (node:20348) MaxListenersExceededWarning: Possible Event                                                                                                                                                             Emitter memory leak detected. 11 end listeners added. Use emitter.setMaxListener                                                                                                                                                             s() to increase limit
      [20:35:38.954] [ERROR]  (node:20348) MaxListenersExceededWarning: Possible Event                                                                                                                                                             Emitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListen                                                                                                                                                             ers() to increase limit
      [20:35:38.954] [ERROR]  (node:20348) MaxListenersExceededWarning: Possible Event                                                                                                                                                             Emitter memory leak detected. 11 close listeners added. Use emitter.setMaxListen                                                                                                                                                             ers() to increase limit
      [20:35:38.955] [ERROR]  (node:20348) MaxListenersExceededWarning: Possible Event                                                                                                                                                             Emitter memory leak detected. 11 data listeners added. Use emitter.setMaxListene                                                                                                                                                             rs() to increase limit
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      Thanks Sam

      Tried update. Error log below:

      [11:45:29.130] [ERROR]  TypeError: Cannot read property 'network' of undefined
          at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:46:36)
          at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:33:18)
          at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
          at Socket.emit (events.js:198:13)
          at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
          at process._tickCallback (internal/process/next_tick.js:61:11)
      

      Node_helper code:

              // Target hosts/network supplied in config or entire localnet
       46         var arpHosts = self.config.network || '-l';
       47                                 var options = {
       48                                                 cachePassword: true,
       49                                                 prompt: 'Password,' + self.config.Password     // put your password where ???? are (notice the quotes around)
       50                                 }
       51         var arp = sudo(['arp-scan', '-q', arpHosts]) //, options);
      

      Module entry in config.js:

                      {
      139                         module:                 "MMM-NetworkScanner",
      140                         position:               "bottom_center",
      141                         header:                 "Devices Online",
      142                         config: {
      143                                 devices: [
      144                                 { ipAddress: "192.168.1.11", name: "Champagne", icon: "server"},
      145                                 { ipAddress: "192.168.1.15", name: "Millie", icon: "server"},
      146                                 { ipAddress: "192.168.1.17", name:  "Marmite", icon:  "server"}
      147                                 ],
      148                                 showUnknown: false,
      149                                 showOffline:  true,
      150                                 keepAlive:  600,
      151                                 showLastSeen:  true,
      152                                 updateInterval:  30,
      153                                 Password:  'xxxx'
      154                                 }
      155                 },
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      Hi Sam - thanks I tried the update. Still getting the same error - from the log:

      [19:00:49.868] [ERROR]  TypeError: Cannot read property 'network' of undefined
          at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
          at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
          at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
          at Socket.emit (events.js:198:13)
          at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
          at process._tickCallback (internal/process/next_tick.js:61:11)
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      That is how the config looks.

      Still getting the node_helper line 42 error. Will park this for now. Thank you for spending so much time on this Sam - much appreciated. Will come back to this later in the week.

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      Hmm

      So with the password entered only in the config file, the error output still references line 42

       var arpHosts = this.config.network || '-l';
      

      Error output:

      0|mm       | [19:37:36.956] [ERROR]  TypeError: Cannot read property 'network' of undefined
      0|mm       |     at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
      0|mm       |     at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
      0|mm       |     at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
      0|mm       |     at Socket.emit (events.js:198:13)
      0|mm       |     at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm       |     at process._tickCallback (internal/process/next_tick.js:61:11)
      
      0|mm  | [19:37:50.982] [LOG]    MMM-NetworkScanner received SCAN_NETWORK
      0|mm  | [19:37:50.983] [LOG]    MMM-NetworkScanner is performing arp-scan
      0|mm  | [19:37:50.984] [LOG]    Whoops! There was an uncaught exception...
      0|mm  | [19:37:50.984] [ERROR]
      0|mm  | TypeError: Cannot read property 'network' of undefined
      0|mm  |     at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
      0|mm  |     at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
      0|mm  |     at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
      0|mm  |     at Socket.emit (events.js:198:13)
      0|mm  |     at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm  |     at process._tickCallback (internal/process/next_tick.js:61:11)
      0|mm  | [19:37:50.985] [LOG]
      0|mm  | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm  | [19:37:50.986] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm  | [19:38:21.046] [LOG]
      0|mm  | MMM-NetworkScanner received SCAN_NETWORK
      0|mm  | [19:38:21.047] [LOG]
      0|mm  | MMM-NetworkScanner is performing arp-scan
      0|mm  | [19:38:21.048] [LOG]    Whoops! There was an uncaught exception...
      0|mm  | [19:38:21.048] [ERROR]
      0|mm  | TypeError: Cannot read property 'network' of undefined
      0|mm  |     at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
      0|mm  |     at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
      0|mm  |     at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
      0|mm  |     at Socket.emit (events.js:198:13)
      0|mm  |     at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm  |     at process._tickCallback (internal/process/next_tick.js:61:11)
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      Sorry I’m not being clear. I know that I need to modify the config.js (and have done so), but in line 45 of node_helper.js (as shown below) there is:

       prompt: 'Password,' + this.config.Password     // put your password where ???? are (notice the quotes around)
      

      Should I leave this as is or fill in the password? That is where I have tried it both ways.

      Code you asked for from node_helper.js:

          scanNetworkMAC: function() {
       38         this.log(this.name + " is performing arp-scan");
       39
       40         var self = this;
       41         // Target hosts/network supplied in config or entire localnet
       42         var arpHosts = this.config.network || '-l';
       43                                 var options = {
       44                                                 cachePassword: true,
       45                                                 prompt: 'Password,' + this.config.Password     // put your password where ???? are (notice the quotes around)
       46                                 }
       47         var arp = sudo(['arp-scan', '-q', arpHosts], options);
      
      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      I tried it both ways - but should the ‘password’ field in the helper file be filled in?

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @karsten13
      Hi - it seems to function correctly - it returns the IP and MAC addresses of the various clients on the network.

      posted in Troubleshooting
      J
      jthirasilpa
    • RE: MMM-NetworkScanner-loading...indefinitely

      @sdetweil
      Thanks Sam - tried your version of the module and modified the config.js accordingly. Still not quite working. Error logs as follows:

      0|mm       |     at process._tickCallback (internal/process/next_tick.js:61:11)
      0|mm       | [09:41:25.508] [ERROR]  ReferenceError: options is not defined
      0|mm       |     at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:54)
      0|mm       |     at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:29:18)
      0|mm       |     at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
      0|mm       |     at Socket.emit (events.js:198:13)
      0|mm       |     at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm       |     at process._tickCallback (internal/process/next_tick.js:61:11)
      0|mm       | [09:41:55.508] [ERROR]  ReferenceError: options is not defined
      0|mm       |     at Class.scanNetworkMAC (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:54)
      0|mm       |     at Class.socketNotificationReceived (/home/jojo/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:29:18)
      0|mm       |     at Socket.<anonymous> (/home/jojo/MagicMirror/js/node_helper.js:113:11)
      0|mm       |     at Socket.emit (events.js:198:13)
      0|mm       |     at /home/jojo/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm       |     at process._tickCallback (internal/process/next_tick.js:61:11)
      
      posted in Troubleshooting
      J
      jthirasilpa
    • 1
    • 2
    • 1 / 2