-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkiting.html
82 lines (77 loc) · 2.88 KB
/
kiting.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html>
<head>
<title>Wellington real-time weather data</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAZfLTc4I-55hKMq9hmEZyuRQRoHgr-PDOpWrlY3JDB7pujWxw-xQZMilz0DTLIn0JjeLQgcLO7T5Oog" type="text/javascript"></script>
<script src="kiting.js" type="text/javascript"></script>
</head>
<body>
<h2>Wellington real-time weather data</h2>
<p id="msg"></p>
<p id="clock"> </p>
<table id="data">
<thead>
<tr>
<th rowspan="2">Location</th>
<th colspan="4">Wind</th>
<th rowspan="2">Temp.</th>
<th rowspan="2">Pressure</th>
<th rowspan="2">Time Ago</th>
<th rowspan="2" colspan="2">Station<br />Info</th>
</tr>
<tr>
<th>Speed</th>
<th colspan="2">Direction</th>
<th>Gust</th>
</thead>
<tbody id="tablebody">
</tbody>
</table>
<h3>Notes</h3>
<p>
This page shows real-time weather data around the Wellington region, so the
<a href="http://groups.google.co.nz/group/wellingtonkitesurfers?hl=en&ie=UTF-8&pli=1">kitesurfers</a>
would know when it's time to get down to the beach.
</p>
<p>
This page relies on pulling together data from a number of public data feeds. The data is only as good
as those feeds so if you see some odd numbers, click on the "Source" link to see if the problem is with
the original data. If the problem still seems to be this page then get in touch and I'll try and fix it.
</p>
<p>
The data I've pulled together is available as a JSON formatted file <a href="data.json">here</a>. It
currently updates every 15 minutes on the quarter hour.
</p>
<p>
The "Time ago" column lists how long ago the displayed data was observed (the time of the actual measurement,
not just when it was collected by my script). Observations older than 20 minutes are orange, and those older
than four hours are red to warn they are out of date.
</p>
<p>
Click on the "Map" link to see where the stations are located.
</p>
<p>
The page automatically reloads when new data is expected to be available. The countdown indicator shows when
that will be.
</p>
<p>
The source code for this project is freely available <a href="http://github.com/simoncoggins/Realtime-Weather">here</a>.
Please feel free to contribute or extend it for your own purposes.
</p>
<p>
There is a simplier version of this page designed for mobile phones <a href="mob.php">here</a>.
</p>
<h4>Feed Owners</h4>
<p>
If you own one of the feeds and have a problem with my data collection script, please get in touch and
let me know what I can do to resolve the situation.
</p>
<a name="contact"></a>
<h4>Contact</h4>
<p>
This project is maintained by Simon Coggins. His email is his name, all as one word, at gmail.com. Please
get in touch with any bugs, feature suggestions or new data feeds!
</p>
</body>
</html>