This is my first post, so please go easy on me ;-)
I've been using XBMC for a while now but recently I've been remotely controlling it using the superb XBMC Commander iPad app (made by grywnn - see this forum thread for details).
I'm posting this thread to see if there's appetite for anyone wanting to start XBMC either using a small local webserver or using Wake On LAN (with the PC already switched on).
Background
I don't have a dedicated HTPC, but have my XBMC shortcut set to switch monitors to my TV (using UltraMon as it happens)... now, in my pursuit of perfect laziness I decided to see if I could use something on my iPhone/iPad to startup XBMC, switch to my TV - even better if the solution could be made to work from within my new best friend, XBMC Commander.
I started by getting getting a solution together which would fire up XBMC when you hit a simple URL directed at the PC on which XBMC runs (e.g. http://192.168.0.2/startxbmc) ... this worked fine and had the added advantage of being usable by any device with a browser on your LAN.
I was delighted to discover that XBMC Commander has the facility on it's Remote screen to add a custom menu item which will fire a HTTP call wherever you want. The solution worked, but it turns out that XBMC Commander doesn't show that menu when it can't connect to the XBMC server, which is exactly when you need it - D'oh!
I contacted grywnn to see if that could be changed in a future release and to his credit, he replied back straight away and kindly agreed to add it in (possibly the release after next). Thanks grywnn!
Anyway, not only am I lazy, I'm also impatient ... so I moved onto a second solution... I noticed that XBMC Commander has the option to use WOL (Wake on LAN)... I figured that I could write something to sniff packets and look out for the WOL Magic Packet, and when it got one, fire up XBMC.
I'm pleased to say it works great :-) I no longer have to lift my backside off the sofa when I want to watch something, and my wife is almost impressed with something technical I've done

Technical
I run XBMC on Vista and the script which fires up XBMC and changes to the TV is written in Perl (the monitor changing bit is actually done through an UltraMon shortcut).
I originally made it work using the TinyWeb webserver - any webserver which allows CGI execution will be fine (Apache on Linux for e.g.) and I could happily get it working on Linux if there was enough interest.
The packet-sniffing solution is also written in Perl (both scripts are very small - 20 lines-ish). Both Perl scripts could be made into executables for those who don't want to install ActiveSync and set up the required modules.
I could also get the scripts take parameters (MAC address, NIC device ID, path to start up XBMC etc.)
Interested?
So, if there's appetite in the community, I'd be happy to parameterise and share the scripts/solutions and even port them over to Linux (my preferred platform, but the XBMC box runs Windows so I wrote them for that) - depends on how much interest there is.
Simply reply to this thread if this is something you'd like me to formalise and share ... thanks!



;o)
Search
Help