-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.tmpl
330 lines (302 loc) · 18 KB
/
index.html.tmpl
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<title>$station.location Current Weather Conditions</title>
<!-- Open Graph -->
<meta property="og:site_name" content="$station.location Current Weather Conditions" />
<meta property="og:description" content="Current Weather Conditions in $station.location - weather web site powered by weewx" />
<meta property="og:type" content="website" />
<!-- Icons -->
<link rel="icon" href="favicon.ico" type="image/png">
<link rel="apple-touch-icon" href="touch-icon.png"/>
<!-- Styles -->
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<!-- Skripte -->
<script src="js/modernizr-2.6.2.min.js"></script>
<script type="text/javascript">
function openNoaaFile(date)
{
var url = "NOAA/NOAA-";
url = url + date;
url = url + ".txt";
if(date !== "Monthly summary" && date !== "Yearly summary") {
window.location=url;
}
}
</script>
</head>
<body>
<header>
<div class="container-fix" >
<div class="h-left" >
<h1><i class="fa fa-cloud" ></i> $station.location</h1>
<p>$station.latitude[0]° $station.latitude[1]' $station.latitude[2] | $station.longitude[0]° $station.longitude[1]' $station.longitude[2] | $station.altitude | <a href="https://www.google.com/maps/?q=$station.location" target="_blank" ><i class="fa fa-map-marker" ></i> Show on map</a></p>
<h2>Current Weather Conditions</h2>
<p><i class="fa fa-clock-o" ></i> $current.dateTime</p>
</div>
<div class="h-right" >
<table>
<tr><td><b>Station:</b></td><td>$station.hardware</td></tr>
<tr><td><b>Software:</b></td><td><a href="http://weewx.com/" target="_blank" >weewx v$station.version</a></td></tr>
<tr><td><b>Weewx uptime:</b></td><td>$station.uptime</td></tr>
<tr><td><b>Server uptime:</b></td><td>$station.os_uptime</td></tr>
</table>
</div>
<nav>
<ul>
<li class="active" ><a href="index.html" >Current</a></li>
<li><a href="week.html" >Week</a></li>
<li><a href="month.html" >Month</a></li>
<li><a href="year.html" >Year</a></li>
<li><a href="RSS/weewx_rss.xml" >RSS</a></li>
<li><select name="noaaselect" onchange="openNoaaFile(value)">
<option>Monthly summary</option>
#for $monthYear in $SummaryByMonth
<option value="$monthYear">$monthYear</option>
#end for
</select></li>
<li><select name="noaaselect" onchange="openNoaaFile(value)">
<option>Yearly summary</option>
#for $yr in $SummaryByYear
<option value="$yr">$yr</option>
#end for
</select></li>
</ul>
</nav>
</div>
</header>
<div class="main" >
<div class="container" >
<div class="left" >
<div class="card" >
<h1><i class="fa fa-sun-o m-orange" ></i> Current Conditions</h1>
<table class="tablespacer">
<tr><td>Outside Temperature</td><td>$current.outTemp</td></tr>
<tr><td>Wind Chill</td><td>$current.windchill</td></tr>
<tr><td>Heat Index</td><td>$current.heatindex</td></tr>
<tr><td>Dewpoint</td><td>$current.dewpoint</td></tr>
<tr><td>Humidity</td><td>$current.outHumidity</td></tr>
<tr><td>Barometer</td><td>$current.barometer</td></tr>
<tr><td>Barometer Trend ($trend.time_delta.hour.format("%.0f"))</td><td>$trend.barometer</td></tr>
<tr><td>Wind</td><td>$current.windSpeed $current.windDir.ordinal_compass ($current.windDir)</td></tr>
<tr><td>Rain Rate</td><td>$current.rainRate</td></tr>
<tr><td>Inside Temperature</td><td>$current.inTemp</td></tr>
#if $day.extraTemp1.has_data
<tr><td>Pond Temperature</td><td>$current.extraTemp1</td></tr>
#end if
#if $day.UV.has_data
<tr><td>UV</td><td>$current.UV</td></tr>
#end if
#if $day.ET.has_data and $day.ET.sum.raw > 0.0
<tr><td>ET</td><td>$current.ET</td></tr>
#end if
#if $day.radiation.has_data
<tr><td>Solar Radiation</td><td>$current.radiation</td></tr>
#end if
</table>
</div>
<div class="card" >
<h1><i class="fa fa-moon-o m-grau" ></i> Since Midnight</h1>
<table class="tablespacer">
<tr><td>High Temperature</td><td>$day.outTemp.max</td><td>$day.outTemp.maxtime</td></tr>
<tr><td>Low Temperature</td><td>$day.outTemp.min</td><td>$day.outTemp.mintime</td></tr>
<tr><td>High Heat Index</td><td>$day.heatindex.max</td><td>$day.heatindex.maxtime</td></tr>
<tr><td>Low Wind Chill</td><td>$day.windchill.min</td><td>$day.windchill.mintime</td></tr>
<tr><td>High Dewpoint</td><td>$day.dewpoint.max</td><td>$day.dewpoint.maxtime</td></tr>
<tr><td>Low Dewpoint</td><td>$day.dewpoint.min</td><td>$day.dewpoint.mintime</td></tr>
<tr><td>High Humidity</td><td>$day.outHumidity.max</td><td>$day.outHumidity.maxtime</td></tr>
<tr><td>Low Humidity</td><td>$day.outHumidity.min</td><td>$day.outHumidity.mintime</td></tr>
<tr><td>High Barometer</td><td>$day.barometer.max</td><td>$day.barometer.maxtime</td></tr>
<tr><td>Low Barometer</td><td>$day.barometer.min</td><td>$day.barometer.mintime</td></tr>
<tr><td>Today's Rain</td><td>$day.rain.sum</td><td></td></tr>
<tr><td>High Rain Rate</td><td>$day.rainRate.max</td><td>$day.rainRate.maxtime</td></tr>
<tr><td>High Wind</td><td>$day.wind.max $day.wind.gustdir</td><td>$day.wind.maxtime</td></tr>
<tr><td>Average Wind</td><td>$day.wind.avg</td><td></td></tr>
<tr><td>RMS Wind</td><td>$day.wind.rms</td><td></td></tr>
<tr><td>Vector Average Speed</td><td>$day.wind.vecavg</td><td></td></tr>
<tr><td>Vector Average Direction</td><td>$day.wind.vecdir</td><td></td></tr>
<tr><td>High Inside Temperature</td><td>$day.inTemp.max</td><td>$day.inTemp.maxtime</td></tr>
<tr><td>Low Inside Temperature</td><td>$day.inTemp.min</td><td>$day.inTemp.mintime</td></tr>
#if $day.extraTemp1.has_data
<tr><td>High Pond Temp</td><td>$day.extraTemp1.max</td><td>$day.extraTemp1.maxtime</td></tr>
<tr><td>Low Pond Temp</td><td>$day.extraTemp1.min</td><td>$day.extraTemp1.mintime</td></tr>
#end if
#if $day.UV.has_data
<tr><td>High UV</td><td>$day.UV.max</td><td>$day.UV.maxtime</td></tr>
<tr><td>Low UV</td><td>$day.UV.min</td><td>$day.UV.mintime</td></tr>
#end if
#if $day.ET.has_data and $day.ET.sum.raw >0.0
<tr><td>High ET</td><td>$day.ET.max</td><td>$day.ET.maxtime</td></tr>
<tr><td>Low ET</td><td>$day.ET.min</td><td>$day.ET.mintime</td></tr>
#end if
#if $day.radiation.has_data
<tr><td>High Radiation</td><td>$day.radiation.max</td><td>$day.radiation.maxtime</td></tr>
<tr><td>Low Radiation</td><td>$day.radiation.min</td><td>$day.radiation.mintime</td></tr>
#end if
</table>
</div>
#if $Extras.has_key('radar_img')
<div class="card" >
#if $Extras.has_key('radar_url')
<a href="$Extras.radar_url" target="_blank">
#end if
<img src="$Extras.radar_img" alt="Radar" id="radar" class="space small" />
#if $Extras.has_key('radar_url')
</a>
#end if
<h3>
#if $Extras.has_key('radar_gif')
<a id="btn1" class="cpointer" >Image / Animation</a>
<script>
function changeRadar() {
if(document.getElementById("radar").src == "$Extras.radar_img") {
document.getElementById("radar").src = "$Extras.radar_gif";
} else {
document.getElementById("radar").src = "$Extras.radar_img";
}
}
var el = document.getElementById('btn1');
el.onclick = changeRadar;
</script>
#end if
#if $Extras.has_key('radar_url_alt')
#if $Extras.has_key('radar_url_alt_text')
| <a href="$Extras.radar_url_alt" target="_blank" >$Extras.radar_url_alt_text</a>
#else
| <a href="$Extras.radar_url_alt" target="_blank" >Second Radar</a>
#end if
#end if
</h3>
</div>
#end if
#if $Extras.has_key('lightning_map')
<div class="card" >
#if $Extras.has_key('lightning_url')
<a href="$Extras.lightning_url" target="_blank">
#end if
<img src="$Extras.lightning_map" alt="Lightning Map" class="space small" />
#if $Extras.has_key('lightning_url')
</a>
#end if
</div>
#end if
</div>
<div class="right" >
<div class="card" >
<h1><i class="fa fa-star-o m-rot" ></i> Almanac</h1>
#if $almanac.hasExtras
## Extended almanac information is available. Do the full set of tables.
#set $sun_altitude = $almanac.sun.alt
#if $sun_altitude < 0
#set $sun_None="<i>(Always down)</i>"
#else
#set $sun_None="<i>(Always up)</i>"
#end if
<div class="haelfte" >
<h3>Sun</h3>
<table>
<tr><td>Start civil twilight:</td><td>$almanac(horizon=-6).sun(use_center=1).rise</td></tr>
<tr><td>Sunrise</td><td>$almanac.sun.rise.string($sun_None)</td></tr>
<tr><td>Transit:</td><td>$almanac.sun.transit</td></tr>
<tr><td>Sunset:</td><td>$almanac.sun.set.string($sun_None)</td></tr>
<tr><td>End civil twilight:</td><td>$almanac(horizon=-6).sun(use_center=1).set</td></tr>
<tr><td>Azimuth:</td><td>$("%.1f°" % $almanac.sun.az)</td></tr>
<tr><td>Altitude:</td><td>$("%.1f°" % $sun_altitude)</td></tr>
<tr><td>Right ascension:</td><td>$("%.1f°" % $almanac.sun.ra)</td></tr>
<tr><td>Declination:</td><td>$("%.1f°" % $almanac.sun.dec)</td></tr>
#if $almanac.next_equinox.raw < $almanac.next_solstice.raw
## The equinox is before the solstice. Display them in order.
<tr><td>Equinox:</td><td>$almanac.next_equinox</td></tr>
<tr><td>Solstice:</td><td>$almanac.next_solstice</td></tr>
#else
## The solstice is before the equinox. Display them in order.
<tr><td>Solstice:</td><td>$almanac.next_solstice</td></tr>
<tr><td>Equinox:</td><td>$almanac.next_equinox</td></tr>
#end if
</table>
</div>
<div class="haelfte" >
<h3>Moon</h3>
<table>
<tr><td>Rise:</td><td>$almanac.moon.rise</td></tr>
<tr><td>Transit:</td><td>$almanac.moon.transit</td></tr>
<tr><td>Set:</td><td>$almanac.moon.set</td></tr>
<tr><td>Azimuth:</td><td>$("%.1f°" % $almanac.moon.az)</td></tr>
<tr><td>Altitude:</td><td>$("%.1f°" % $almanac.moon.alt)</td></tr>
<tr><td>Right ascension:</td><td>$("%.1f°" % $almanac.moon.ra)</td></tr>
<tr><td>Declination:</td><td>$("%.1f°" % $almanac.moon.dec)</td></tr>
#if $almanac.next_full_moon.raw < $almanac.next_new_moon.raw
<tr><td>Full moon:</td><td>$almanac.next_full_moon</td></tr>
<tr><td>New moon:</td><td>$almanac.next_new_moon</td></tr>
#else
<tr><td>New moon:</td><td>$almanac.next_new_moon</td></tr>
<tr><td>Full moon:</td><td>$almanac.next_full_moon</td></tr>
#end if
<tr><td>Phase:</td><td>$almanac.moon_phase<br />($almanac.moon_fullness% full)</td></tr>
</table>
</div>
#else
## No extended almanac information available. Fall back to a simple table.
<table>
<tr><td>Sunrise:</td><td>$almanac.sunrise</td></tr>
<tr><td>Sunset:</td><td>$almanac.sunset</td></tr>
<tr><td>Moon Phase:</td><td>$almanac.moon_phase<br/>($almanac.moon_fullness% full)</td></tr>
</table>
#end if
</div>
<div class="card cc graphs" >
<h1><i class="fa fa-line-chart m-gruen" ></i> Graphs</h1>
<img src="daytempdew.png" alt="temperatures" />
<img src="daytempchill.png" alt="heatchill" />
<img src="dayrain.png" alt="rain" />
<img src="daywind.png" alt="wind" />
<img src="daybarometer.png" alt="barometer"/>
<img src="daywinddir.png" alt="Hi Wind" />
<img src="dayinside.png" alt="Inside" />
<img src="daywindvec.png" alt="Wind Vector" />
#if $day.radiation.has_data
<img src="dayradiation.png" alt="Radiation" />
#end if
#if $day.UV.has_data
<img src="dayuv.png" alt="UV Index" />
#end if
#if $day.rxCheckPercent.has_data
<img src="dayrx.png" alt="day rx percent"/>
#end if
#if $day.extraTemp1.has_data
<img src="daypond.png" alt="Pond Temperatures" />
#end if
</div>
</div>
</div>
</div>
<footer>
<div class="container-fix" >
All rights reserved. © 2014
#if $Extras.has_key('you')
$Extras.you
#end if
⋅ Design by <a href="http://blauesledersofa.de" >blaues Ledersofa</a>
⋅ Powered by <a href="http://weewx.com/" target="_blank" >weewx</a>
</div>
</footer>
#if $Extras.has_key('googleAnalyticsId')
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '$Extras.googleAnalyticsId', 'auto');
ga('send', 'pageview');
</script>
#end if
</body>
</html>