ianperrin / MMM-NetworkScanner

A module for MagicMirror which determines the status of devices on the network based on their MAC or IP address
MIT License
107 stars 47 forks source link

showOffline and showUnknown don't go together well #43

Open bogomips opened 5 years ago

bogomips commented 5 years ago

I think the problem is here:

nextState = this.config.devices.map(device => {

As this loops on this.config.devices, it basically excludes all those devices that are not in that array.

I did not have time to go deeper, I will check better asap and maybe propose some possible solution.

arkof commented 5 years ago

Have the same problem. I would like to add alot of my friends & family to get list, but dont wanna see them when they are not visiting. Hope a fix will come soon

arkof commented 5 years ago

I found a workaround for this. It's not the cleanest but hey, it works! In /MagicMirror/Css folder edit the custom.css. Add this at the end of the css file:

.MMM-NetworkScanner table tr.dimmed { display: none; }

This will hide the offline person/devices.