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