|
@@ -1,183 +1,183 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
- <head itemscope itemtype="http://schema.org/Website">
|
|
|
-
|
|
|
-<?php
|
|
|
-//Gets file name from url
|
|
|
-
|
|
|
-if(empty(\$_REQUEST["report"])) {
|
|
|
- //if empty then grab the latest years report
|
|
|
- \$year = date("Y");
|
|
|
- \$report = "NOAA/NOAA-".\$year.".txt";
|
|
|
- } else {
|
|
|
- \$report = filter_var(\$_REQUEST["report"],FILTER_SANITIZE_URL);
|
|
|
-}
|
|
|
-
|
|
|
-//Get labels for meta and page titles
|
|
|
-\$labels = preg_split("/[-.]/", \$report);
|
|
|
-\$count = count(\$labels);
|
|
|
-
|
|
|
-if (\$count == 3){
|
|
|
- \$title = \$labels[1];
|
|
|
-}
|
|
|
-
|
|
|
-if (\$count == 4){
|
|
|
- \$title = date("F Y", mktime(0, 0, 0, \$labels[2], 1, \$labels[1]));
|
|
|
-}
|
|
|
-?>
|
|
|
-
|
|
|
- <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="$station.location Weather Station ($Extras.cwop) Climate Summary. This web site is powered by WeeWX">
|
|
|
- #else
|
|
|
- <meta name="description" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX">
|
|
|
- #end if
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
- <link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
|
- #if $Extras.has_key('web_url')
|
|
|
- <link rel="canonical" href="$Extras.web_url/summary.html"/>
|
|
|
- #end if
|
|
|
-
|
|
|
- #if $Extras.has_key('cwop')
|
|
|
-<?php
|
|
|
- echo"<title>$station.location ($Extras.cwop) Climate Summary for \$title </title>";
|
|
|
-?>
|
|
|
- #else
|
|
|
-<?php
|
|
|
- echo"<title>$station.location Climate Summary for \$title </title>";
|
|
|
-?>
|
|
|
- #end if
|
|
|
-
|
|
|
- <!-- Open Graph -->
|
|
|
- <meta property="og:site_name" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX." />
|
|
|
- <meta property="og:title" content="$station.location Weather Station Climate Summary"/>
|
|
|
- #if $Extras.has_key('web_url')
|
|
|
- <meta property="og:url" content="$Extras.web_url/summary.html"/>
|
|
|
- #end if
|
|
|
- <meta property="og:description" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX." />
|
|
|
- <meta property="og:type" content="$station.location Weather Station Climate Summary" />
|
|
|
-
|
|
|
- <!-- FavIcons -->
|
|
|
- <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 rel="stylesheet" href="css/main.css">
|
|
|
-
|
|
|
- <!-- Font Awesome Icon links -->
|
|
|
-
|
|
|
- <!-- Free license -->
|
|
|
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
|
|
|
-
|
|
|
- <!-- Script -->
|
|
|
- <script src="js/modernizr-2.6.2.min.js"></script>
|
|
|
- <script src="js/checkdiff.js"></script>
|
|
|
-
|
|
|
- </head>
|
|
|
-
|
|
|
- <body>
|
|
|
- <!-- Menu navbar -->
|
|
|
- <header>
|
|
|
- <div class="container-fix" >
|
|
|
- <div class="h-left" >
|
|
|
- <h1><i class="fas 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="fas fa-map-marker-alt" ></i> Show on map</a></p>
|
|
|
-<?php
|
|
|
- echo "<h2>Climate Summary for \$title</h2>";
|
|
|
-?>
|
|
|
- <p><i class="far 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="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 class="topnav" id="myTopnav">
|
|
|
- <li class="icon"><a href="javascript:void(0);" onclick="myFunction()"><i class="fas fa-bars" ></i></a></li>
|
|
|
- <li><a href="/" >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 class="active" ><a href="summary.html" >Summaries</a></li>
|
|
|
- <li><a href="about.html" >About</a></li>
|
|
|
- <li><a href="RSS/weewx_rss.xml" ><i class="fas fa-rss" ></i></a></li>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+ <head itemscope itemtype="http://schema.org/Website">
|
|
|
+
|
|
|
+<?php
|
|
|
+//Gets file name from url
|
|
|
+
|
|
|
+if(empty(\$_REQUEST["report"])) {
|
|
|
+ //if empty then grab the latest years report
|
|
|
+ \$year = date("Y");
|
|
|
+ \$report = "NOAA/NOAA-".\$year.".txt";
|
|
|
+ } else {
|
|
|
+ \$report = filter_var(\$_REQUEST["report"],FILTER_SANITIZE_URL);
|
|
|
+}
|
|
|
+
|
|
|
+//Get labels for meta and page titles
|
|
|
+\$labels = preg_split("/[-.]/", \$report);
|
|
|
+\$count = count(\$labels);
|
|
|
+
|
|
|
+if (\$count == 3){
|
|
|
+ \$title = \$labels[1];
|
|
|
+}
|
|
|
+
|
|
|
+if (\$count == 4){
|
|
|
+ \$title = date("F Y", mktime(0, 0, 0, \$labels[2], 1, \$labels[1]));
|
|
|
+}
|
|
|
+?>
|
|
|
+
|
|
|
+ <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="$station.location Weather Station ($Extras.cwop) Climate Summary. This web site is powered by WeeWX">
|
|
|
+ #else
|
|
|
+ <meta name="description" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX">
|
|
|
+ #end if
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
+ <link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
|
+ #if $Extras.has_key('web_url')
|
|
|
+ <link rel="canonical" href="$Extras.web_url/summary.html"/>
|
|
|
+ #end if
|
|
|
+
|
|
|
+ #if $Extras.has_key('cwop')
|
|
|
+<?php
|
|
|
+ echo"<title>$station.location ($Extras.cwop) Climate Summary for \$title </title>";
|
|
|
+?>
|
|
|
+ #else
|
|
|
+<?php
|
|
|
+ echo"<title>$station.location Climate Summary for \$title </title>";
|
|
|
+?>
|
|
|
+ #end if
|
|
|
+
|
|
|
+ <!-- Open Graph -->
|
|
|
+ <meta property="og:site_name" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX." />
|
|
|
+ <meta property="og:title" content="$station.location Weather Station Climate Summary"/>
|
|
|
+ #if $Extras.has_key('web_url')
|
|
|
+ <meta property="og:url" content="$Extras.web_url/summary.html"/>
|
|
|
+ #end if
|
|
|
+ <meta property="og:description" content="$station.location Weather Station Climate Summary. This web site is powered by WeeWX." />
|
|
|
+ <meta property="og:type" content="$station.location Weather Station Climate Summary" />
|
|
|
+
|
|
|
+ <!-- FavIcons -->
|
|
|
+ <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 rel="stylesheet" href="css/main.css">
|
|
|
+
|
|
|
+ <!-- Font Awesome Icon links -->
|
|
|
+
|
|
|
+ <!-- Free license -->
|
|
|
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu" crossorigin="anonymous">
|
|
|
+
|
|
|
+ <!-- Script -->
|
|
|
+ <script src="js/modernizr-2.6.2.min.js"></script>
|
|
|
+ <script src="js/checkdiff.js"></script>
|
|
|
+
|
|
|
+ </head>
|
|
|
+
|
|
|
+ <body>
|
|
|
+ <!-- Menu navbar -->
|
|
|
+ <header>
|
|
|
+ <div class="container-fix" >
|
|
|
+ <div class="h-left" >
|
|
|
+ <h1><i class="fas 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="fas fa-map-marker-alt" ></i> Show on map</a></p>
|
|
|
+<?php
|
|
|
+ echo "<h2>Climate Summary for \$title</h2>";
|
|
|
+?>
|
|
|
+ <p><i class="far 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="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 class="topnav" id="myTopnav">
|
|
|
+ <li class="icon"><a href="javascript:void(0);" onclick="myFunction()"><i class="fas fa-bars" ></i></a></li>
|
|
|
+ <li><a href="/" >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 class="active" ><a href="summary.html" >Summaries</a></li>
|
|
|
+ <li><a href="about.html" >About</a></li>
|
|
|
+ <li><a href="RSS/weewx_rss.xml" ><i class="fas fa-rss" ></i></a></li>
|
|
|
#if $Extras.has_key('twitter_url')
|
|
|
<li><a href=$Extras.twitter_url><i class="fab fa-twitter" ></i></a></li>
|
|
|
- #end if
|
|
|
- </ul>
|
|
|
- </nav>
|
|
|
- </div>
|
|
|
- </header>
|
|
|
- <!-- Main container -->
|
|
|
- <div class="main" >
|
|
|
- <div class="container" >
|
|
|
- <div class="center" >
|
|
|
- <div class="card">
|
|
|
-
|
|
|
-<?php
|
|
|
-
|
|
|
- if(file_exists(\$report)){
|
|
|
- echo "<pre class=\"noaareport\">";
|
|
|
- echo file_get_contents(\$report);
|
|
|
- echo "</pre>";
|
|
|
- }
|
|
|
-?>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <footer>
|
|
|
- <div style="text-align:center">
|
|
|
- #if $Extras.has_key('you')
|
|
|
- <i class="fab fa-pied-piper-pp"> </i><a href=mailto:$Extras.email> $Extras.you</a>
|
|
|
- #end if
|
|
|
- ⋅
|
|
|
- Copyright <i class="far fa-copyright"></i> $latest.dateTime.format("%Y")
|
|
|
- <br>
|
|
|
- Sofaskin by <a href="http://neoground.com">Neoground</a>
|
|
|
- ⋅
|
|
|
- CW9009 Version by <a href="http://cw9009.x10host.com">JDS</a>
|
|
|
- ⋅
|
|
|
- Powered by<i class="fas fa-cog fa-spin fa-fw" aria-hidden="true"></i><a href="http://weewx.com/" target="_blank">WeeWX</a>
|
|
|
- </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>
|
|
|
-
|
|
|
+ #end if
|
|
|
+ </ul>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ </header>
|
|
|
+ <!-- Main container -->
|
|
|
+ <div class="main" >
|
|
|
+ <div class="container" >
|
|
|
+ <div class="center" >
|
|
|
+ <div class="card">
|
|
|
+
|
|
|
+<?php
|
|
|
+
|
|
|
+ if(file_exists(\$report)){
|
|
|
+ echo "<pre class=\"noaareport\">";
|
|
|
+ echo file_get_contents(\$report);
|
|
|
+ echo "</pre>";
|
|
|
+ }
|
|
|
+?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <footer>
|
|
|
+ <div style="text-align:center">
|
|
|
+ #if $Extras.has_key('you')
|
|
|
+ <i class="fab fa-pied-piper-pp"> </i><a href=mailto:$Extras.email> $Extras.you</a>
|
|
|
+ #end if
|
|
|
+ ⋅
|
|
|
+ Copyright <i class="far fa-copyright"></i> $latest.dateTime.format("%Y")
|
|
|
+ <br>
|
|
|
+ Sofaskin by <a href="http://neoground.com">Neoground</a>
|
|
|
+ ⋅
|
|
|
+ CW9009 Version by <a href="http://cw9009.x10host.com">JDS</a>
|
|
|
+ ⋅
|
|
|
+ Powered by<i class="fas fa-cog fa-spin fa-fw" aria-hidden="true"></i><a href="http://weewx.com/" target="_blank">WeeWX</a>
|
|
|
+ </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>
|
|
|
+
|