summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index 9945539..0194c58 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -200,6 +200,15 @@ $curcfg = $config['system']['firmware'];
<?= $mbufs_total ?>/<?= $mbufs_max ?>
</td>
</tr>
+ <tr>
+ <td width="25%" class="vncellt">Temperature</td>
+ <td width="75%" class="listr">
+ <?php $TempMeter = "0"; $temp = "0"; ?>
+ <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= $TempMeter; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $TempMeter); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
+ &nbsp;
+ <input style="border: 0px solid white;" size="30" name="tempmeter" id="tempmeter" value="<?= $temp."&#176;C"; ?>" />
+ </td>
+ </tr>
<tr>
<td width="25%" class="vncellt">CPU usage</td>
<td width="75%" class="listr">
@@ -275,4 +284,4 @@ $curcfg = $config['system']['firmware'];
jQuery('#uname').html("<?php echo php_uname("a"); ?>");
}
setTimeout('getstatus()', 4000);
-</script>
+</script> \ No newline at end of file
OpenPOWER on IntegriCloud