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

MMM-NetworkScanner returns error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 2 Posters 2.5k Views 2 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.
  • M Offline
    mortenbirkelund
    last edited by Feb 23, 2017, 12:04 PM

    Whenever start the MagicMirror with the network scanner modul installed i get the error described here.

    https://github.com/ianperrin/MMM-NetworkScanner/issues/8

    There error says : TypeError: Cannot read property 'devices' of undefined
    

    You can see my config here

    {
            	module: 'MMM-NetworkScanner',
            	position: 'top_right', 
    			classes: 'network',
            	config: {
    				devices: [
    					{ ipAddress: "192.168.0.5", name: "Qnap", icon: "server"},
    					{ ipAddress: "192.168.0.6", name: "AquariumPi", icon: "tint"},
    					{ macAddress: "48:3c:0c:84:08:98", name: "Marie-Huawei", icon: "female"},
    					{ macAddress: "c0:ee:fb:4a:7a:cf", name: "Morten-OnePlus", icon: "male"},
    				],
    				showUnknown: false
            	}	        
        	},
    
    1 Reply Last reply Reply Quote 0
    • X Offline
      XT16Johnny
      last edited by XT16Johnny Mar 1, 2017, 10:45 PM Mar 1, 2017, 10:34 PM

      Try removing the trailing comma on the last line of macAddr, eg;

      {
              	module: 'MMM-NetworkScanner',
              	position: 'top_right', 
      			classes: 'network',
              	config: {
      				devices: [
      					{ ipAddress: "192.168.0.5", name: "Qnap", icon: "server"},
      					{ ipAddress: "192.168.0.6", name: "AquariumPi", icon: "tint"},
      					{ macAddress: "48:3c:0c:84:08:98", name: "Marie-Huawei", icon: "female"},
      					{ macAddress: "c0:ee:fb:4a:7a:cf", name: "Morten-OnePlus", icon: "male"}
      				],
      				showUnknown: false
              	}	        
          	},
      

      In addition, restart your ‘browser’.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mortenbirkelund
        last edited by Mar 2, 2017, 11:29 AM

        That seems to work. Thanks

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