woob.capabilities.weather
¶
- class Forecast(date=NotLoaded, low=None, high=None, text=None, unit=None, url=None)[source]¶
Bases:
BaseWeather
Weather forecast.
- Variables:
url – (
str
) urlprecipitation – (
str
) Precipitation typeprecipitation_probability – (
float
) Probability of precipitation (ratio)wind_direction – (
str
) Wind directionwind_speed – (
float
) Wind speed (in km/h)humidity – (
float
) Relative humidity (ratio)pressure – (
float
) Atmospheric pressure (in hPa)visibility – (
float
) Horizontal visibility distance (in km)cloud – (
int
) Cloud coverage (in okta (0-8))date – (
datetime
,date
,str
) Date for the forecastlow – (
Temperature
) Low temperaturehigh – (
Temperature
) High temperaturetext – (
str
) Comment on forecast
- class Current(date=NotLoaded, temp=None, text=None, unit=None, url=None)[source]¶
Bases:
BaseWeather
Current weather.
- Variables:
url – (
str
) urlprecipitation – (
str
) Precipitation typeprecipitation_probability – (
float
) Probability of precipitation (ratio)wind_direction – (
str
) Wind directionwind_speed – (
float
) Wind speed (in km/h)humidity – (
float
) Relative humidity (ratio)pressure – (
float
) Atmospheric pressure (in hPa)visibility – (
float
) Horizontal visibility distance (in km)cloud – (
int
) Cloud coverage (in okta (0-8))date – (
date
,datetime
) Date of measuretext – (
str
) Comment about current weathertemp – (
Temperature
) Current temperature
- class City(id='', name=None, url=None)[source]¶
Bases:
BaseObject
City where to find weather.
- class Temperature(value=NotLoaded, unit='', url=None)[source]¶
Bases:
BaseObject
- class CapWeather[source]¶
Bases:
Capability
Capability for weather websites.
- class BaseWeather(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
- Variables:
url – (
str
) urlprecipitation – (
str
) Precipitation typeprecipitation_probability – (
float
) Probability of precipitation (ratio)wind_direction – (
str
) Wind directionwind_speed – (
float
) Wind speed (in km/h)humidity – (
float
) Relative humidity (ratio)pressure – (
float
) Atmospheric pressure (in hPa)visibility – (
float
) Horizontal visibility distance (in km)cloud – (
int
) Cloud coverage (in okta (0-8))
- class Direction(*args, **kwargs)[source]¶
Bases:
Enum
- S = 'South'¶
- N = 'North'¶
- E = 'East'¶
- W = 'West'¶
- SE = 'Southeast'¶
- SW = 'Southwest'¶
- NW = 'Northwest'¶
- NE = 'Northeast'¶
- SSE = 'South-Southeast'¶
- SSW = 'South-Southwest'¶
- NNW = 'North-Northwest'¶
- NNE = 'North-Northeast'¶
- ESE = 'East-Southeast'¶
- ENE = 'East-Northeast'¶
- WSW = 'West-Southwest'¶
- WNW = 'West-Northwest'¶
- Variable = 'Variable'¶