-
Notifications
You must be signed in to change notification settings - Fork 11
/
week.html.tmpl
649 lines (644 loc) · 24.3 KB
/
week.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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
<!DOCTYPE html>
<html lang="en" class="no-js">
<head itemscope itemtype="https://schema.org/Website">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Refresh" content="180">
#if $Extras.has_key('cwop')
<meta name="description" content="Weekly weather summary for $station.location ($Extras.cwop). This web site is powered by WeeWx. ">
#else
<meta name="description" content="Weekly weather summary for $station.location. This web site is powered by WeeWx. >
#end if
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="manifest.webmanifest" crossorigin="use-credentials">
<link rel="profile" href="https://gmpg.org/xfn/11" />
#if $Extras.has_key('web_url')
<link href="$Extras.web_url/week.html" itemprop="url"/>
#end if
<title itemprop="name">$station.location Weekly Weather Summary</title>
<!-- Open Graph -->
<meta property="og:site_name" content="$station.location Weekly Weather Summary" />
<meta property="og:title" content="Weekly Weather Summary for $station.location"/>
#if $Extras.has_key('web_url')
<meta property="og:url" content="$Extras.web_url/week.html"/>
#end if
<meta property="og:description" content="Weekly weather summary for $station.location. This web site is powered by WeeWX" />
<meta property="og:type" content="website" />
<!-- FavIcons -->
<link rel="icon" href="favicon.ico" type="image/png">
<link rel="apple-touch-icon" href="touch-icon.png"/>
<!-- Styles -->
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<!-- Font Awesome Icon links -->
<!-- Free license -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.5.1/css/all.css" crossorigin="anonymous">
<!-- Script -->
<script src="js/modernizr-2.6.2.min.js"></script>
<script src="js/checkdiff.js"></script>
</head>
<body>
<header>
<div class="container-fix" >
<div class="h-left" >
<h1><i class="fa-solid 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.latitude[0]°%20$station.latitude[1]%20$station.latitude[2],$station.longitude[0]°%20$station.longitude[1]%20$station.longitude[2]" target="_blank" ><i class="fa-solid fa-location-dot" ></i> Show on map</a></p>
<h2>Weekly Weather Summary</h2>
<p><i class="fa-solid fa-clock" ></i> $current.dateTime $current.dateTime.format("%Z")</p>
<p id="freshweather" class="m-orange"></p>
<script>
window.onload = checkDiff("$current.dateTime ($current.dateTime.format('%Z'))");
</script>
</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="https://weewx.com/" target="_blank" >WeeWX v$station.version</a></td>
</tr>
<tr>
<td><b>Weewx uptime:</b></td>
<td>$station.uptime.long_form</td>
</tr>
<tr>
<td><b>Server uptime:</b></td>
<td>$station.os_uptime.long_form</td>
</tr>
</table>
</div>
<nav>
<ul class="topnav" id="myTopnav">
<li class="icon"><a href="javascript:void(0);" onclick="myFunction()"><i class="fa-solid fa-bars" ></i></a></li>
<li><a href="index.html" >Current</a></li>
<li class="active" ><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="summary.html" >Summaries</a></li>
<li><a href="about.html" >About</a></li>
<li><a href="RSS/weewx_rss.xml" ><i class="fa-solid fa-rss" ></i></a></li>
#if $Extras.has_key('twitter_url')
<li><a href=$Extras.twitter_url><i class="fa-brands fa-twitter" ></i></a></li>
#end if
</ul>
</nav>
</div>
</header>
<div class="main" >
<div class="container" >
<div class="left" >
<div class="card" >
<h1><i class="fa-solid fa-cloud m-grau" ></i> This Week</h1>
<table class="tablespacer">
<tr>
<td>High Temperature</td>
<td>$week.outTemp.max</td>
<td>$week.outTemp.maxtime</td>
</tr>
<tr>
<td>Low Temperature</td>
<td>$week.outTemp.min</td>
<td>$week.outTemp.mintime</td>
</tr>
<tr>
<td>High Heat Index</td>
<td>$week.heatindex.max</td>
<td>$week.heatindex.maxtime</td>
</tr>
<tr>
<td>Low Wind Chill</td>
<td>$week.windchill.min</td>
<td>$week.windchill.mintime</td>
</tr>
<tr>
<td>High Dewpoint</td>
<td>$week.dewpoint.max</td>
<td>$week.dewpoint.maxtime</td>
</tr>
<tr>
<td>Low Dewpoint</td>
<td>$week.dewpoint.min</td>
<td>$week.dewpoint.mintime</td>
</tr>
<tr>
<td>High Humidity</td>
<td>$week.outHumidity.max</td>
<td>$week.outHumidity.maxtime</td>
</tr>
<tr>
<td>Low Humidity</td>
<td>$week.outHumidity.min</td>
<td>$week.outHumidity.mintime</td>
</tr>
<tr>
<td>High Barometer</td>
<td>$week.barometer.max</td>
<td>$week.barometer.maxtime</td>
</tr>
<tr>
<td>Low Barometer</td>
<td>$week.barometer.min</td>
<td>$week.barometer.mintime</td>
</tr>
<tr>
<td>Rain Total</td>
<td>$week.rain.sum</td>
<td></td>
</tr>
<tr>
<td>High Rain Rate</td>
<td>$week.rainRate.max</td>
<td>$week.rainRate.maxtime</td>
</tr>
<tr>
<td>High Wind Speed</td>
<td>$week.wind.max <br> $week.wind.gustdir</td>
<td>$week.wind.maxtime</td>
</tr>
<tr>
<td>Average Wind</td>
<td>$week.wind.avg</td>
<td></td>
</tr>
<tr>
<td>RMS Wind</td>
<td>$week.wind.rms</td>
<td></td>
</tr>
<tr>
<td>Vector Average Speed</td>
<td>$week.wind.vecavg</td>
<td></td>
</tr>
<tr>
<td>Vector Average Direction</td>
<td>$week.wind.vecdir</td>
<td></td>
</tr>
#if $week.inTemp.has_data
<tr>
<td>High Inside Temperature</td>
<td>$week.inTemp.max</td>
<td>$week.inTemp.maxtime</td>
</tr>
<tr>
<td>Low Inside Temperature</td>
<td>$week.inTemp.min</td>
<td>$week.inTemp.mintime</td>
</tr>
#end if
#if $week.extraTemp1.has_data
<tr>
<td>High Pond Temp</td>
<td>$week.extraTemp1.max</td>
<td>$week.extraTemp1.maxtime</td>
</tr>
<tr>
<td>Low Pond Temp</td>
<td>$week.extraTemp1.min</td>
<td>$week.extraTemp1.mintime</td>
</tr>
#end if
#if $week.UV.has_data
<tr>
<td>High UV Index</td>
<td>$week.UV.max</td>
<td>$week.UV.maxtime</td>
</tr>
#end if
#if $week.ET.has_data and $week.ET.sum.raw > 0.0
<tr>
<td>High Evapotranspiration</td>
<td>$week.ET.max.format(format_string="%.5f")</td>
<td>$week.ET.maxtime</td>
</tr>
<tr>
<td>Evapotranspiration Total</td>
<td>$week.ET.sum</td>
<td></td>
</tr>
#end if
#if $week.radiation.has_data
<tr>
<td>High Radiation</td>
<td>$week.radiation.max</td>
<td>$week.radiation.maxtime</td>
</tr>
#end if
#if $week.illuminance.has_data
<tr>
<td>High Brightness</td>
<td>$week.illuminance.max</td>
<td>$week.illuminance.maxtime</td>
</tr>
#end if
#if $week.lightning_strike_count.has_data
<tr>
<td>Most Lightning Strikes</td>
<td>$week.lightning_strike_count.max</td>
<td>$week.lightning_strike_count.maxtime</td>
</tr>
<tr>
<td>Total Lightning Strikes</td>
<td>$week.lightning_strike_count.sum</td>
<td></td>
</tr>
<tr>
<td>Average Strike Distance</td>
<td>$week.lightning_avg_distance.avg</td>
<td></td>
</tr>
#end if
</table>
</div>
#if $yesterday.outTemp.max.has_data
<div class="card" >
<h1><i class="fa-regular fa-calendar-days m-orange" ></i> Yesterday ($yesterday.dateTime.format("%d-%b")) </h1>
<table class="tablespacer">
<tr>
<td>High Temperature</td>
<td>$yesterday.outTemp.max</td>
<td>$yesterday.outTemp.maxtime</td>
</tr>
<tr>
<td>Low Temperature</td>
<td>$yesterday.outTemp.min</td>
<td>$yesterday.outTemp.mintime</td>
</tr>
#if $yesterday.heatindex.max.raw > 79
<tr>
<td>High Heat Index</td>
<td>$yesterday.heatindex.max</td>
<td>$yesterday.heatindex.maxtime</td>
</tr>
#end if
<tr>
<td>Low Wind Chill</td>
<td>$yesterday.windchill.min</td>
<td>$yesterday.windchill.mintime</td>
</tr>
<tr>
<td>High Dewpoint</td>
<td>$yesterday.dewpoint.max</td>
<td>$yesterday.dewpoint.maxtime</td>
</tr>
<tr>
<td>Low Dewpoint</td>
<td>$yesterday.dewpoint.min</td>
<td>$yesterday.dewpoint.mintime</td>
</tr>
<tr>
<td>High Humidity</td>
<td>$yesterday.outHumidity.max</td>
<td>$yesterday.outHumidity.maxtime</td>
</tr>
<tr>
<td>Low Humidity</td>
<td>$yesterday.outHumidity.min</td>
<td>$yesterday.outHumidity.mintime</td>
</tr>
<tr>
<td>High Barometer</td>
<td>$yesterday.barometer.max</td>
<td>$yesterday.barometer.maxtime</td>
</tr>
<tr>
<td>Low Barometer</td>
<td>$yesterday.barometer.min</td>
<td>$yesterday.barometer.mintime</td>
</tr>
<tr>
<td>Rain</td>
<td>$yesterday.rain.sum</td>
<td></td>
</tr>
<tr>
<td>High Rain Rate</td>
<td>$yesterday.rainRate.max</td>
<td>$yesterday.rainRate.maxtime</td>
</tr>
<tr>
<td>High Wind</td>
<td>$yesterday.wind.max <br> $yesterday.wind.gustdir</td>
<td>$yesterday.wind.maxtime</td>
</tr>
<tr>
<td>Average Wind</td>
<td>$yesterday.wind.avg</td>
<td></td>
</tr>
<tr>
<td>Vector Avg Direction</td>
<td>$yesterday.wind.vecdir</td>
<td></td>
</tr>
#if $yesterday.inTemp.has_data
<tr>
<td>High Inside Temperature</td>
<td>$yesterday.inTemp.max</td>
<td>$yesterday.inTemp.maxtime</td>
</tr>
<tr>
<td>Low Inside Temperature</td>
<td>$yesterday.inTemp.min</td>
<td>$yesterday.inTemp.mintime</td>
</tr>
#end if
#if $yesterday.extraTemp1.has_data
<tr>
<td>High Pond Temp</td>
<td>$yesterday.extraTemp1.max</td>
<td>$yesterday.extraTemp1.maxtime</td>
</tr>
<tr>
<td>Low Pond Temp</td>
<td>$yesterday.extraTemp1.min</td>
<td>$yesterday.extraTemp1.mintime</td>
</tr>
#end if
#if $yesterday.UV.has_data
<tr>
<td>High UV Index</td>
<td>$yesterday.UV.max</td>
<td>$yesterday.UV.maxtime</td>
</tr>
#end if
#if $yesterday.ET.has_data and $yesterday.ET.sum.raw > 0.0
<tr>
<td>High Evapotranspiration</td>
<td>$yesterday.ET.max.format(format_string="%.5f")</td>
<td>$yesterday.ET.maxtime</td>
</tr>
<tr>
<td>Evapotranspiration Total</td>
<td>$yesterday.ET.sum</td>
<td></td>
</tr>
#end if
#if $yesterday.radiation.has_data
<tr>
<td>High Radiation</td>
<td>$yesterday.radiation.max</td>
<td>$yesterday.radiation.maxtime</td>
</tr>
#end if
#if $yesterday.illuminance.has_data
<tr>
<td>Brightness</td>
<td>$yesterday.illuminance.max</td>
<td>$yesterday.illuminance.maxtime</td>
</tr>
#end if
#if $yesterday.lightning_strike_count.has_data
<tr>
<td>Lightning Strikes</td>
<td>$yesterday.lightning_strike_count.sum</td>
<td></td>
</tr>
<tr>
<td>Average Strike Distance</td>
<td>$yesterday.lightning_avg_distance.avg</td>
<td></td>
</tr>
#end if
</table>
</div>
#end if
<div class="card" >
<h1><i class="fa-regular fa-calendar-days m-orange" ></i> This Month</h1>
<table class="tablespacer">
<tr>
<td>High Temperature</td>
<td>$month.outTemp.max</td>
<td>$month.outTemp.maxtime</td>
</tr>
<tr>
<td>Low Temperature</td>
<td>$month.outTemp.min</td>
<td>$month.outTemp.mintime</td>
</tr>
<tr>
<td>High Heat Index</td>
<td>$month.heatindex.max</td>
<td>$month.heatindex.maxtime</td>
</tr>
<tr>
<td>Low Wind Chill</td>
<td>$month.windchill.min</td>
<td>$month.windchill.mintime</td>
</tr>
<tr>
<td>High Dewpoint</td>
<td>$month.dewpoint.max</td>
<td>$month.dewpoint.maxtime</td>
</tr>
<tr>
<td>Low Dewpoint</td>
<td>$month.dewpoint.min</td>
<td>$month.dewpoint.mintime</td>
</tr>
<tr>
<td>High Humidity</td>
<td>$month.outHumidity.max</td>
<td>$month.outHumidity.maxtime</td>
</tr>
<tr>
<td>Low Humidity</td>
<td>$month.outHumidity.min</td>
<td>$month.outHumidity.mintime</td>
</tr>
<tr>
<td>High Barometer</td>
<td>$month.barometer.max</td>
<td>$month.barometer.maxtime</td>
</tr>
<tr>
<td>Low Barometer</td>
<td>$month.barometer.min</td>
<td>$month.barometer.mintime</td>
</tr>
<tr>
<td>Rain Total</td>
<td>$month.rain.sum</td>
<td></td>
</tr>
<tr>
<td>High Rain Rate</td>
<td>$month.rainRate.max</td>
<td>$month.rainRate.maxtime</td>
</tr>
<tr>
<td>High Wind Speed</td>
<td>$month.wind.max <br>$month.wind.gustdir</td>
<td>$month.wind.maxtime</td>
</tr>
<tr>
<td>Average Wind</td>
<td>$month.wind.avg</td>
<td></td>
</tr>
<tr>
<td>RMS Wind</td>
<td>$month.wind.rms</td>
<td></td>
</tr>
<tr>
<td>Vector Average Speed</td>
<td>$month.wind.vecavg</td>
<td></td>
</tr>
<tr>
<td>Vector Average Direction</td>
<td>$month.wind.vecdir</td>
<td></td>
</tr>
#if $month.inTemp.has_data
<tr>
<td>High Inside Temperature</td>
<td>$month.inTemp.max</td>
<td>$month.inTemp.maxtime</td>
</tr>
<tr>
<td>Low Inside Temperature</td>
<td>$month.inTemp.min</td>
<td>$month.inTemp.mintime</td>
</tr>
#end if
#if $month.extraTemp1.has_data
<tr>
<td>High Pond Temp</td>
<td>$month.extraTemp1.max</td>
<td>$month.extraTemp1.maxtime</td>
</tr>
<tr>
<td>Low Pond Temp</td>
<td>$month.extraTemp1.min</td>
<td>$month.extraTemp1.mintime</td>
</tr>
#end if
#if $month.UV.has_data
<tr>
<td>High UV Index</td>
<td>$month.UV.max</td>
<td>$month.UV.maxtime</td>
</tr>
#end if
#if $month.ET.has_data and $month.ET.sum.raw > 0.0
<tr>
<td>High Evapotranspiration</td>
<td>$month.ET.max.format(format_string="%.5f")</td>
<td>$month.ET.maxtime</td>
</tr>
<tr>
<td>Evapotranspiration Total</td>
<td>$month.ET.sum</td>
<td></td>
</tr>
#end if
#if $month.radiation.has_data
<tr>
<td>High Radiation</td>
<td>$month.radiation.max</td>
<td>$month.radiation.maxtime</td>
</tr>
#end if
#if $month.illuminance.has_data
<tr>
<td>High Brightness</td>
<td>$month.illuminance.max</td>
<td>$month.illuminance.maxtime</td>
</tr>
#end if
#if $month.lightning_strike_count.has_data
<tr>
<td>Max Lightning Day</td>
<td>$month.lightning_strike_count.max</td>
<td>$month.lightning_strike_count.maxtime</td>
</tr>
<tr>
<td>Lightning Total</td>
<td>$month.lightning_strike_count.sum</td>
<td></td>
</tr>
#end if
</table>
</div>
</div>
<div class="right" >
<div class="card cc graphs" >
<h1><i class="fa-solid fa-chart-line m-gruen" ></i> Weekly Statistics and Plots</h1>
<img src="weektempdew.png" alt="temperatures" />
<img src="weekrain.png" alt="rain" />
<img src="weekwind.png" alt="wind" />
<img src="weekwinddir.png" alt="Hi Wind" />
<img src="weekwindvec.png" alt="Wind Vector" />
<img src="weekbarometer.png" alt="barometer"/>
#if $week.inTemp.has_data
<img src="weekinside.png" alt="Inside" />
#end if
<img src="weekinhumid.png" alt="Inside/Outside Humidity" />
#if $week.UV.has_data
<img src="weekuv.png" alt="UV index" />
#end if
#if $week.radiation.has_data
<img src="weekradiation.png" alt="Radiation" />
#end if
#if $week.lightning_strike_count.has_data
<img src="weeklightning.png" alt="Lightning" />
#end if
#if $week.windBatteryStatus.has_data and $week.outTempBatteryStatus.has_data
<img src="weekbattery.png" alt="week battery"/>
#end if
#if $week.rxCheckPercent.has_data
<img src="weekrx.png" alt="week rx percent"/>
#end if
#if $week.extraTemp1.has_data
<img src="weekpond.png" alt="Pond Temperatures" />
#end if
</div>
</div>
</div>
</div>
<footer>
<div class="container-fix">
<div style="text-align:center">
#if $Extras.has_key('you')
<i class="fa-solid fa-dragon"> </i><a href=mailto:$Extras.email> $Extras.you</a>
#end if
⋅
Copyright <i class="fa-regular fa-copyright"></i> $latest.dateTime.format("%Y")
<br>
Sofaskin by <a href="https://neoground.com">Neoground</a>
⋅
CW9009 Version by <a href="https://www.centuryfarmweather.com">Century Farm Weather</a>
⋅
Powered by<i class="fa-solid fa-cog fa-spin fa-fw" aria-hidden="true"></i><a href="https://weewx.com/" target="_blank">WeeWX</a>
</div>
</div>
</footer>
#if $Extras.has_key('googleAnalyticsId')
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=$Extras.googleAnalyticsId"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '$Extras.googleAnalyticsId');
</script>
#end if
<!-- Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon -->
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
</body>
</html>