Skip to main content
namespace ML.SDK
Class

MLWeatherData


namespace ML.SDK
{
class MLWeatherData
}

Inherits from MonoBehaviour

Summary

Api interface for MLWeatherData component. MLWeatherData component fetches the weather for specified location. You can access the latest fetch results through this API. You can also register event handler to be called when the new weather fetch occurs.

Properties

PropertyDesciption
ConnectionCheckStatusEditor only
GeoCodingStatusEditor only
GeoDataEditor only
WeatherDataCurrent weather data all in one place
CloudCoverageCloud coverage percentile.
FeelsLikeFeels like temperature in Celsius.
HumidityCurrent humidity percentage.
MaxTemperatureThe maximum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the maximum of those readouts.
MinTemperatureThe minimum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the minimum of those readouts.
PressureCurrent pressure in Hectopascal (hPa)
RainVolumeInLastHourThe amount of rain in the last hour. It measures rainfall depth in mm.
SnowVolumeInLastHourThe amount of snow in the last hour. It measures the snowfall depth in mm.
TemperatureThe current temperature in Celsius.
VisibilityThe current visibility in meters. Maximum is 10000 meters.
WindBearingThe current wind direction angle from north in degrees. (meteorological)
WindGustWind gust.
WindSpeedThe current wind speed in meter per second (m/s)

Methods

MethodDescription
GetWeatherData()Request the weather data to be updated. Note : Calling this will start a new request for weather data, therefore an API usage. Make sure you do not exceed your allowed API call limit.
GeoCode(string)Editor Only