Aptivi - Manual
ProjectsWebsiteBlog
Nettify - Manual
Nettify - Manual
  • Welcome
  • Breaking Changes
  • Usage
    • How to use
      • Weather Forecast
      • RSS Feeds
      • English Dictionary
      • Address Investigator
    • How it works
      • Weather Forecast Internals
      • RSS Feeds Internals
  • Report an issue
  • Source code
  • API Reference
Powered by GitBook
On this page
Edit on GitHub
  1. Usage
  2. How to use

Weather Forecast

We need to filter and build the VT sequences.

Last updated 11 months ago

If you want to get weather forecast information in your city, you can use the WeatherForecast class from the Nettify.Weather namespace that contains:

  • GetWeatherInfo()

  • ListAllCities()

There is an alternative version, called WeatherForecastOwm, that gets weather information from OpenWeatherMap. The normal WeatherForecast class gets info from .

These functions download the weather information for either the specified city ID or city name and return the relevant weather information, WeatherForecastInfo, that contains these properties:

  • WeatherCondition Weather

  • UnitMeasurement TemperatureMeasurement (see )

  • double Temperature

  • double Humidity

  • double WindSpeed

  • double WindDirection

where the UnitMeasurement is:

  • Kelvin

    • Measurement for Temperature and FeelsLike is K (Kelvin)

    • Measurement for WindSpeed is m.s (Meters per second)

    • Measurement for Pressure is hPa (Hectopascal)

  • Metric

    • Measurement for Temperature and FeelsLike is C (Celsius)

    • Measurement for WindSpeed is m.s (Meters per second)

    • Measurement for Pressure is hPa (Hectopascal)

  • Imperial

    • Measurement for Temperature and FeelsLike is F (Fahrenheit)

    • Measurement for WindSpeed is mph (Miles per hour)

    • Measurement for Pressure is hPa (Hectopascal)

Asynchronous Operation

For web development and other cases where asynchronous development is appropriate, you can use the functions that are suffixed with the Async suffix.

WeatherForecast requires an API key that you can get from your IBM dashboard. You'll need a package of 15 Day weather forecast. Kelvin is not supported in this mode.

WeatherForecastOwm requires providing the OpenWeatherMap API key for each weather operation, which you can get by .

The Weather Channel
weather conditions
Weather.com
visiting this page