Weather Forecast
We need to filter and build the VT sequences.
This feature allows you to get weather forecast information in your city or in your region.
Usage
If you want to get weather forecast information in your city, you can use the WeatherForecast class from the Nettify.Weather namespace.
Functions
GetWeatherInfo()
Gets the weather info
ListAllCities()
Lists all cities
These functions download the weather information for either the specified city ID or city name and return the relevant weather information, WeatherForecastInfo.
For web development and other cases where asynchronous development is appropriate, you can use the functions that are suffixed with the Async suffix.
Properties of the weather forecast info class
The weather forecast info class, which is obtained using the GetWeatherInfo() function, consists of the following properties:
Weather
Current weather condition in a region
TemperatureMeasurement
Temperature unit measurement
Temperature
Current temperature
FeelsLike
Current feels like temperature
Humidity
Current humidity
WindSpeed
Current wind speed
WindDirection
Current wind direction
Pressure
Current pressure in hectopascals
where the UnitMeasurement is:
Kelvin
K
m.s
hPa
Metric
C
m.s
hPa
Imperial
F
mph
hPa
There is an alternative version, called WeatherForecastOwm, that gets weather information from OpenWeatherMap. The normal WeatherForecast class gets info from The Weather Channel.
WeatherForecast requires an API key that you can get from your IBM Weather.com 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 visiting this page.
Last updated