This is a forecasting extension for the weewx weather system.
Copyright 2013-2014 Matthew Wall

This package includes the forecasting module, unit tests, and a sample skin.
Four forecast sources are supported: US National Weather Service (NWS), the
weather underground (WU), Zambretti, and tide predictions using xtide.
forecast.inc is a cheetah template file designed to be included in other
templates.  At the beginning of forecast.inc is a list of variables that
determine which forecast data will be displayed.  The icons directory contains
images for cloud cover, storms, etc.

Installation instructions:

0) If you want WU forecasts, obtain an api_key:

  http://www.wunderground.com/weather/api/

If you want NWS forecasts, determine your 3-character forecast office
identifier and 5-character location identifier:

  http://www.nws.noaa.gov/oh/hads/USGS/

If you want tide forecasts, install xtides:
  sudo apt-get install xtide
Then determine your location:
  http://tides.mobilegeographics.com/

1) run the installer:

setup.py install --extension weewx-forecast.tgz

2) modify weewx.conf for your location:

[Forecast]
    [[NWS]]
        lid = MAZ014                 # specify a location identifier
        foid = BOX                   # specify a forecast office identifier
    [[WU]]
        api_key = XXXXXXXXXXXXXXXX   # specify a weather underground api_key
    [[XTide]]
        location = Boston            # specify a location

3) restart weewx:

sudo /etc/init.d/weewx stop
sudo /etc/init.d/weewx start

This will result in a skin called forecast with a single web page that
illustrates how to use the forecasts.  See comments in forecast.py for
customization options.

Credits:

Icons were derived from Adam Whitcroft's climacons.
