WeatherReading

Encapsulates weather forecast information


Constructor

new WeatherReading(init)

Initializes a new WeatherReading

Parameters
Name Type Description
init object

The initial values of a new WeatherReading

Properties

Name Type Attributes Description
city string

The name of a city

latitude number

GPS latitude of a city

longitude number

GPS longitude of a city

currency number

The hour portion of the forecast timestamp (24-hr format)

brief string

A short weather description

temp number

The current recorded temperature

low number

The forecast high temperature

high number

The forecast low temperature

windSpeed number

The current recorded wind speed

windDir number

The current recorded wind direction

rainAmount number <optional>

The forecast rain accumulation

snowAmount number <optional>

The forecast snow accumulation

longRange boolean

Whether or not this WeatherReading is a long range forecast

Members

city :string

Type
  • string

latitude :number

Type
  • number

longitude :number

Type
  • number

currency :number

Type
  • number

brief :string

Type
  • string

temp :number

Type
  • number

low :number

Type
  • number

high :number

Type
  • number

windSpeed :number

Type
  • number

windDir :number

Type
  • number

rainAmount :number

Type
  • number

snowAmount :number

Type
  • number

longRange :boolean

Type
  • boolean