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