groupon / greenscreen

BSD 3-Clause "New" or "Revised" License
1.19k stars 149 forks source link

Reloading means rebooting and reconnecting…? #21

Open julienbechade opened 10 years ago

julienbechade commented 10 years ago

Hey,

Great work! We're using it extensively at my company, the set up was a breeze, works seamlessly.

There's something though I haven't quite figured out yet… How to reload a page without rebooting and reconnecting the Chromecast key? When we work on apps displayed on screen, we push new things quite often. Having to reboot and reconnect every time we want to see a new version is quite cumbersome.

Or did I miss something?

Thanks again for all the hard work! Cheers.

sirket commented 10 years ago

If you're using Greenscreen to display a web page- why not simply include a meta refresh in the web page to automatically refresh every minute or something?

If you're talking about the receiver app itself- you would need to stop casting- then start casting again with the new app.

Can you clarify your requirements?

julienbechade commented 10 years ago

Ok, you pretty much answered my question.

I thought there was perhaps a hidden feature that could allow you to reload the "feed" casted to the receiver without refreshing the page with HTML nor JS… Stop/start casting hasn't work for me so far, instead I need to reboot and reconnect. Strange enough.

Thanks for your help.

sirket commented 10 years ago

You could also try switching the channel you display to that particular Chromecast and then switch it back- that also works for me.

julienbechade commented 10 years ago

Yes, that worked for us too.

jamesmason84 commented 9 years ago

We're using greenscreen to cast a bunch of kibana dashboards to TVs in our office. This works great except every day we need to manually switch the channel back and forth to get the dashboards to update. Unfortunately we can't add meta refresh to the web page. Would love it if this were one day added as a feature to greenscreen!

julienbechade commented 9 years ago

Also when switching channel to try to refresh the page, the cache is sometimes so persistent that we need to reboot the keys anyway… How do you guys do at Groupon to work with dynamic data, do you use socket or something?

jakedahn commented 9 years ago

Hey Everyone,

I too am a kibana4 user, and was kind of sad that there wasn't an easy way to setup auto refreshing. So I made a simple iframe wrapper page that makes it easy to wrap pages that you want to watch with a refresh.

You can find the code in this gist: https://gist.github.com/jakedahn/dc4abac68cbb30fb1e64/

Additionally you can test it out by going to here: http://publichosting.s3.amazonaws.com/greenscreen-passthrough.html?target_url=http%3A%2F%2Fjake.ai

To change the refresh rate (default is 5 minutes), you can add an extra get param like so: http://publichosting.s3.amazonaws.com/greenscreen-passthrough.html?target_url=http%3A%2F%2Fjake.ai&refresh_rate=3

/cc @julienbechade @jamesmason84 @sirket