Functions

location_level_to_string (level)

sky_to_string (sky)

sky_to_string_full (sky, options)

speed_unit_to_string (unit)

temperature_unit_to_real (unit)

wind_direction_to_string (wind)

wind_direction_to_string_full (wind, options)

Details

GWeather.location_level_to_string(level)
Parameters:

level (GWeather.LocationLevel) – a GWeather.LocationLevel

Returns:

a string

Return type:

str

Returns the location level as a string, useful for debugging purposes.

GWeather.sky_to_string(sky)
Parameters:

sky (GWeather.Sky) –

Return type:

str

GWeather.sky_to_string_full(sky, options)
Parameters:
Return type:

str

GWeather.speed_unit_to_string(unit)
Parameters:

unit (GWeather.SpeedUnit) – a speed unit, or GWeather.SpeedUnit.DEFAULT

Return type:

str

Creates a human-readable, localized representation of unit

GWeather.temperature_unit_to_real(unit)
Parameters:

unit (GWeather.TemperatureUnit) – a tempeature unit, or GWeather.TemperatureUnit.DEFAULT

Return type:

GWeather.TemperatureUnit

Resolve unit into a real temperature unit, potentially considering locale defaults.

GWeather.wind_direction_to_string(wind)
Parameters:

wind (GWeather.WindDirection) –

Return type:

str

GWeather.wind_direction_to_string_full(wind, options)
Parameters:
Return type:

str