greenscreen
greenscreen copied to clipboard
Automatic Reconnect
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 Hi! Did you find a way to auto-connect in chrome? Or something similar?
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)
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 Thanks, I'll try that.
we have the first person who comes into the office in the morning reconnect all chromecasts
Ditto!
@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