This JS template code may be handy for hacking:
/*
* deviceIP: IP address of a Roku on your local network with MOG installed.
*
* tracks: array of MOG track IDs. You can get these back from
* EchoNest APIs or look around on mog.com for them, for example by
* using the search function.
*/
function MOGRoku(deviceIP,tracks){
var productionProgramID = "2049"; // if you're using a production MOG build
var programID = productionProgramID; // set which one you're using by modifying this
var form = document.createElement("form");
form.method = "post";
form.action = "http://"+deviceIP+":8060/launch/"+programID+"?trackIDs="+tracks.join("+");
form.submit();
}
$(document).ready(function() {
$("a#playone").click(function(){
MOGRoku("192.168.201.49",[5639969]);
});
$("a#playmulti").click(function(){
MOGRoku("192.168.201.49",[5639969,13203815,18362895,10936097,287941,539503,34731947]);
});
$("input#tidsubmit").click(function(){
MOGRoku("192.168.201.49",$("input#trackIDs").val().split(" "));
});
});