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