simplemonitor icon indicating copy to clipboard operation
simplemonitor copied to clipboard

Support for Bonjour?

Open andrewmcguinness opened this issue 2 years ago • 1 comments

Thinking about adding a monitor type for bonjour / dns-sd services

On Linux, it would basically just run "avahi-resolve .local" to see if the host can be detected

I'm thinking it would more or less be a variant of or reuse part of the MonitorHost class https://github.com/jamesoff/simplemonitor/blob/develop/simplemonitor/Monitors/network.py#L217 ?

I would be willing to have a go at adding it for Linux, but I don't know how to do it on Windows or Mac.

andrewmcguinness avatar Feb 04 '23 15:02 andrewmcguinness

I'm happy to have Monitors which only work on certain platforms, there's already a few like various "service" ones and the Windows DHCP one, for example.

There's an is_windows() on Monitor, so you could add an is_linux() which does a similar check (based on platform) and use that; raise a RuntimeError if the monitor is loaded on a non-Linux platform.

jamesoff avatar Feb 04 '23 20:02 jamesoff