OpenVoiceOS / ovos-PHAL-plugin-connectivity-events

Apache License 2.0
0 stars 1 forks source link

readme #3

Open JarbasAl opened 1 year ago

JarbasAl commented 1 year ago

needs to be updated and bus events documented

5trongthany commented 1 year ago

@JarbasAl where can I find information on bus events?

NeonDaniel commented 1 year ago

Documented in code: https://github.com/OpenVoiceOS/ovos-PHAL-plugin-connectivity-events/blob/dev/ovos_phal_plugin_connectivity_events/__init__.py#L72-L77

        emits `mycroft.network.connected` if network is newly connected
        emits `mycroft.internet.connected` if internet is newly connected
        emits `mycroft.network.disconnected` if network is newly disconnected
        emits `mycroft.internet.disconnected` if internet is newly disconnected
        emits `enclosure.notify.no_internet` if new state has
            some networking but no internet

Also, https://github.com/OpenVoiceOS/ovos-PHAL-plugin-connectivity-events/blob/dev/ovos_phal_plugin_connectivity_events/__init__.py#L45

self.bus.on("ovos.PHAL.internet_check", self.handle_check)
# emitting above will give the response:
self.bus.emit(message.response(
    {"internet_connected": internet_connected,
     "network_connected": network_connected}))