MMM-NetworkScanner icon indicating copy to clipboard operation
MMM-NetworkScanner copied to clipboard

Suspend/resume scanning when the module is hidden/shown

Open wi-brewer opened this issue 6 years ago • 3 comments

Hi, sorry this is not a bug.

I think it would be cool if you could specify that we only scan for occupants during a specific time range. For example I don't want or need it to scan if I am on the network while I'm sleeping.

wi-brewer avatar Apr 30 '18 23:04 wi-brewer

@wi-brewer If you don't need to scan you can always enable/disable the module with a cron job. (There is another module that make this easy for you, but I forgot which one.) So I don't see the need to add that functionality into the module.

E3V3A avatar May 02 '18 10:05 E3V3A

@E3V3A - would that be MMM-ModuleScheduler by any chance? :)

ianperrin avatar May 02 '18 12:05 ianperrin

@wi-brewer - if you want to hide the module at certain times, you can do so with MMM-ModuleScheduler

An enhancement to MMM-NetworkScanner would be to suspend the scanning activity whilst the module was hidden and resume again when it is shown again.

Additionally, adding support for suspending scanning if a resident is not online is another enhancement for consideration

ianperrin avatar May 02 '18 12:05 ianperrin