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

Find BrewPi Device by Service Record #180

Open
lbussy opened this issue Apr 19, 2021 · 0 comments
Open

Find BrewPi Device by Service Record #180

lbussy opened this issue Apr 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lbussy
Copy link
Member

lbussy commented Apr 19, 2021

Use something like this:

def locate_brewpi_services():
    zeroconf_obj = zeroconf.Zeroconf()
    listener = zeroconfListener()
    browser = zeroconf.ServiceBrowser(zeroconf_obj, "_brewpi._tcp.local.", listener)

    sleep(9)  # We have to give zeroconf services time to respond
    zeroconf_obj.close()

    return listener.brewpi_services
@lbussy lbussy added the enhancement New feature or request label Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant