Page 1 of 1

Connection Status Variable

PostPosted: 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

PostPosted: 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-Bug

The 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)