Web server based weather station using Sparkfun Weather Meters.

Dependencies:   FatFileSystem mbed WeatherMeters SDFileSystem

Revision:
0:616601bde9fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homepage.h	Thu Feb 23 21:38:39 2012 +0000
@@ -0,0 +1,59 @@
+/* Copyright 2012 Adam Green (http://mbed.org/users/AdamGreen/)
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+/* HTML for content to be returned from wind meter. */
+#ifndef _HOMEPAGE_H_
+#define _HOMEPAGE_H_
+
+static const char g_HomePageHTML[] = 
+    "<html>\n" \
+    "<header>\n" \
+    "    <title>Green's Weather Station</title>\n" \
+    "</header>\n" \
+    "<body>\n" \
+    "<h1 align=\"center\"><font color=\"green\">Green's Weather Station</font></h1>\n" \
+    "<p>\n" \
+    "    <br>\n" \
+    "    <table border=\"1\" align=\"center\" cellpadding=\"10\">\n" \
+    "        <tr align=\"center\">\n" \
+    "            <td><strong>Current Wind Speed</strong></td>\n" \
+    "            <td>%.1f km/h</td>\n" \
+    "        </tr>\n" \
+    "        <tr align=\"center\">\n" \
+    "            <td><strong>Maximum Wind Speed</strong></td>\n" \
+    "            <td>%.1f km/h</td>\n" \
+    "        </tr>\n" \
+    "        <tr align=\"center\">\n" \
+    "            <td><strong>Wind Direction</strong></td>\n" \
+    "            <td>%s</td>\n" \
+    "        </tr>\n" \
+    "        <tr align=\"center\">\n" \
+    "            <td><strong>Rain Gauge</strong></td>\n" \
+    "            <td>%.4f mm</td>\n" \
+    "        </tr>\n" \
+    "    </table>\n" \
+    "</p>\n" \
+    "<p align=\"center\">\n" \
+    "    Measurements last reset %s ago.\n" \
+    "</p>\n" \
+    "<form align=\"center\" method=\"post\" action=\"/reset.html\">\n" \
+    "     <input type=\"submit\" value=\"Reset Measurements\">\n" \
+    "</form>\n" \
+    "</body>\n" \
+    "</html>\n";
+
+static const char g_OkStatusLine[] = "HTTP/1.0 200 OK\r\n";
+static const char g_HTMLHeaders[] = "Content-type: text/html\r\n";
+
+#endif /* _HOMEPAGE_H_ */