gitlabEdit

sunWeather 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.

chevron-rightFunctionshashtag
Function
Description

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.

circle-info

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

chevron-rightProperties of the weather forecast info classhashtag

The weather forecast info class, which is obtained using the GetWeatherInfo() function, consists of the following properties:

Property
Description

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:

Type
Temperature
Wind speed
Pressure

Kelvin

K

m.s

hPa

Metric

C

m.s

hPa

Imperial

F

mph

hPa

circle-info

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

circle-exclamation

Last updated