]> Pileus Git - ~andy/aweather-web/blobdiff - html.ct
Mention map plugin
[~andy/aweather-web] / html.ct
diff --git a/html.ct b/html.ct
index 9494b5d8d3f7272b4ae4e5d59ac1ff152228c827..0893c85bd62b12535ad59898b18d9c4c7712bd1f 100644 (file)
--- a/html.ct
+++ b/html.ct
@@ -18,20 +18,23 @@ Content-Type: text/html; charset=UTF-8
 <% } %>
 
 <% void print_page(const page_t *page) { %>
 <% } %>
 
 <% void print_page(const page_t *page) { %>
-<?xml version="1.0" encoding="UTF-8"?> 
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
-       <head> 
-               <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title> 
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+       <head>
+               <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title>
                <link rel="shortcut icon" href="images/aweather.ico" />
                <link href="data/global.css" rel="stylesheet" type="text/css" />
                <meta http-equiv="X-UA-Compatible" content="IE=9" />
                <link rel="shortcut icon" href="images/aweather.ico" />
                <link href="data/global.css" rel="stylesheet" type="text/css" />
                <meta http-equiv="X-UA-Compatible" content="IE=9" />
-               <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
-               <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" >
-               <meta name="description" content="AWeather is a free real-time weather data viewer
-                       that supports Level-II NEXRAD files, polarimetric radars, and volume rendering." >
-       </head> 
-       <body> 
+               <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+               <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" />
+               <% if (page->desc) { %>
+               <meta name="description" content="<%= page->desc %>" />
+               <% } %>
+               <meta name="google-site-verification" content="-SZkTpNRWHrpESTGNZ8Pshnz4zKbwfKv54NoavUKK_Y" />
+               <meta name="y_key" content="abe8287921b25151" />
+       </head>
+       <body>
                <div class="top">
                        <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
                        <h1 class="title"><a href=".">AWeather</a></h1>
                <div class="top">
                        <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
                        <h1 class="title"><a href=".">AWeather</a></h1>
@@ -56,8 +59,8 @@ Content-Type: text/html; charset=UTF-8
                                | <% print_nav(&footer[i], page); %>
                        <% } %>
                </p>
                                | <% print_nav(&footer[i], page); %>
                        <% } %>
                </p>
-       </body> 
-</html> 
+       </body>
+</html>
 <% } %>
 
 <% /* Normal Pages */ %>
 <% } %>
 
 <% /* Normal Pages */ %>
@@ -74,9 +77,12 @@ Content-Type: text/html; charset=UTF-8
                At the same time, it strives to be simpler and easier to use
                than existing meteorological software packages such as GEMPAK
                and IDV.
                At the same time, it strives to be simpler and easier to use
                than existing meteorological software packages such as GEMPAK
                and IDV.
+
+               Currently AWeather only displays data provided by the United
+               States National Weather Service.
        </p>
        <hr />
        </p>
        <hr />
-       
+
        <h2>Features</h2>
        <div class="col">
                <h3>Working</h3>
        <h2>Features</h2>
        <div class="col">
                <h3>Working</h3>
@@ -85,6 +91,8 @@ Content-Type: text/html; charset=UTF-8
                                <li>Level-II archives</li>
                                <li>Conus NEXRAD imagery</li>
                                <li>Volume display of dBZ iso surfaces</li>
                                <li>Level-II archives</li>
                                <li>Conus NEXRAD imagery</li>
                                <li>Volume display of dBZ iso surfaces</li>
+                               <li>Storm based and county based<br/>
+                                   warning/watch/advisory displays</li>
                        </ul></li>
                        <li>Virtual Globe base rendering<ul>
                                <li>Including terrain, satellite, and map imagery</li>
                        </ul></li>
                        <li>Virtual Globe base rendering<ul>
                                <li>Including terrain, satellite, and map imagery</li>
@@ -113,14 +121,94 @@ Content-Type: text/html; charset=UTF-8
 
        <div style="clear:both;"></div>
        <h2>Licencing</h2>
 
        <div style="clear:both;"></div>
        <h2>Licencing</h2>
-       <p>AWeather is free software licensed under the terms of the 
+       <p>AWeather is free software licensed under the terms of the
           <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
           As such, it can be used by any individuals or organizations
           without any license fees or royalties.</p>
 <% } %>
 
 <% void print_news(void) { %>
           <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
           As such, it can be used by any individuals or organizations
           without any license fees or royalties.</p>
 <% } %>
 
 <% void print_news(void) { %>
-       <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p>
+       <!-- It's not really spring anymore :/ -->
+       <!-- <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p> -->
+       <dl class="news">
+               <dt>2012-02-16</dt>
+               <dd>
+                       AWeather 0.7 released: <ul>
+                               <li>Added a GPS plugin that using
+                                   <a href="http://www.catb.org/gpsd/">GPSd</a><ul>
+                                   <li>Written by Adam Boggs and based on the
+                                       <a href="http://www.aircrafter.org/boggs/stormchasing/BrainStorm/">BrainStorm</a>
+                                       storm chasing tool</li>
+                                   <li>Linux only, or maybe Mac or Windows
+                                       if you're very very brave</li>
+                               </ul></li>
+                               <li>Detailed (but opaque) maps in the map plugin</li>
+                               <li>Automaticlaly save window size and position</li>
+                               <li>Add toggle buttons for county-based and storm-based alerts</li>
+                               <li>Miscellaneous bug fixes, including some long-standing rendering artifacts</li>
+                       </ul>
+               </dd>
+
+               <dt>2012-01-10</dt>
+               <dd>
+                       AWeather 0.6.3 released: <ul>
+                               <li>Added support for Mac OS X</li>
+                               <li>Added an much improved <a href="manual">User Guide</a>,
+                                   written by Jason Holmes</li>
+                               <li>Miscellaneous bug fixes</li>
+                       </ul>
+                       <span style="font-size: smaller; font-style: italic;">
+                               (p.s. AWeather 0.6.2 doesn't exist, you never
+                               heard of it, and neither have I)</span>
+               </dd>
+
+               <dt>2011-11-25</dt>
+               <dd>
+                       AWeather 0.6.1 released: <ul>
+                               <li>Added a Radar menu to quickly jump to a NEXRAD/WSR-88D site</li>
+                               <li>Fixed a bunch of 64-bit bugs</li>
+                       </ul>
+               </dd>
+
+               <dt>2011-11-03</dt>
+               <dd>
+                       AWeather 0.6 released: <ul>
+                               <li>Added "Alerts" plugin using the 
+                                   <a href="http://alerts.weather.gov/">NWS CAP</a> feed</li>
+                               <li>Updated GTK+ libraries for Windows</li>
+                               <li>Behind the scenes, mouse support in Grits
+                                   has been much improved</li>
+                       </ul>
+                       This release was a little bit faster than previous releases.
+                       Hopefully additional improvements to the alerts plugin
+                       can be made incrementally during the 0.x.x releases.
+               </dd>
+
+               <dt>2011-09-12</dt>
+               <dd>
+                       AWeather 0.5.2 released: <ul>
+                               <li>Added new desktop icons</li>
+                               <li>Miscellaneous bug fixes</li>
+                       </ul>
+                       Improved organization of the <a href="<%= WIKI_INDEX %>">Wiki</a>
+               </dd>
+
+               <dt>2011-08-25</dt>
+               <dd>
+                       AWeather 0.5.1 released: <ul>
+                               <li>Bugfix release</li>
+                               <li>Updated sat/map/elev to provide better data</li>
+                               <li>First release with <a href="<%= DEBIAN_HOME %>">Debian</a>, 
+                                                  and <a href="<%= UBUNTU_HOME %>">Ubuntu</a> packages</li>
+                       </ul>
+               </dd>
+       </dl>
+       <p class="note">See also: <a href="oldnews">Older news</a>,
+                                 <a href="<%= GW_AWEATHER %>">gitweb</a></p>
+<% } %>
+
+<% void print_oldnews(void) { %>
+       &lt; <a href="news">News</a>
        <dl class="news">
                <dt>2011-06-19</dt>
                <dd>
        <dl class="news">
                <dt>2011-06-19</dt>
                <dd>
@@ -138,7 +226,7 @@ Content-Type: text/html; charset=UTF-8
                                    and <a href="<%= GW_RSL %>">git</a></li>
                        </ul>
                        <b>Update:</b> AWeather 0.5 is also compatible with the
                                    and <a href="<%= GW_RSL %>">git</a></li>
                        </ul>
                        <b>Update:</b> AWeather 0.5 is also compatible with the
-                       newly released RSL v1.41</li>
+                       newly released RSL v1.41
                </dd>
 
                <dt>2011-06-13</dt>
                </dd>
 
                <dt>2011-06-13</dt>
@@ -175,7 +263,12 @@ Content-Type: text/html; charset=UTF-8
                    progress is being made on libgis, which is now able to display
                    a virtual globe using data from NASA servers.</dd>
        </dl>
                    progress is being made on libgis, which is now able to display
                    a virtual globe using data from NASA servers.</dd>
        </dl>
-       <p class="note">See also: AWeather's <a href="<%= GW_AWEATHER %>">gitweb</a></p>
+<% } %>
+
+<% void print_manual(void) { %>
+       <div class="asciidoc">
+               <% print_file("manual.inc"); %>
+       </div>
 <% } %>
 
 <% void print_screenshots(void) { %>
 <% } %>
 
 <% void print_screenshots(void) { %>
@@ -202,6 +295,10 @@ Content-Type: text/html; charset=UTF-8
                        <% print_screen("iso"); %>
                        Close up showing a 52.5 dBZ isosurface
                </li>
                        <% print_screen("iso"); %>
                        Close up showing a 52.5 dBZ isosurface
                </li>
+               <li>
+                       <% print_screen("alert"); %>
+                       Current severe weather alerts for the CONUS
+               </li>
        </ul>
 <% } %>
 
        </ul>
 <% } %>
 
@@ -216,27 +313,44 @@ Content-Type: text/html; charset=UTF-8
                        <dt>Source code</dt>
                        <dd>
                        <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
                        <dt>Source code</dt>
                        <dd>
                        <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
-                       <a href="../grits/grits-<%= VERSION %>.tar.gz">grits-<%= VERSION %>.tar.gz</a>,
+                       <a href="../grits/grits-<%= VERSION_GRITS %>.tar.gz">grits-<%= VERSION_GRITS %>.tar.gz</a>,
                        <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
                        </dd>
 
                        <dt>Gentoo</dt>
                        <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
                        </dd>
 
                        <dt>Gentoo</dt>
-                       <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
+                       <dd><span class="code">emerge sci-geosciences/aweather</span> from the sunrise overlay</dd>
 
                        <dt>Debian</dt>
 
                        <dt>Debian</dt>
-                       <dd><a href="debian/<%= VERSION_DEBIAN %>/">.deb files</a>, further packaging in progress</dd>
+                       <dd><span class="code">apt-get install aweather</span> from Debian sid</dd>
+
+                       <dt>Ubuntu</dt>
+                       <dd><span class="code">apt-get install aweather</span> from Ubuntu Oneiric,
+                           or the <a href="<%= UBUNTU_PPA %>">AWeather PPA</a></dd>
+                       <!--
+                               (Arch packages still have bugs)
+                               <dt>Arch</dt>
+                               <dd>Available from the AUR</dd>
+                       -->
+                       <!--
+                               <dt>Slackware</dt>
+                               <dd>Available in Slacky 13.37</dd>
+                       -->
+                       <!--
+                               <dt>Mandriva</dt>
+                               <dd>Available from contrib/cooker?</dd>
+                       -->
                </dl></li>
                <li class="windows"><dl class="inline">
                        <dt>Windows</dt>
                </dl></li>
                <li class="windows"><dl class="inline">
                        <dt>Windows</dt>
-                       <dd><a href="files/aweather-<%= VERSION_WIN32 %>-gtk.exe">aweather-<%= VERSION_WIN32 %>-gtk.exe</a>
-                               (Use this if you know what you're doing)</dd>
+                       <dd><a href="files/aweather-<%= VERSION_WIN %>-gtk.exe">aweather-<%= VERSION_WIN %>-gtk.exe</a>
+                               (Use this unless you know what you're doing)</dd>
 
                        <dt>Without GTK</dt>
 
                        <dt>Without GTK</dt>
-                       <dd><a href="files/aweather-<%= VERSION_WIN32 %>.exe">aweather-<%= VERSION_WIN32 %>.exe</a></dd>
+                       <dd><a href="files/aweather-<%= VERSION_WIN %>.exe">aweather-<%= VERSION_WIN %>.exe</a></dd>
                </dl></li>
                <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
                        <dt>Mac OS X</dt>
                </dl></li>
                <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
                        <dt>Mac OS X</dt>
-                       <dd>Coming soon (Mac OS developer? <a href="/code/issues/1">Help out</a>)</dd>
+                       <dd><a href="files/aweather-<%= VERSION_MAC %>.dmg">aweather-<%= VERSION_MAC %>.dmg</a></dd>
                </dl></li>
        </ul>
 
                </dl></li>
        </ul>
 
@@ -244,7 +358,7 @@ Content-Type: text/html; charset=UTF-8
        <p class="note">Pre-releases, betas, and other hazardous software</p>
        <div style="margin-left: 30px;">
                <p>Check out the <a href="files">files</a> directory for any potential updates</p>
        <p class="note">Pre-releases, betas, and other hazardous software</p>
        <div style="margin-left: 30px;">
                <p>Check out the <a href="files">files</a> directory for any potential updates</p>
-               <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows packages</p>
+               <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows and Mac packages</p>
        </div>
 
        <h2>Development code</h2>
        </div>
 
        <h2>Development code</h2>
@@ -252,7 +366,7 @@ Content-Type: text/html; charset=UTF-8
                Development code is available from Git
                (and gitweb:
                 <a href="<%= GW_AWEATHER %>">AWeather</a>,
                Development code is available from Git
                (and gitweb:
                 <a href="<%= GW_AWEATHER %>">AWeather</a>,
-                <a href="<%= GW_GRITS    %>">Grits</a>, 
+                <a href="<%= GW_GRITS    %>">Grits</a>,
                 <a href="<%= GW_RSL      %>">RSL</a>)
        </p>
        <div style="margin-left: 30px;">
                 <a href="<%= GW_RSL      %>">RSL</a>)
        </p>
        <div style="margin-left: 30px;">
@@ -349,7 +463,7 @@ Content-Type: text/html; charset=UTF-8
                <h3>NASA/TRMM version</h3>
                <ul>
                        <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
                <h3>NASA/TRMM version</h3>
                <ul>
                        <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
-                       <li><a href="<%= RSL_FTP %>">rsl-v1.41.tar.gz</a></li>
+                       <li><a href="<%= RSL_FTP RSL_TAR %>"><%= RSL_TAR %></a></li>
                </ul>
        </div>
        <div class="col">
                </ul>
        </div>
        <div class="col">
@@ -392,17 +506,24 @@ Content-Type: text/html; charset=UTF-8
                        <li>Data caching</li>
                        <li>Automatic updating</li>
                </ul></li>
                        <li>Data caching</li>
                        <li>Automatic updating</li>
                </ul></li>
+               <li>Warning/Watch/Advisory display</li>
+               <li>GPS tracking and logging</li>
                <li>Surface and map overlays</li>
                <li>Terrain rendering</li>
        </ul>
        <div style="float: left; margin-left: 20px;">
                <li>Surface and map overlays</li>
                <li>Terrain rendering</li>
        </ul>
        <div style="float: left; margin-left: 20px;">
-               <% print_screen("meso"); %>
+               <% print_screen("stormbased"); %>
+               <div style="text-align: center; margin-right: 25px;">
+                       AWeather showing storm based warnings<br />
+                       on top of Level-II radar imagery
+               </div>
        </div>
        <a href="download" class="download" style="float: right;">
                <span>Download</span>
                <span>AWeather <%= VERSION %></span>
                <img src="images/dl-arrow.png" alt="Download" />
        </a>
        </div>
        <a href="download" class="download" style="float: right;">
                <span>Download</span>
                <span>AWeather <%= VERSION %></span>
                <img src="images/dl-arrow.png" alt="Download" />
        </a>
+       <p style="text-align: center;"><%= VERSION_DESC %></p>
 <% } %>
 
 <% void print_notfound(void) { %>
 <% } %>
 
 <% void print_notfound(void) { %>
@@ -412,3 +533,20 @@ Content-Type: text/html; charset=UTF-8
        <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
           otherwise, go away</p>
 <% } %>
        <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
           otherwise, go away</p>
 <% } %>
+
+<% void print_sitemap(const page_t **pages) { %>
+<?xml version='1.0' encoding='UTF-8'?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
+                           http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
+       <% for (int i = 0; pages[i];         i++) { %>
+       <% for (int j = 0; pages[i][j].link; j++) { %>
+       <% if  (pages[i][j].prio >= 0) { %>
+       <url>
+               <loc><%% "%s%s", PREFIX, pages[i][j].link %></loc>
+               <priority><%% "%3.1f", pages[i][j].prio %></priority>
+       </url>
+       <% } } } %>
+</urlset>
+<% } %>