WeatherConsole: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
(Article creation)
(No difference)

Revision as of 21:29, 10 January 2010

Name: Cumulus WeatherConsole
Type: HTML & Javascript
Author: David Jamieson
Contact: DAJ
Last update: 10 Jan 2010
Version: 1.0

The WeatherConsole is an simple web page presenting 'live' and automatically updating information to viewers. It is a text based display with no graphics, and is easily customised to suit your own site design.

Click on the example screen shot on the right

Example screen


Requirements

  • a website
  • Cumulus realtime.txt file being updated regularly by Cumulus


The Basics

  • download the following file...CumulusWeatherConsole.zip
  • Unzip the contents (four files will be extracted)
  • Edit the file wconsole.js. There are two lines which need modified at the top. The location of your realtime.txt data file, and how often to refresh the display.
  • Copy all the files to your web site into a subfolder, or the root -- your choice
  • open wconsole.html in a browser


Possible problems

  • If the WeatherConsole can not find your realtime.txt file it will give an error. Check the setting in wconsole.js. The location is typically a folder location on your webserver. Examples could be /realtime.txt or /data/realtime.txt


Personalising

  • Edit wconsole.html and modify the wording after <TITLE> on the 6th line. This is the text to be displayed in the title bar at the top of the window. You may also wish to edit line 20 to a more personalised title shown within the browser itself.
  • All colouring can be adjusted in the stylesheet file wconsole.css