This commit is contained in:
Karl Hudgell 2016-12-01 15:45:44 +00:00
parent 28dba0000e
commit 76425b3928

View File

@ -80,13 +80,13 @@ for ($count = 1; $count < sizeof($diskfree); $count ++) {
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
if ($file == "0, 0, 0") {
$rgb = "off";
$rgb = "Off";
} elseif ($file == "255, 0, 0") {
$rgb = "red";
$rgb = "Red";
} elseif ($file == "0, 255, 0") {
$rgb = "green";
$rgb = "Green";
} elseif ($file == "0, 0, 255") {
$rgb = "blue";
$rgb = "Blue";
}
// Rendering Page.
@ -180,7 +180,7 @@ $file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
</table>
</div>
<div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--6-col mdl-grid">
<h3>Desk Colour - <?php echo $rgb;?>(<?php echo $file;?>)</h3>
<h3>Desk Colour - <?php echo $rgb;?></h3>
<table class="mdl-data-table mdl-js-data-table" style="width:100%;">
<tbody>