Connection Status Variable

Posted on
Fri Feb 16, 2024 9:17 am
autoindigo offline
Posts: 3
Joined: Feb 05, 2024

Connection Status Variable

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?

Posted on
Fri Feb 16, 2024 9:36 am
DaveL17 offline
User avatar
Posts: 6759
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Connection Status Variable

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)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 11 guests

cron