jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Easy access to remote #175

Closed hoffi closed 9 years ago

hoffi commented 9 years ago

Hey, what about a QR-Code or something to easily access the remote? So you can easily scan the code and instantly have the remote on your smartphone instead of looking for the right URL to type in :)

Would be something for the future but just wanted to share this idea with you.

jansmolders86 commented 9 years ago

Very, very cool idea Stefan! I love it! I'm going to think of a nice place to put it :)

jansmolders86 commented 9 years ago

Found an excellent plugin for generating a qr code. I'm going to use it to generate a tile image on the fly for the remote!

jansmolders86 commented 9 years ago

Hey @hoffi , I almost was ready to merge the qrcode stuff but then I realized something. Currently I generate the qrcode client side on the fly using location.domain + location.port. but of course that won't work for your mobile phone seeing as location.domain will often just be localhost. Do you have any ideas? Should I generate the qrcode server side with IP rather than say localhost? But will that always work? I'm not sure tbh

hoffi commented 9 years ago

Hm yes i would say to get the IP on serverside using os.networkinterfaces think that should work in general.

jansmolders86 commented 9 years ago

I've publish the branch (qrcode) @hoffi, You can look at it if you want. It isn't my finest hour coding wise, but its all I could mustar up time wise. It works though :)

hoffi commented 9 years ago

Hey @jansmolders86, can confirm it works. But i would make it a bit bigger and center it in the tile :)

jansmolders86 commented 9 years ago

Will do @hoffi :) thanks!