]> Pileus Git - ~andy/aweather-web/blob - html.ct
Fix typo
[~andy/aweather-web] / html.ct
1 <% #include "html.h" %>
2
3 <% /* Global functions */ %>
4 <% void print_header(void) { %>
5 Content-Type: text/html; charset=UTF-8
6
7 <% } %>
8
9 <% void print_nav(const page_t *page, const page_t *cur) { %>
10         <% const char *class = page == cur ? " class=\"cur\"" : ""; %>
11         <a href="<%= page->link %>"<%= class %>><%= page->name %></a>
12 <% } %>
13
14 <% void print_screen(char *name) { %>
15         <a href="screens/<%= name %>.png">
16                 <img src="screens/<%= name %>_s.jpg" alt="<%= name %>" class="screen" />
17         </a>
18 <% } %>
19
20 <% void print_page(const page_t *page) { %>
21 <?xml version="1.0" encoding="UTF-8"?>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
24         <head>
25                 <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title>
26                 <link rel="shortcut icon" href="images/aweather.ico" />
27                 <link href="data/global.css" rel="stylesheet" type="text/css" />
28                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
29                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
30                 <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" />
31                 <% if (page->desc) { %>
32                 <meta name="description" content="<%= page->desc %>" />
33                 <% } %>
34                 <meta name="google-site-verification" content="-SZkTpNRWHrpESTGNZ8Pshnz4zKbwfKv54NoavUKK_Y" />
35                 <meta name="y_key" content="abe8287921b25151" />
36         </head>
37         <body>
38                 <div class="top">
39                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
40                         <h1 class="title"><a href=".">AWeather</a></h1>
41                         <h2 class="nav">
42                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
43                                 <span class="sep"></span>
44                                 <% for (int i = 0; other[i].link;  i++) print_nav(&other[i],  page); %>
45                         </h2>
46                 </div>
47                 <div class="content">
48                         <!--
49                                 <p class="msg">This site is currently under construction</p>
50                                 <p class="msg" style="font-size:8pt; font-weight:normal;">
51                                   If I had an animated GIF of a guy with a shovel, I would put it here</p>
52                         -->
53                         <% page->print(); %>
54                         <div style="clear:both;"></div>
55                 </div>
56                 <p class="footer">
57                         Copyright © 2011-2012 Andy Spencer
58                         <% for (int i = 0; footer[i].link; i++) { %>
59                                 | <% print_nav(&footer[i], page); %>
60                         <% } %>
61                 </p>
62         </body>
63 </html>
64 <% } %>
65
66 <% /* Normal Pages */ %>
67 <% void print_about(void) { %>
68         <p class="intro">
69                 AWeather is a free/open source application which has been
70                 designed to integrate and visualize high-quality meteorological
71                 data using an interactive Virtual Globe interface suitable for
72                 a wide range of users including weather enthusiasts, academics,
73                 and professionals.
74
75                 It is designed to provide more information than is typically
76                 available from weather widgets and simple desktop applications.
77                 At the same time, it strives to be simpler and easier to use
78                 than existing meteorological software packages such as GEMPAK
79                 and IDV.
80
81                 Currently AWeather only displays data provided by the United
82                 States National Weather Service.
83         </p>
84         <hr />
85
86         <h2>Features</h2>
87         <div class="col">
88                 <h3>Working</h3>
89                 <ul>
90                         <li>High quality data sources<ul>
91                                 <li>Level-II archives</li>
92                                 <li>Conus NEXRAD imagery</li>
93                                 <li>Volume display of dBZ iso surfaces</li>
94                                 <li>Storm based and county based<br/>
95                                     warning/watch/advisory displays</li>
96                         </ul></li>
97                         <li>Virtual Globe base rendering<ul>
98                                 <li>Including terrain, satellite, and map imagery</li>
99                         </ul></li>
100                         <li>GPS tracking using GPSd (Linux only)</li>
101                         <li>Real-time and offline mode</li>
102                         <li>Auto-updating</li>
103                         <li>Fullscreen mode</li>
104                 </ul>
105         </div>
106         <div class="col">
107                 <h3>Planned</h3>
108                 <ul>
109                         <li>Additional data sources<ul>
110                                 <li>Surface data (temp., humidity, etc)</li>
111                         </ul></li>
112                         <li>Derived NEXRAD data<ul>
113                                 <li>Storm relative motion</li>
114                                 <li>Compost reflective</li>
115                                 <li>Echo tops</li>
116                         </ul></li>
117                         <li>Vertical cross sections</li>
118                         <li>Spotter network intergration</li>
119                         <li>Animation</li>
120                 </ul>
121         </div>
122
123         <div style="clear:both;"></div>
124         <h2>Licencing</h2>
125         <p>AWeather is free software licensed under the terms of the
126            <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
127            As such, it can be used by any individuals or organizations
128            without any license fees or royalties.</p>
129 <% } %>
130
131 <% void print_news(void) { %>
132         <!-- It's not really spring anymore :/ -->
133         <!-- <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p> -->
134         <dl class="news">
135                 <dt>2012-02-16</dt>
136                 <dd>
137                         AWeather 0.7 released: <ul>
138                                 <li>Added a GPS plugin using
139                                     <a href="http://www.catb.org/gpsd/">GPSd</a><ul>
140                                     <li>Written by Adam Boggs and based on the
141                                         <a href="http://www.aircrafter.org/boggs/stormchasing/BrainStorm/">BrainStorm</a>
142                                         storm chasing tool</li>
143                                     <li>Linux only, or maybe Mac or Windows
144                                         if you're very very brave</li>
145                                 </ul></li>
146                                 <li>Detailed (but opaque) maps in the map plugin</li>
147                                 <li>Automaticlaly save window size and position</li>
148                                 <li>Add toggle buttons for county-based and storm-based alerts</li>
149                                 <li>Miscellaneous bug fixes, including some long-standing rendering artifacts</li>
150                         </ul>
151                 </dd>
152
153                 <dt>2012-01-10</dt>
154                 <dd>
155                         AWeather 0.6.3 released: <ul>
156                                 <li>Added support for Mac OS X</li>
157                                 <li>Added an much improved <a href="manual">User Guide</a>,
158                                     written by Jason Holmes</li>
159                                 <li>Miscellaneous bug fixes</li>
160                         </ul>
161                         <span style="font-size: smaller; font-style: italic;">
162                                 (p.s. AWeather 0.6.2 doesn't exist, you never
163                                 heard of it, and neither have I)</span>
164                 </dd>
165
166                 <dt>2011-11-25</dt>
167                 <dd>
168                         AWeather 0.6.1 released: <ul>
169                                 <li>Added a Radar menu to quickly jump to a NEXRAD/WSR-88D site</li>
170                                 <li>Fixed a bunch of 64-bit bugs</li>
171                         </ul>
172                 </dd>
173
174                 <dt>2011-11-03</dt>
175                 <dd>
176                         AWeather 0.6 released: <ul>
177                                 <li>Added "Alerts" plugin using the 
178                                     <a href="http://alerts.weather.gov/">NWS CAP</a> feed</li>
179                                 <li>Updated GTK+ libraries for Windows</li>
180                                 <li>Behind the scenes, mouse support in Grits
181                                     has been much improved</li>
182                         </ul>
183                         This release was a little bit faster than previous releases.
184                         Hopefully additional improvements to the alerts plugin
185                         can be made incrementally during the 0.x.x releases.
186                 </dd>
187
188                 <dt>2011-09-12</dt>
189                 <dd>
190                         AWeather 0.5.2 released: <ul>
191                                 <li>Added new desktop icons</li>
192                                 <li>Miscellaneous bug fixes</li>
193                         </ul>
194                         Improved organization of the <a href="<%= WIKI_INDEX %>">Wiki</a>
195                 </dd>
196
197                 <dt>2011-08-25</dt>
198                 <dd>
199                         AWeather 0.5.1 released: <ul>
200                                 <li>Bugfix release</li>
201                                 <li>Updated sat/map/elev to provide better data</li>
202                                 <li>First release with <a href="<%= DEBIAN_HOME %>">Debian</a>, 
203                                                    and <a href="<%= UBUNTU_HOME %>">Ubuntu</a> packages</li>
204                         </ul>
205                 </dd>
206         </dl>
207         <p class="note">See also: <a href="oldnews">Older news</a>,
208                                   <a href="<%= GW_AWEATHER %>">gitweb</a></p>
209 <% } %>
210
211 <% void print_oldnews(void) { %>
212         &lt; <a href="news">News</a>
213         <dl class="news">
214                 <dt>2011-06-19</dt>
215                 <dd>
216                         AWeather 0.5 released: <ul>
217                                 <li>Support for volume rendering (isosurfaces)</li>
218                                 <li>Automatic updating</li>
219                                 <li>Fullscreen mode</li>
220                                 <li>Dropped GtkGLExt</li>
221                         </ul>
222                         Forked RSL:<ul>
223                                 <li>Added additional radars</li>
224                                 <li>Fixed lots of bugs</li>
225                                 <li>General code cleanup</li>
226                                 <li>Available from <a href="files/">files</a> directory
227                                     and <a href="<%= GW_RSL %>">git</a></li>
228                         </ul>
229                         <b>Update:</b> AWeather 0.5 is also compatible with the
230                         newly released RSL v1.41
231                 </dd>
232
233                 <dt>2011-06-13</dt>
234                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
235                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
236                         <li>Added an option to automatically refresh after a timeout</li>
237                         <li>New fullscreen mode</li>
238                 </ul></dd>
239
240                 <dt>2010-05-17</dt>
241                 <dd>AWeather 0.4.1:<ul>
242                         <li>Win32 fixes and improved debug support</li>
243                         <li>Fix bug with daylight savings time</li>
244                         <li>Function to clear old cache entries</li>
245                 </ul></dd>
246
247                 <dt>2010-05-14</dt>
248                 <dd>AWeather 0.4:<ul>
249                         <li>Conus radar images</li>
250                         <li>Multiple radars support</li>
251                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
252                 </ul></dd>
253
254                 <dt>2009-11-09</dt>
255                 <dd>AWeather 0.3.0 released, based on libgis but still rather
256                     buggy.</dd>
257
258                 <dt>2009-10-24</dt>
259                 <dd>AWeather 0.2.3 (maintenance release).<br/>
260                     Added a Application menu entry and a few build/runtime fixes.</dd>
261
262                 <dt>2009-09-02</dt>
263                 <dd>The source repository has been migrated to Git. A lot of
264                     progress is being made on libgis, which is now able to display
265                     a virtual globe using data from NASA servers.</dd>
266         </dl>
267 <% } %>
268
269 <% void print_manual(void) { %>
270         <div class="asciidoc">
271                 <% print_file("manual.inc"); %>
272         </div>
273 <% } %>
274
275 <% void print_screenshots(void) { %>
276         <p>
277                 AWeather provides a consistent user interface that allows the
278                 user to zoom in from a high level view of the entire Earth down
279                 to regional and mesoscale views.
280         </p>
281
282         <ul class="gallery">
283                 <li>
284                         <% print_screen("synop"); %>
285                         High level view using Grits
286                 </li>
287                 <li>
288                         <% print_screen("region"); %>
289                         Regional view over the midwest
290                 </li>
291                 <li>
292                         <% print_screen("meso"); %>
293                         Mesoscale view of a tornadic system
294                 </li>
295                 <li>
296                         <% print_screen("iso"); %>
297                         Close up showing a 52.5 dBZ isosurface
298                 </li>
299                 <li>
300                         <% print_screen("alert"); %>
301                         Current severe weather alerts for the CONUS
302                 </li>
303         </ul>
304 <% } %>
305
306 <% void print_download(void) { %>
307         <h2>Stable releases</h2>
308         <p class="note">
309                 While AWeather won't be considered stable until version 1.0,
310                 these are as close to stable as you can get until then
311         </p>
312         <ul>
313                 <li class="linux"><dl class="inline">
314                         <dt>Source code</dt>
315                         <dd>
316                         <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
317                         <a href="../grits/grits-<%= VERSION_GRITS %>.tar.gz">grits-<%= VERSION_GRITS %>.tar.gz</a>,
318                         <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
319                         </dd>
320
321                         <dt>Gentoo</dt>
322                         <dd><span class="code">emerge sci-geosciences/aweather</span> from the sunrise overlay</dd>
323
324                         <dt>Debian</dt>
325                         <dd><span class="code">apt-get install aweather</span> from Debian sid</dd>
326
327                         <dt>Ubuntu</dt>
328                         <dd><span class="code">apt-get install aweather</span> from Ubuntu Oneiric,
329                             or the <a href="<%= UBUNTU_PPA %>">AWeather PPA</a></dd>
330                         <!--
331                                 (Arch packages still have bugs)
332                                 <dt>Arch</dt>
333                                 <dd>Available from the AUR</dd>
334                         -->
335                         <!--
336                                 <dt>Slackware</dt>
337                                 <dd>Available in Slacky 13.37</dd>
338                         -->
339                         <!--
340                                 <dt>Mandriva</dt>
341                                 <dd>Available from contrib/cooker?</dd>
342                         -->
343                 </dl></li>
344                 <li class="windows"><dl class="inline">
345                         <dt>Windows</dt>
346                         <dd><a href="files/aweather-<%= VERSION_WIN %>-gtk.exe">aweather-<%= VERSION_WIN %>-gtk.exe</a>
347                                 (Use this unless you know what you're doing)</dd>
348
349                         <dt>Without GTK</dt>
350                         <dd><a href="files/aweather-<%= VERSION_WIN %>.exe">aweather-<%= VERSION_WIN %>.exe</a></dd>
351                 </dl></li>
352                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
353                         <dt>Mac OS X</dt>
354                         <dd><a href="files/aweather-<%= VERSION_MAC %>.dmg">aweather-<%= VERSION_MAC %>.dmg</a></dd>
355                 </dl></li>
356         </ul>
357
358         <h2>Unstable releases</h2>
359         <p class="note">Pre-releases, betas, and other hazardous software</p>
360         <div style="margin-left: 30px;">
361                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
362                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows and Mac packages</p>
363         </div>
364
365         <h2>Development code</h2>
366         <p class="note">
367                 Development code is available from Git
368                 (and gitweb:
369                  <a href="<%= GW_AWEATHER %>">AWeather</a>,
370                  <a href="<%= GW_GRITS    %>">Grits</a>,
371                  <a href="<%= GW_RSL      %>">RSL</a>)
372         </p>
373         <div style="margin-left: 30px;">
374                 <div class="code">git clone <%= GIT_AWEATHER %></div>
375                 <div class="code">git clone <%= GIT_GRITS    %></div>
376                 <div class="code">git clone <%= GIT_RSL      %></div>
377         </div>
378         <p class="note left" style="margin-top: 1.5em;">
379                 Repositories for packaging and this website
380                 (and gitweb:
381                  <a href="<%= GW_PKG %>">Packaging</a>,
382                  <a href="<%= GW_WEB %>">Website</a>)
383         </p>
384         <div style="margin-left: 30px;">
385                 <div class="code">git clone <%= GIT_PKG %></div>
386                 <div class="code">git clone <%= GIT_WEB %></div>
387         </div>
388 <% } %>
389
390 <% void print_development(void) { %>
391         <!-- Open source mumbo jumbo.. -->
392
393         <p class="note" style="clear: both;">
394                 The AWeather <a href="<%= WIKI_INDEX %>">development wiki</a>
395                 is the main resource for development material.
396         </p>
397
398         <h2>Bug report and feature requests</h2>
399         <div style="margin-left: 30px;">
400                 <p><a href="<%= BUG_LIST %>">List of current issues</a></p>
401                 <p><a href="<%= BUG_NEW  %>">Add a new issue</a></p>
402         </div>
403
404         <h2>How to contribute?</h2>
405         <ul>
406                 <li>Locate or host Meteorological and Geospatial data feeds</li>
407                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
408                 <li>Test AWeather and submit bug reports</li>
409                 <li>Make better logo!</li>
410         </ul>
411
412         <h2>Architecture Overview</h2>
413         <ul>
414                 <li>Built on top of GObject and GTK+</li>
415                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
416                         <li>Handles most of the graphics work using OpenGL for rendering</li>
417                         <li>Provides some other generic functionality, such as data access</li>
418                         <li>Also provides the plugins API used by AWeather</li>
419                 </ul></li>
420                 <li>AWeather itself is a front-end for Grits along with a
421                     bundle of weather related plugins</li>
422         </ul>
423
424         <h2>Building AWeather</h2>
425         <p class="note">See the <a href="<%= WIKI_INSTALL %>">install</a>
426                 wiki page for more details</p>
427         <ul>
428                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
429                 <li>Currently building and running AWeather requires the
430                     exact same version of Grits to be installed<br />
431                     (This may change in the near future as the software stabilizes)</li>
432                 <li>The <a href="download">Downloads</a> page has information
433                     on accessing the AWeather source code repositories</li>
434         </ul>
435 <% } %>
436
437 <% void print_grits(void) { %>
438         <p>
439                 Grits is a Virtual Globe library developed along side AWeather,
440                 but desigend to be usable by other program as well.
441
442                 It is differentiated from other Virtual Globes such as Google
443                 Earth, NASA World Wind, and KDE Marble in that it is developed
444                 primairily as a library that is used by other programs, such as
445                 AWeather, rather than providing it's own user interface.
446         </p>
447
448         <ul class="gallery">
449                 <li>
450                         <% print_screen("grits"); %>
451                         Grits without any plugins
452
453                 </li>
454                 <li>
455                         <% print_screen("plugins"); %>
456                         Satellite and Environment plugins
457                 </li>
458                 <li>
459                         <% print_screen("terrain"); %>
460                         Elevation plugin showing a mountain
461                 </li>
462         </ul>
463 <% } %>
464
465 <% void print_rsl(void) { %>
466         <h2>Radar Software Library</h2>
467         AWeather has at times needed a custom version of the
468         <a href="<%= RSL_WEB %>">TRMM Radar Software Library</a>
469         for accessing Level-II radar files. However, most of the changes have
470         since been incorporated into RSL Version 1.41, which can also be used
471         with AWeather. Some remaining changes exist though and are mostly
472         related to code organization and compiler warnings.
473
474         <h2>Download</h2>
475         <div class="col">
476                 <h3>NASA/TRMM version</h3>
477                 <ul>
478                         <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
479                         <li><a href="<%= RSL_FTP RSL_TAR %>"><%= RSL_TAR %></a></li>
480                 </ul>
481         </div>
482         <div class="col">
483                 <h3>AWeather's version</h3>
484                 <ul>
485                         <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
486                         <li><a href="<%= GW_RSL %>">Gitweb</a></li>
487                         <li><div class="code">git clone <%= GIT_RSL %></div></li>
488                 </ul>
489         </div>
490 <% } %>
491
492 <% /* Footer Pages */ %>
493 <% void print_contact(void) { %>
494         <h1>Contact</h1>
495         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
496         <dl class="inline small">
497                 <dt>Bugs</dt> <dd><a href="<%= BUG_LIST %>">Issue Tracker</a> (sign in to add a new issue)</dd>
498                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
499                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
500         </dl>
501 <% } %>
502
503 <% /* Special Pages */ %>
504 <% void print_index(void) { %>
505         <p class="intro">
506                 AWeather is a free real-time weather data viewer designed for weather enthusiasts.
507                 AWeather is not a weather widget/dockapp that displays a pre-computed forecast.
508                 It is designed to be an easy to use program that integrates a
509                 variety of meteorological data in simple unified interface;
510                 see the <a href="about">about</a> page for more details.
511         </p>
512         <hr />
513         <ul style="float: left;">
514                 <li>Detailed Level-II NEXRAD radar<ul>
515                         <li>3D volume rendering</li>
516                         <li>Dual-pole support</li>
517                 </ul></li>
518                 <li>Online and offline modes<ul>
519                         <li>Data caching</li>
520                         <li>Automatic updating</li>
521                 </ul></li>
522                 <li>Warning/Watch/Advisory display</li>
523                 <li>GPS tracking and logging</li>
524                 <li>Surface and map overlays</li>
525                 <li>Terrain rendering</li>
526         </ul>
527         <div style="float: left; margin-left: 20px;">
528                 <% print_screen("stormbased"); %>
529                 <div style="text-align: center; margin-right: 25px;">
530                         AWeather showing storm based warnings<br />
531                         on top of Level-II radar imagery
532                 </div>
533         </div>
534         <a href="download" class="download" style="float: right;">
535                 <span>Download</span>
536                 <span>AWeather <%= VERSION %></span>
537                 <img src="images/dl-arrow.png" alt="Download" />
538         </a>
539         <p style="text-align: center;"><%= VERSION_DESC %></p>
540 <% } %>
541
542 <% void print_notfound(void) { %>
543         <h1>Error 404 - Page Not found!</h1>
544         <br />
545         <p>This page does not exist!
546         <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
547            otherwise, go away</p>
548 <% } %>
549
550 <% void print_sitemap(const page_t **pages) { %>
551 <?xml version='1.0' encoding='UTF-8'?>
552 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
553         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
554         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
555                             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
556         <% for (int i = 0; pages[i];         i++) { %>
557         <% for (int j = 0; pages[i][j].link; j++) { %>
558         <% if  (pages[i][j].prio >= 0) { %>
559         <url>
560                 <loc><%% "%s%s", PREFIX, pages[i][j].link %></loc>
561                 <priority><%% "%3.1f", pages[i][j].prio %></priority>
562         </url>
563         <% } } } %>
564 </urlset>
565 <% } %>