Connection Status Variable
Posted:
Fri Feb 16, 2024 9:17 am
by autoindigo
I need to detect if indigo has lost its internet connection for various triggers. While I have a script for it, reflector also maintains this information. Is there (or could there be) a variable set when Reflector is down/up?
Re: Connection Status Variable
Posted:
Fri Feb 16, 2024 9:36 am
by DaveL17
I wrote a small script that puts an icon on the menu bar (green when connected to the reflector, red if not connected).
https://github.com/DaveL17/Indigo-Reflector-BugThe key lines are these:
- Code: Select all
reflector_url = indigo.server.getReflectorURL()
self.icon = BASE_URL + (OFFLINE_ICON if not reflector_url else ONLINE_ICON)