]> Pileus Git - ~andy/aweather-web/blob - html.ct
Misc updates for 0.6.3
[~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 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>Real-time and offline mode</li>
101                         <li>Auto-updating</li>
102                         <li>Fullscreen mode</li>
103                 </ul>
104         </div>
105         <div class="col">
106                 <h3>Planned</h3>
107                 <ul>
108                         <li>Additional data sources<ul>
109                                 <li>Watch/warning/advisory boxes</li>
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>Animation</li>
119                 </ul>
120         </div>
121
122         <div style="clear:both;"></div>
123         <h2>Licencing</h2>
124         <p>AWeather is free software licensed under the terms of the
125            <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
126            As such, it can be used by any individuals or organizations
127            without any license fees or royalties.</p>
128 <% } %>
129
130 <% void print_news(void) { %>
131         <!-- It's not really spring anymore :/ -->
132         <!-- <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p> -->
133         <dl class="news">
134                 <dt>2012-01-10</dt>
135                 <dd>
136                         AWeather 0.6.3 released: <ul>
137                                 <li>Added support for Mac OS X</li>
138                                 <li>Added an much improved <a href="manual">User Guide</a>,
139                                     written by Jason Holmes</li>
140                                 <li>Miscellaneous bug fixes</li>
141                         </ul>
142                         <span style="font-size: smaller; font-style: italic;">
143                                 (p.s. AWeather 0.6.2 doesn't exist, you never
144                                 heard of it, and neither have I)</small>
145                 </dd>
146
147                 <dt>2011-11-25</dt>
148                 <dd>
149                         AWeather 0.6.1 released: <ul>
150                                 <li>Added a Radar menu to quickly jump to a NEXRAD/WSR-88D site</li>
151                                 <li>Fixed a bunch of 64-bit bugs</li>
152                         </ul>
153                 </dd>
154
155                 <dt>2011-11-03</dt>
156                 <dd>
157                         AWeather 0.6 released: <ul>
158                                 <li>Added "Alerts" plugin using the 
159                                     <a href="http://alerts.weather.gov/">NWS CAP</a> feed</li>
160                                 <li>Updated GTK+ libraries for Windows</li>
161                                 <li>Behind the scenes, mouse support in Grits
162                                     has been much improved</li>
163                         </ul>
164                         This release was a little bit faster than previous releases.
165                         Hopefully additional improvements to the alerts plugin
166                         can be made incrementally during the 0.x.x releases.
167                 </dd>
168
169                 <dt>2011-09-12</dt>
170                 <dd>
171                         AWeather 0.5.2 released: <ul>
172                                 <li>Added new desktop icons</li>
173                                 <li>Miscellaneous bug fixes</li>
174                         </ul>
175                         Improved organization of the <a href="<%= WIKI_INDEX %>">Wiki</a>
176                 </dd>
177
178                 <dt>2011-08-25</dt>
179                 <dd>
180                         AWeather 0.5.1 released: <ul>
181                                 <li>Bugfix release</li>
182                                 <li>Updated sat/map/elev to provide better data</li>
183                                 <li>First release with <a href="<%= DEBIAN_HOME %>">Debian</a>, 
184                                                    and <a href="<%= UBUNTU_HOME %>">Ubuntu</a> packages</li>
185                         </ul>
186                 </dd>
187         </dl>
188         <p class="note">See also: <a href="oldnews">Older news</a>,
189                                   <a href="<%= GW_AWEATHER %>">gitweb</a></p>
190 <% } %>
191
192 <% void print_oldnews(void) { %>
193         &lt; <a href="news">News</a>
194         <dl class="news">
195                 <dt>2011-06-19</dt>
196                 <dd>
197                         AWeather 0.5 released: <ul>
198                                 <li>Support for volume rendering (isosurfaces)</li>
199                                 <li>Automatic updating</li>
200                                 <li>Fullscreen mode</li>
201                                 <li>Dropped GtkGLExt</li>
202                         </ul>
203                         Forked RSL:<ul>
204                                 <li>Added additional radars</li>
205                                 <li>Fixed lots of bugs</li>
206                                 <li>General code cleanup</li>
207                                 <li>Available from <a href="files/">files</a> directory
208                                     and <a href="<%= GW_RSL %>">git</a></li>
209                         </ul>
210                         <b>Update:</b> AWeather 0.5 is also compatible with the
211                         newly released RSL v1.41
212                 </dd>
213
214                 <dt>2011-06-13</dt>
215                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
216                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
217                         <li>Added an option to automatically refresh after a timeout</li>
218                         <li>New fullscreen mode</li>
219                 </ul></dd>
220
221                 <dt>2010-05-17</dt>
222                 <dd>AWeather 0.4.1:<ul>
223                         <li>Win32 fixes and improved debug support</li>
224                         <li>Fix bug with daylight savings time</li>
225                         <li>Function to clear old cache entries</li>
226                 </ul></dd>
227
228                 <dt>2010-05-14</dt>
229                 <dd>AWeather 0.4:<ul>
230                         <li>Conus radar images</li>
231                         <li>Multiple radars support</li>
232                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
233                 </ul></dd>
234
235                 <dt>2009-11-09</dt>
236                 <dd>AWeather 0.3.0 released, based on libgis but still rather
237                     buggy.</dd>
238
239                 <dt>2009-10-24</dt>
240                 <dd>AWeather 0.2.3 (maintenance release).<br/>
241                     Added a Application menu entry and a few build/runtime fixes.</dd>
242
243                 <dt>2009-09-02</dt>
244                 <dd>The source repository has been migrated to Git. A lot of
245                     progress is being made on libgis, which is now able to display
246                     a virtual globe using data from NASA servers.</dd>
247         </dl>
248 <% } %>
249
250 <% void print_manual(void) { %>
251         <div class="asciidoc">
252                 <% print_file("manual.inc"); %>
253         </div>
254 <% } %>
255
256 <% void print_screenshots(void) { %>
257         <p>
258                 AWeather provides a consistent user interface that allows the
259                 user to zoom in from a high level view of the entire Earth down
260                 to regional and mesoscale views.
261         </p>
262
263         <ul class="gallery">
264                 <li>
265                         <% print_screen("synop"); %>
266                         High level view using Grits
267                 </li>
268                 <li>
269                         <% print_screen("region"); %>
270                         Regional view over the midwest
271                 </li>
272                 <li>
273                         <% print_screen("meso"); %>
274                         Mesoscale view of a tornadic system
275                 </li>
276                 <li>
277                         <% print_screen("iso"); %>
278                         Close up showing a 52.5 dBZ isosurface
279                 </li>
280                 <li>
281                         <% print_screen("alert"); %>
282                         Current severe weather alerts for the CONUS
283                 </li>
284         </ul>
285 <% } %>
286
287 <% void print_download(void) { %>
288         <h2>Stable releases</h2>
289         <p class="note">
290                 While AWeather won't be considered stable until version 1.0,
291                 these are as close to stable as you can get until then
292         </p>
293         <ul>
294                 <li class="linux"><dl class="inline">
295                         <dt>Source code</dt>
296                         <dd>
297                         <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
298                         <a href="../grits/grits-<%= VERSION_GRITS %>.tar.gz">grits-<%= VERSION_GRITS %>.tar.gz</a>,
299                         <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
300                         </dd>
301
302                         <dt>Gentoo</dt>
303                         <dd><span class="code">emerge sci-geosciences/aweather</span> from the sunrise overlay</dd>
304
305                         <dt>Debian</dt>
306                         <dd><span class="code">apt-get install aweather</span> from Debian sid</dd>
307
308                         <dt>Ubuntu</dt>
309                         <dd><span class="code">apt-get install aweather</span> from Ubuntu Oneiric,
310                             or the <a href="<%= UBUNTU_PPA %>">AWeather PPA</a></dd>
311                         <!--
312                                 (Arch packages still have bugs)
313                                 <dt>Arch</dt>
314                                 <dd>Available from the AUR</dd>
315                         -->
316                         <!--
317                                 <dt>Slackware</dt>
318                                 <dd>Available in Slacky 13.37</dd>
319                         -->
320                         <!--
321                                 <dt>Mandriva</dt>
322                                 <dd>Available from contrib/cooker?</dd>
323                         -->
324                 </dl></li>
325                 <li class="windows"><dl class="inline">
326                         <dt>Windows</dt>
327                         <dd><a href="files/aweather-<%= VERSION_WIN %>-gtk.exe">aweather-<%= VERSION_WIN %>-gtk.exe</a>
328                                 (Use this unless you know what you're doing)</dd>
329
330                         <dt>Without GTK</dt>
331                         <dd><a href="files/aweather-<%= VERSION_WIN %>.exe">aweather-<%= VERSION_WIN %>.exe</a></dd>
332                 </dl></li>
333                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
334                         <dt>Mac OS X</dt>
335                         <dd><a href="files/aweather-<%= VERSION_MAC %>.dmg">aweather-<%= VERSION_MAC %>.dmg</a></dd>
336                 </dl></li>
337         </ul>
338
339         <h2>Unstable releases</h2>
340         <p class="note">Pre-releases, betas, and other hazardous software</p>
341         <div style="margin-left: 30px;">
342                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
343                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows and Mac packages</p>
344         </div>
345
346         <h2>Development code</h2>
347         <p class="note">
348                 Development code is available from Git
349                 (and gitweb:
350                  <a href="<%= GW_AWEATHER %>">AWeather</a>,
351                  <a href="<%= GW_GRITS    %>">Grits</a>,
352                  <a href="<%= GW_RSL      %>">RSL</a>)
353         </p>
354         <div style="margin-left: 30px;">
355                 <div class="code">git clone <%= GIT_AWEATHER %></div>
356                 <div class="code">git clone <%= GIT_GRITS    %></div>
357                 <div class="code">git clone <%= GIT_RSL      %></div>
358         </div>
359 <% } %>
360
361 <% void print_development(void) { %>
362         <!-- Open source mumbo jumbo.. -->
363
364         <p class="note" style="clear: both;">
365                 The AWeather <a href="<%= WIKI_INDEX %>">development wiki</a>
366                 is the main resource for development material.
367         </p>
368
369         <h2>Bug report and feature requests</h2>
370         <div style="margin-left: 30px;">
371                 <p><a href="<%= BUG_LIST %>">List of current issues</a></p>
372                 <p><a href="<%= BUG_NEW  %>">Add a new issue</a></p>
373         </div>
374
375         <h2>How to contribute?</h2>
376         <ul>
377                 <li>Locate or host Meteorological and Geospatial data feeds</li>
378                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
379                 <li>Test AWeather and submit bug reports</li>
380                 <li>Make better logo!</li>
381         </ul>
382
383         <h2>Architecture Overview</h2>
384         <ul>
385                 <li>Built on top of GObject and GTK+</li>
386                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
387                         <li>Handles most of the graphics work using OpenGL for rendering</li>
388                         <li>Provides some other generic functionality, such as data access</li>
389                         <li>Also provides the plugins API used by AWeather</li>
390                 </ul></li>
391                 <li>AWeather itself is a front-end for Grits along with a
392                     bundle of weather related plugins</li>
393         </ul>
394
395         <h2>Building AWeather</h2>
396         <p class="note">See the <a href="<%= WIKI_INSTALL %>">install</a>
397                 wiki page for more details</p>
398         <ul>
399                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
400                 <li>Currently building and running AWeather requires the
401                     exact same version of Grits to be installed<br />
402                     (This may change in the near future as the software stabilizes)</li>
403         </ul>
404 <% } %>
405
406 <% void print_grits(void) { %>
407         <p>
408                 Grits is a Virtual Globe library developed along side AWeather,
409                 but desigend to be usable by other program as well.
410
411                 It is differentiated from other Virtual Globes such as Google
412                 Earth, NASA World Wind, and KDE Marble in that it is developed
413                 primairily as a library that is used by other programs, such as
414                 AWeather, rather than providing it's own user interface.
415         </p>
416
417         <ul class="gallery">
418                 <li>
419                         <% print_screen("grits"); %>
420                         Grits without any plugins
421
422                 </li>
423                 <li>
424                         <% print_screen("plugins"); %>
425                         Satellite and Environment plugins
426                 </li>
427                 <li>
428                         <% print_screen("terrain"); %>
429                         Elevation plugin showing a mountain
430                 </li>
431         </ul>
432 <% } %>
433
434 <% void print_rsl(void) { %>
435         <h2>Radar Software Library</h2>
436         AWeather has at times needed a custom version of the
437         <a href="<%= RSL_WEB %>">TRMM Radar Software Library</a>
438         for accessing Level-II radar files. However, most of the changes have
439         since been incorporated into RSL Version 1.41, which can also be used
440         with AWeather. Some remaining changes exist though and are mostly
441         related to code organization and compiler warnings.
442
443         <h2>Download</h2>
444         <div class="col">
445                 <h3>NASA/TRMM version</h3>
446                 <ul>
447                         <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
448                         <li><a href="<%= RSL_FTP RSL_TAR %>"><%= RSL_TAR %></a></li>
449                 </ul>
450         </div>
451         <div class="col">
452                 <h3>AWeather's version</h3>
453                 <ul>
454                         <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
455                         <li><a href="<%= GW_RSL %>">Gitweb</a></li>
456                         <li><div class="code">git clone <%= GIT_RSL %></div></li>
457                 </ul>
458         </div>
459 <% } %>
460
461 <% /* Footer Pages */ %>
462 <% void print_contact(void) { %>
463         <h1>Contact</h1>
464         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
465         <dl class="inline small">
466                 <dt>Bugs</dt> <dd><a href="<%= BUG_LIST %>">Issue Tracker</a> (sign in to add a new issue)</dd>
467                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
468                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
469         </dl>
470 <% } %>
471
472 <% /* Special Pages */ %>
473 <% void print_index(void) { %>
474         <p class="intro">
475                 AWeather is a free real-time weather data viewer designed for weather enthusiasts.
476                 AWeather is not a weather widget/dockapp that displays a pre-computed forecast.
477                 It is designed to be an easy to use program that integrates a
478                 variety of meteorological data in simple unified interface;
479                 see the <a href="about">about</a> page for more details.
480         </p>
481         <hr />
482         <ul style="float: left;">
483                 <li>Detailed Level-II NEXRAD radar<ul>
484                         <li>3D volume rendering</li>
485                         <li>Dual-pole support</li>
486                 </ul></li>
487                 <li>Online and offline modes<ul>
488                         <li>Data caching</li>
489                         <li>Automatic updating</li>
490                 </ul></li>
491                 <li>Warning/Watch/Advisory display</li>
492                 <li>Surface and map overlays</li>
493                 <li>Terrain rendering</li>
494         </ul>
495         <div style="float: left; margin-left: 20px;">
496                 <% print_screen("stormbased"); %>
497                 <div style="text-align: center; margin-right: 25px;">
498                         AWeather showing storm based warnings<br />
499                         on top of Level-II radar imagery
500                 </div>
501         </div>
502         <a href="download" class="download" style="float: right;">
503                 <span>Download</span>
504                 <span>AWeather <%= VERSION %></span>
505                 <img src="images/dl-arrow.png" alt="Download" />
506         </a>
507         <p style="text-align: center;"><%= VERSION_DESC %></p>
508 <% } %>
509
510 <% void print_notfound(void) { %>
511         <h1>Error 404 - Page Not found!</h1>
512         <br />
513         <p>This page does not exist!
514         <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
515            otherwise, go away</p>
516 <% } %>
517
518 <% void print_sitemap(const page_t **pages) { %>
519 <?xml version='1.0' encoding='UTF-8'?>
520 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
521         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
522         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
523                             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
524         <% for (int i = 0; pages[i];         i++) { %>
525         <% for (int j = 0; pages[i][j].link; j++) { %>
526         <% if  (pages[i][j].prio >= 0) { %>
527         <url>
528                 <loc><%% "%s%s", PREFIX, pages[i][j].link %></loc>
529                 <priority><%% "%3.1f", pages[i][j].prio %></priority>
530         </url>
531         <% } } } %>
532 </urlset>
533 <% } %>