forked from kennkong/Weather-ERF-Gateway-1000U
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wind.html
executable file
·41 lines (39 loc) · 1.01 KB
/
wind.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="300">
<title>Wind Graph</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="//code.highcharts.com/stock/highstock.js"></script>
<script type="text/javascript">// Utility functions
function mytimeformat(d) {
var ds = d.toLocaleTimeString();
return ds.match(/[0-9]{1,2}:[0-9]{2}/)+' '+ds.match(/[AP]M/);
}
</script>
<script type="text/javascript" src="wind.js"></script>
<style>
div#current {
max-width: 800px;
margin: auto;
}
table.outertable {
border-collapse: collapse;
}
table.outertable, table.innertable {
border-style: solid;
border-width: medium;
width: 100%;
}
div.history {
max-width: 800px;
height: 350px;
margin: 0 auto
}
</style>
</head>
<body>
<div id="windspeed" class="history" >Wind</div>
</body>
</html>