WxJSP
(Weather Data Java Server Pages)

Weather Logo

See the download page to obtain this program

Description

This code is for a servlet container to display the data collected from an Oregon Scientific Professional Weather Station (e.g. the WMR180 and WMR928N) using the WxLog, WxLogger and WxVet programs. The name WxJSP derives from the common abbreviation 'WX' for "weather conditions" and JSP (Java Server Pages). There are two webapps:

WxChart:
This code displays archived weather data. It was developed by Dauren Sakenov under the supervision of Ken Turner. You can see what the program does by visiting the Stirling Weather History web page. As a convenience, code is included from the JQuery library for JavaScript, and the JFreeChart package for graph display.
WxList:
This code displays weather data logged in the WxList directory by the WxLog and WxLogger programs. This assumes that WxLog has been set up to run in this directory on system startup (e.g. as a Windows service). Using CygWin on Windows, install or remove this service with:
      cygrunsrv -I WxList -p "C:/Progra~1/Tomcat/webapps/wxlist/wxlog.exe"
	-c "C:/Progra~1/Tomcat/webapps/wxlist" -d "Weather List"

      cygrunsrv -R WxList
    

Customisation

For WxChart, the location of the base weather data files is required. This needs the getRoot method to be modified in genchart.jsp and index.jsp.

For WxList, see WxLog and WxLogger for how to customise the code. In particular, backup needs to be set to 1, report needs to be set to 0, and LAST_DAY.DAT needs to exist in the WxList directory.

Usage

WxChart should be installed into the Tomcat webapps directory (or equivalent on other containers). Then visit the application URL, e.g. http://localhost:8080/wxchart. This should result in a page that allows weather parameters to be selected and graphed.

WxList should be installed into the Tomcat webapps directory (or equivalent on other containers). Then visit the application URL, e.g. http://localhost:8080/wxlist. This should result in a page that shows hourly averages for the last 24 hours of the wind speed, wind direction, outdoor temperature, outdoor humidity, outdoor pressure and outdoor rainfall.

Licence

This program is free software. You can redistribute it and/or under the terms of the GNU General Public License as published by the Free Software Foundation - either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

You may re-distribute this software provided you preserve this README file. Bug reports should be sent to the maintainer , who would also appreciate suggestions for improvements.

History

Version 1.0: Ken Turner, 1st September 2011

Version 1.1: Ken Turner, 5th September 2011

Version 1.2: Ken Turner, 26th November 2011

Version 1.3: Ken Turner, 18th February 2013


Up Arrow Up one level to Communications Utilities

Web Ken Turner Home   Email    Search Search Web Pages

Last Update: 18th February 2013
URL: http://www.cs.stir.ac.uk/~kjt/software/comms/wxjsp.html