Hourly XML Format

hourly
This will provide a simplified XML response for all hourly weather data available in the inventory.

Usage:

format=hourly

Example Hourly format data request:

http://datacloud.wxc.com/?datatype=forecast&vs=1.0&passkey=123456789&type=point&var=summary&lat=34.252&lon=-107.33&format=hourly&time=all

Example Hourly format data response:

Hourly Format Return Values

hourly
This is an element that contains a number of georeferenced point elements containing weather data.

source
This is an attribute of the dailysummary element that contains the data format of the weather data you are accessing.

Example:

source=forecast

starttime
This is an attribute of the hourly query that contains the last update time of the forecast information in GMT in the format YYYY-MM-DDTHH:MM:SS. For forecast variables this occurs four times a day. For non-forecast variables this will read 1970-01-01T00:00:00.

Example:

starttime=2010-02-04T12:00:00

title
This is an element that contains a summary description of the data returned.

Example

Weather Central Dataserver API

type
This is an attribute of the title element that describes the format of the data in the return.

Example:

type=text

rights
This is the data copyright info.

Example:

Copyright (c) 2010, Weather Central LP

location
This is the element that contains a number of ranges of weather information for one particular geo-location that you have requested.

lat
This is an attribute of the location element in decimal format containing the latitude. South is represented by the negative sign.

Example:

lat=45.33

lon
This is an attribute of the location element in decimal format containing the longitude. West is represented by the negative sign.

Example:

lon=-93.24

step
This is the element that contains weather information for one particular timestamp. 

time
This is an attribute of the step element that defines the exact timestamp for the weather data in the format YYYY-MM-DDTHH:MM:SS.  This will be in local time based upon the offset parameter in your request.

Example:

dayname=2011-04-14T06:00:00

<var>
Within each ranges element you will have an element specific to the variable you are requesting that  contains the ranges of the variable for that day.

Example:

<Temperature>33</Temperature>

There may be multiple var elements within each step if you are requesting more than one variable.

Example:

unit
This is an attribute within the <var> element that defines the unit the variable is in. For an index of unit types please visit Unit Explanations.

Example:

unit=mph


summary
This is an attribute within the <var> element that defines a string value to a numeric value. This is used specifically in the Wind direction and Clouds variables. For a full list of values please see the Forecast Variables glossary.

Wind_Direction Example: summary=NE, SE, NW
Clouds Example: summary=cloudy, partlycloudy, mostlycloudy