Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Reconnect #57

Open
LBegnaud opened this issue Dec 4, 2015 · 5 comments
Open

Automatic Reconnect #57

LBegnaud opened this issue Dec 4, 2015 · 5 comments

Comments

@LBegnaud
Copy link

LBegnaud commented Dec 4, 2015

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!

@ApsOps
Copy link

ApsOps commented Aug 23, 2016

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

@LBegnaud
Copy link
Author

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
Copy link
Author

fyi @ApsOps i found this thread #33

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

@ApsOps
Copy link

ApsOps commented Aug 24, 2016

@LBegnaud Thanks, I'll try that.

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

Ditto!

@LBegnaud
Copy link
Author

LBegnaud commented Aug 25, 2016

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants