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 - AT&T- 1000 Mbps/1000 Mbps
Net+ Cert