greenscreen icon indicating copy to clipboard operation
greenscreen copied to clipboard

Automatic Reconnect

Open LBegnaud opened this issue 9 years ago • 5 comments

Anyone know if it's possible to have chrome running somewhere with a method of auto reconnecting? I'm toying with the idea of an autoIT script.. but I'd like to avoid that route!

LBegnaud avatar Dec 04 '15 22:12 LBegnaud

@LBegnaud Hi! Did you find a way to auto-connect in chrome? Or something similar?

ApsOps avatar Aug 23 '16 06:08 ApsOps

I have not :(

I'm still very interested in it, but currently we have the first person who comes into the office in the morning reconnect all chromecasts (since streams will randomly die after 12-24 hours)

LBegnaud avatar Aug 24 '16 13:08 LBegnaud

fyi @ApsOps i found this thread https://github.com/groupon/greenscreen/issues/33

i haven't tested it yet, but it might work for this purpose.

LBegnaud avatar Aug 24 '16 14:08 LBegnaud

@LBegnaud Thanks, I'll try that.

we have the first person who comes into the office in the morning reconnect all chromecasts

Ditto!

ApsOps avatar Aug 24 '16 15:08 ApsOps

@ApsOps fyi it works great!

Here's my little bash script in case anyone is interested. I wish I knew how to contribute to the readme, but perhaps someone else will see this and make that adjustment

[greenscreen@Rader-GreenScreen ~]$ crontab -l | grep Chrome
0 5,8 * * * /opt/scripts/connectChromeCasts.sh
[greenscreen@Rader-GreenScreen ~]$ cat /opt/scripts/connectChromeCasts.sh
#!/bin/sh

while read -r i
do
 startcast start "$i" 7C8473BF
done <<< "`startcast list | cut -f1 -d$'\t' | grep -Evi "(kitchen|break|jacob)"`"

The part at the end excludes chromecasts based on name. I have it run at 5am and 8am with the crontab definition above, but that of course can be customized

LBegnaud avatar Aug 25 '16 14:08 LBegnaud