Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Bonjour? #1136

Open
andrewmcguinness opened this issue Feb 4, 2023 · 1 comment
Open

Support for Bonjour? #1136

andrewmcguinness opened this issue Feb 4, 2023 · 1 comment

Comments

@andrewmcguinness
Copy link
Contributor

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.

@jamesoff
Copy link
Owner

jamesoff commented Feb 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants