]> Pileus Git - ~andy/aweather-web/blob - html.ct
Add WIP notice
[~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.png" 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                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
27                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
28                 <link rel="shortcut icon" href="images/aweather.ico" />
29                 <link href="data/global.css" rel="stylesheet" type="text/css" />
30         </head> 
31         <body> 
32                 <div class="top">
33                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
34                         <h1 class="title"><a href=".">AWeather</a></h1>
35                         <h2 class="nav">
36                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
37                                 <span class="sep"></span>
38                                 <% print_nav(&grits[0], page); %>
39                         </h2>
40                 </div>
41                 <div class="content">
42                         <p class="msg">This site is currently under construction.</p>
43                         <p class="msg" style="font-size:8pt; font-weight:normal;">If I had an animated GIF of a guy with a shovel, I would put it here.</p>
44                         <% page->print(); %>
45                         <div style="clear:both;"></div>
46                 </div>
47                 <p class="footer">
48                         Copyright © 2011 Andy Spencer
49                         <% for (int i = 0; footer[i].link; i++) { %>
50                                 | <% print_nav(&footer[i], page); %>
51                         <% } %>
52                 </p>
53         </body> 
54 </html> 
55 <% } %>
56
57 <% /* Normal Pages */ %>
58 <% void print_about(void) { %>
59         <p class="intro">
60         To the best of my knowledge, all the weather related programs currently
61         available for Linux are either very simple and provide little
62         meteorological information or are huge, ancient, or proprietary beasts
63         created for the National Weather Service. AWeather is made to fill the
64         gap by providing lots of weather information while still using standard
65         free software practices. As such, the research focus of this software
66         is weather, not creative way to write software.
67         </p>
68         <hr />
69         <h2>Intended Features</h2>
70         <ul>
71                 <li>High quality data sources
72                     (Level-II archive, etc)</li>
73                 <li>3D Volume browser (todo)</li>
74                 <li>GTK+ User Interface</li>
75                 <li>API for algorithms
76                     (vortex/hail signatures, rain-rate, etc)
77                     (todo)</li>
78                 <li>Other?</li>
79         </ul>
80
81         <h2>Status</h2>
82         <blockquote>Now that it's spring again, progress on AWeather is continuing.</blockquote>
83         <h3>Working</h3>
84         <ul>
85                 <li>Level-II and Conus NEXRAD imagery</li>
86                 <li>Real-time and offline mode</li>
87                 <li>Virtual Globe base rendering</li>
88                 <ul><li>Including terrain, satellite, and map imagery</li></ul>
89                 <li>Auto-updating</li>
90                 <li>volume display</li>
91         </ul>
92         <h3>Todo</h3>
93         <ul>
94                 <li>Vertical cross sections</li>
95                 <li>Derived NEXRAD data (storm relative motion, echo tops, compost reflective, etc)</li>
96                 <li>Additional data sources (watch/warning boxes, surface data, etc)</li>
97                 <li>Animation</li>
98         </ul>
99 <% } %>
100
101 <% void print_news(void) { %>
102         <dl class="news">
103                 <dt>2011-06-13</dt>
104                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
105                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
106                         <li>Added an option to automatically refresh after a timeout</li>
107                         <li>New fullscreen mode</li>
108                 </ul></dd>
109
110                 <dt>2010-05-17</dt>
111                 <dd>AWeather 0.4.1:<ul>
112                         <li>Win32 fixes and improved debug support</li>
113                         <li>Fix bug with daylight savings time</li>
114                         <li>Function to clear old cache entries</li>
115                 </ul></dd>
116
117                 <dt>2010-05-14</dt>
118                 <dd>AWeather 0.4:<ul>
119                         <li>Conus radar images</li>
120                         <li>Multiple radars support</li>
121                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
122                 </ul></dd>
123
124                 <dt>2009-11-09</dt>
125                 <dd>AWeather 0.3.0 released, based on libgis but still rather
126                     buggy.</dd>
127
128                 <dt>2009-10-24</dt>
129                 <dd>AWeather 0.2.3 (maintenance release).<br/>
130                     Added a Application menu entry and a few build/runtime fixes.</dd>
131
132                 <dt>2009-09-02</dt>
133                 <dd>The source repository has been migrated to Git. A lot of
134                     progress is being made on libgis, which is now able to display
135                     a virtual globe using data from NASA servers.</dd>
136         </dl>
137         <p class="note">See also: AWeather's <a href="/git/?p=proj/aweather">gitweb</a></p>
138 <% } %>
139
140 <% void print_screenshots(void) { %>
141         <br />
142         <p>
143                 AWeather provides consistent user interface that allows the
144                 user to zoom in from a high level view of the entire Earth down
145                 to regional and microscale views.
146         </p>
147         <ul class="gallery">
148                 <li>
149                         <% print_screen("synop"); %>
150                         High level view using grits
151                 </li>
152                 <li>
153                         <% print_screen("region"); %>
154                         Regional view of a storm front
155                 </li>
156                 <li>
157                         <% print_screen("meso"); %>
158                         Mesoscale view of a tornadic system
159                 </li>
160                 <li>
161                         <% print_screen("iso"); %>
162                         Close up showing a 52.5 dBZ isosurface
163                 </li>
164         </ul>
165 <% } %>
166
167 <% void print_download(void) { %>
168         <h2>Stable release</h2>
169         <p class="note">
170                 While AWeather won't be considered stable until version 1.0,<br />
171                 these are as close to stable as you can get until then
172         </p>
173         <ul>
174                 <li class="linux"><dl class="inline">
175                         <dt>Source code</dt>
176                         <dd><a href="files/aweather-0.4.2.tar.gz">aweather-0.4.2.tar.gz</a></dd>
177
178                         <dt>Gentoo</dt>
179                         <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
180
181                         <dt>Debian</dt>
182                         <dd>Packaging in progress, check back soon</dd>
183                 </dl></li>
184                 <li class="windows"><dl class="inline">
185                         <dt>Windows</dt>
186                         <dd><a href="files/aweather-0.4.2-gtk.exe">aweather-0.4.2-gtk.exe</a></dd>
187
188                         <dt>Update only</dt>
189                         <dd><a href="files/aweather-0.4.2.exe">aweather-0.4.2.exe</a></dd>
190                 </dl></li>
191                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em">
192                         Coming soon (hopefully)
193                 </li>
194         </ul>
195
196         <h2>Unstable releases</h2>
197         <p class="note">Pre-releases, betas, and other hazardous software</p>
198         <div style="margin-left: 30px;">
199                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
200                 <p>Pre-releases are labeled with a -p0 and are mainly build for testing the Windows packages</p>
201         </div>
202
203         <h2>Development code</h2>
204         <p class="note">
205                 Development code is available from Git, and from gitweb
206                 (<a href="/git/?=proj/aweather">AWeather</a>,
207                  <a href="/git/?=proj/grits">Grits</a>, 
208                  <a href="/git/?=~spenceal/rsl">RSL</a>)
209         </p>
210         <div style="margin-left: 30px;">
211                 <div class="code">git clone git://lug.rose-hulman.edu/proj/aweather</div>
212                 <div class="code">git clone git://lug.rose-hulman.edu/proj/grits</div>
213                 <div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div>
214         </div>
215 <% } %>
216
217 <% void print_development(void) { %>
218         <!-- Open source mumbo jumbo.. -->
219
220         <p class="note" style="clear: both;">
221                 The AWeather <a href="/code/projects/aweather/wiki">development wiki</a>
222                 is the main resource for development material.
223         </p>
224
225         <h2>Bug report and feature requests</h2>
226         <div style="margin-left: 30px;">
227                 <p><a href="/code/projects/aweather/issues/new">New issue</a></p>
228                 <p><a href="/code/projects/aweather/issues">Open issues</a></p>
229         </div>
230
231         <h2>How to contribute?</h2>
232         <ul>
233                 <li>Locate or host Meteorological and Geospatial data feeds</li>
234                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
235                 <li>Test AWeather and submit bug reports</li>
236                 <li>Make better logo!</li>
237         </ul>
238
239         <h2>Building AWeather</h2>
240         <p class="note">See the <a href="code/projects/aweather/wiki/Install">install</a> wiki page for more details</p>
241         <ul>
242                 <li>AWeather has direct dependencies on Grits, and RSL, among other things.</li>
243                 <li>Currently building AWeather will require the exact same version of
244                     Grits to be installed, but this may change in the near future as
245                     the software stabilizes.</li>
246         </ul>
247         
248         <h2>Architecture Overview</h2>
249         <ul>
250                 <li>Built on top of GObject and GTK+</li>
251                 <li>Uses the Grits "Virtual Globe" library for much of the graphics work.<br />
252                     Grits also provides some other generic functionality and a plugin API.</li>
253                 <li>AWeather itself is a front-end for grits along with a
254                     bundle of weather related plugins.</li>
255         </ul>
256 <% } %>
257
258 <% void print_grits(void) { %>
259         <h1>Grits</h1>
260         <p>Grits is a Virtual Globe library developed along side AWeather, but
261            can be used by other programs as well.</p>
262         <p>It is differentiated from other Virtual Globes such as Google Earth,
263            NASA World Wind, and KDE Marble in that it is developed as a library
264            that is used by other programs, such as AWeather, rather than
265            providing a user interface that is used directly.</p>
266         <ul class="gallery">
267                 <li>
268                         <% print_screen("grits"); %>
269                         Grits without any plugins
270
271                 </li>
272                 <li>
273                         <% print_screen("plugins"); %>
274                         Satellite and Environment plugins
275                 </li>
276                 <li>
277                         <% print_screen("terrain"); %>
278                         Elevation plugin showing a mountain
279                 </li>
280         </ul>
281 <% } %>
282
283 <% /* Footer Pages */ %>
284 <% void print_contact(void) { %>
285         <h1>Contact</h1>
286         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
287         <dl class="inline small">
288                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
289                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
290         </dl>
291 <% } %>
292
293 <% void print_legal(void) { %>
294         <h1>Legal</h1>
295 <% } %>
296
297 <% /* Special Pages */ %>
298 <% void print_index(void) { %>
299         <p class="intro">
300                 AWeather is designed to be an advanced weather program which is
301                 designed to be used by weather enthusiasts. AWeather is not
302                 another weather dockapp that simply displays a pre-computed
303                 forecast. It is designed to be an easy to use program that
304                 integrates a variety of weather data in simple unified
305                 interface; see features for more details.
306         </p>
307         <hr />
308         <% print_screen("meso"); %>
309         <div class="buttons">
310                 <a class="download" href="">
311                         <p>Download</p>
312                         <p>AWeather 0.5-p0 source</p>
313                         <img src="images/dl-arrow.png" />
314                 </a>
315                 <a class="download" href="">
316                         <p>Download</p>
317                         <p>AWeather 0.5-p0 source</p>
318                         <img src="images/dl-arrow.png" />
319                 </a>
320         </div>
321         <b>Features:</b>
322         <ul>
323                 <li>Detailed Level-II radar</li>
324                 <li>3D volume rendering</li>
325                 <li>Dual-pole support</li>
326                 <li>Surface and map overlays</li>
327                 <li>Terrain rendering</li>
328                 <li>Online and offline modes with
329                     caching and automatic updating</li>
330         </ul>
331 <% } %>
332
333 <% void print_notfound(void) { %>
334         <h1>404 - Not found</h1>
335 <% } %>