cockpit-temperature-plugin/temperature.html

59 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2019-08-15 15:33:37 +02:00
<!DOCTYPE HTML>
<html>
<head>
2021-03-08 06:20:34 +01:00
<meta charset="utf-8">
<title>Temperature</title>
<style>
body {
2021-03-08 07:59:54 +01:00
font-family: "Courier New", Courier, monospace;
2021-03-08 06:20:34 +01:00
}
#table {
2021-03-08 07:59:54 +01:00
width: 100%;
2021-03-08 06:20:34 +01:00
}
#table tr {
font-size: 16pt
}
#table [colspan="2"] {
2021-03-08 07:59:54 +01:00
text-align: center;
width: 100%
2021-03-08 06:20:34 +01:00
}
#table #title {
2021-03-08 07:59:54 +01:00
font-size: 24pt;
2021-03-08 06:20:34 +01:00
}
#table .key {
text-align:right;
width: 40%;
2021-03-08 07:59:54 +01:00
padding: .2rem;
2021-03-08 06:20:34 +01:00
}
#table .value {
text-align: left;
width: 60%;
padding: .2rem;
}
</style>
2019-08-15 15:33:37 +02:00
</head>
<body onresize="resize_canvas()">
2021-03-08 07:59:54 +01:00
<table id="table">
2021-03-08 06:20:34 +01:00
<tr>
<th colspan="2" id="title">CPU Temperature</th>
</tr>
<tr>
<td colspan="2"><canvas id="smoothie-chart" height="300"></canvas></td>
</tr>
<tr>
2021-03-08 07:59:54 +01:00
<td class="key" id="key_cur_temp">Current Temperature:</td>
2021-03-08 06:20:34 +01:00
<td class="value"><code id="cur_temp" ></code><code> °C</code></td>
</tr>
<tr>
2021-03-08 07:59:54 +01:00
<td class="key" id="key_avg_temp">Average Temperature (5m):</td>
2021-03-08 06:20:34 +01:00
<td class="value"><code id="avg_temp" ></code><code> °C</code></td>
</tr>
</table>
2019-08-15 15:33:37 +02:00
2021-03-08 06:20:34 +01:00
<script src="../base1/cockpit.js"></script>
2021-03-08 07:59:54 +01:00
<script src="../*/po.js"></script>
2021-03-08 06:20:34 +01:00
<script src="smoothie.js"></script>
<script src="temperature.js"></script>
</body>
2019-08-15 16:21:33 +02:00
</html>