Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
trekkeriii
Level 11

firmware from XML data

Wondering if from the http://ip.address:8060 you can pull the firmware version installed from XML data. Working on a PHP page that pulls my Roku's information so then if I am not home (or in the middle of watching something, don't want to stop it) I can post information to RokuShawnS when needed (might share the code when I am done so you all with local webhosts can use it). I got it giving Model #s and Serial, which was easy. Just need the query to generate the XML, I got the PHP part down.
http://trekkeriii.com/Roku_PHP_list.php
Router - ASUS RT-AC68U
ISP - TWC - 50 Mbps/5 Mbps
Net+ Cert
0 Kudos
1 REPLY 1\
trekkeriii
Level 11

Re: firmware from XML data

Here's my code for my Roku list PHP script.
<HTML><HEAD><Title>Roku List</TITLE></HEAD>
<body><font face="verdana, arial, courier" size="1">
<img src="http://www.roku.com/sites/all/themes/roku/images/logo.png"><br>
<?php
function GetRokuModelName($xml){
$roku = simplexml_load_file($xml);
If ($roku->device->manufacturer == "Roku"){
$serial = $roku->device->serialNumber;
$roku_model = $roku->device->modelNumber;

If ($roku_model == "3100X"){
$model = "Roku 2 XS";
$generation = "2";
}
ElseIf ($roku_model == "2100X"){
$model = "Roku XDS";
$generation = "1";
}
ElseIf ($roku_model == "2050X"){
$model = "Roku XD";
$generation = "1";
}
ElseIf ($roku_model == "N1000"){
$model = "Roku DVP";
$generation = "1";
}
ElseIf ($roku_model == "N1100"){
$model = "Roku HD";
$generation = "1";
}
ElseIf ($roku_model == "N1101"){
$model = "Roku HD-XR";
$generation = "1";
}
ElseIf ($roku_model == "N1050"){
$model = "Roku SD";
$generation = "1";
}
ElseIf ($roku_model == "2000C"){
$model = "Roku HD";
$generation = "1";
}
ElseIf ($roku_model == "2050N"){
$model = "Roku XD (Netgear)";
$generation = "1";
}
ElseIf ($roku_model == "3000X"){
$model = "Roku 2 HD";
$generation = "2";
}
ElseIf ($roku_model == "3000X"){
$model = "Roku 2 XD";
$generation = "2";
}
ElseIf ($roku_model == "3400X"){
$model = "Roku Streaming Stick";
$generation = "2";
}
ElseIf ($roku_model == "3420X"){
$model = "Roku Streaming Stick";
$generation = "2";
}
ElseIf ($roku_model == "4200X"){
$model = "Roku 3";
$generation = "3";
}
ElseIf ($roku_model == "2400X"){
$model = "Roku LT";
$generation = "2";
}
ElseIf ($roku_model == "2450X"){
$model = "Roku LT";
$generation = "2";
}
ElseIf ($roku_model == "2500X"){
$model = "Roku HD";
$generation = "2";
}
echo "<B>" . $model . "</B><br>";
echo "Generation: " . $generation . "<br>";
echo "Roku Model Number: " . $roku_model . "<br>";
echo "Roku Serial: " . $serial . "<br>";
echo "<br>";
}
}

GetRokuModelName("http://roku2:8060");
GetRokuModelName("http://rokuxds:8060");
GetRokuModelName("http://rokuxd:8060");
GetRokuModelName("http://roku:8060");

?>
</font>
</body>
</HTML>



Basically I have it scanning to see what model I have output the Branding Name in bold, Generation number, Model #, and then the Serial. I just basically put in my URLs for Rokus (I have them in DNS, which is why I don't have IPs) in the code right now since I know them. This code depends on the Rokus to have Reserved IPs and you to know your Rokus' IPs.
http://trekkeriii.com/Roku_PHP_list.php
Router - ASUS RT-AC68U
ISP - TWC - 50 Mbps/5 Mbps
Net+ Cert
0 Kudos