jvconnected.discovery

class jvconnected.discovery.Discovery(*args, **kwargs)[source]

Bases: pydispatch.dispatch.Dispatcher

Listen for cameras using zeroconf

Properties
procam_infos: dictDictProperty(dict)

Container for discovered devices as instances of zeroconf.ServiceInfo. The service names (fqdn) are used as keys

Events
on_service_added(name, info=info)

Fired when a new device is discovered

on_service_updated(name, info=info, old=old_info)

Fired when an service is updated. The pre-existing ServiceInfo is passed for comparison

on_service_removed(name, info=info)

Fired when an existing service is no longer available

async open()[source]

Open the zeroconf browser and begin listening

async close()[source]

Stop listening and close all connections