Results 1 to 8 of 8

Thread: simple boxee web remote (php)

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    11

    Default simple boxee web remote (php)

    Hi there!

    I've written a really simple boxee web remote for BoxeeBox in php
    It supports the json api (thanks to neveroffline )

    This app is based on xbmcfreak's xbmc remote (http://www.xbmcfreak.nl/en/xbmc-php-remote/)

    The app does exactly what I want : it only play audio files on my BoxeeBox, TV off.
    It also provide a standard remote control.

    __________________________________________________ ____
    Features :
    - browse audio library
    - start playing a single file, an album or an entire artist directory
    - fully fonctionnal remote control

    v0.3 : added dkroetsch's feature (thanx!) : new item on the main page, it allows you to send any page FROM your web browser TO you boxeebox
    __________________________________________________ ____

    Screenshots (not up to date!):





    After unzipping the archive on your webserver, start the pairing process pointing to http://youwebserver/boxee/pair.php

    enjoy!


    Download :
    simple boxee web remote v0.3


    Previous versions :
    v0.2 : simple boxee web remote v0.2
    v0.1 : simple boxee web remote v0.1


    -
    Last edited by gp4004; January 9th, 2012 at 06:49 AM.

  2. #2
    Join Date
    Dec 2011
    Posts
    1

    Default Nice Work! Here's an update

    First of all... Fantastic work! This is what boxee has been missing.

    I've "updated" your script to add the ability to "throw" links to the Boxee Box. It was pretty simple. Updates only required to index.php. I added another option on the main page, by adding:

    Code:
    	
    <li>
         <form name="input" action="index.php" method="get">
        &nbsp; Weblink: <input size="100" type="text" name="source" />
        <input type="submit" value="Submit" />
    </form> 	
    </li>
    and then after the last </div> before the </body> I added:
    Code:
    <?php
    if(!empty($_GET['source']))
    {
    	//get argument of the source
    	$location = $_GET['source'];
    
    	$request = '{"jsonrpc" : "2.0", "method": "XBMC.Play", "params" : { "file" : "' . $location . '"}, "id": 1}'; 
    	$array = jsonQuery($request); 
    
    	echo "&nbsp; going to URL: <b>" . $location . "</b>"; 
    }
    ?>
    This means I can just type a URL from any web browser in and send boxee to that web page, or play that video, etc. SUPER handy!

    Also, made a quick button for FireFox that throws the link of whatever page I'm currently surfing over to my BoxeeBox.

    Just cut and paste this code into a shortcut in FireFox, etc:
    Code:
    javascript:var%20b=document.body;if(b&&!document.xmlVersion){void(window.open('http://192.168.0.2:81/index.php?source='+location.href,'boxee_thrower'));}else{}
    Hope this is useful for others!

  3. #3
    Join Date
    Feb 2011
    Posts
    11

    Default

    Hi !

    Great job, I'm testing it and that's really cool!

    I'l package a archive asap for all the simple boxee remote users (you and me )

  4. #4
    Join Date
    Feb 2012
    Posts
    1

    Default

    Hi!
    Im trying to test your sweet little app. I just don't get where to put the files. Right now I put them on a usb-stick in the back of the box. I did the config of the config.php. And now I'm trying to run the pair.php. No luck!
    I canot figure out what my webservername is. And where to put the files.
    Thanx!

  5. #5
    Join Date
    Feb 2011
    Posts
    11

    Default

    Hi Joon!

    You need a computer running a webserver (apache, nginx...) and PHP to make this app run.

    All my medias are stored on a server running debian (eeebox), I use this server to run many services, including a webserver.

    Without a webserver, you can't run simple boxee web remote...

  6. #6
    Join Date
    Mar 2012
    Posts
    1

    Default

    I just had installed this today, when selecting songs to play it seems every second selection comes in very loud. Any possibility this is a software problem?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •