final fix

This commit is contained in:
Karl Hudgell 2016-12-01 14:57:16 +00:00
parent f7c0919e8e
commit 25b3222db9

View File

@ -79,7 +79,15 @@ for ($count = 1; $count < sizeof($diskfree); $count ++) {
//Read in RGB file
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
if ($file > "0, 0, 0") {
$rgb = "Off";
} elseif ($file > "255, 0, 0") {
$rgb = "Red";
} elseif ($file > "0, 255, 0") {
$rgb = "Green";
} elseif ($file > "0, 0, 255") {
$rgb = "Blue";
}
// Rendering Page.
?><!DOCTYPE html>