Flags

Details

class GWeather.FormatOptions(value)

Bases: GObject.GFlags

Format options to influence the text returned by the gweather_*_to_string_full() functions.

DEFAULT = 0

The default string format

SENTENCE_CAPITALIZATION = 1

Capitalize as if the string was starting a sentence

NO_CAPITALIZATION = 2

Capitalize as if the string was appearing within a sentence

class GWeather.Provider(value)

Bases: GObject.GFlags

NONE = 0

no provider, no weather information available

METAR = 1

METAR office, providing current conditions worldwide

OWM = 16

OpenWeatherMap, worldwide and possibly more reliable, but requires attribution and is limited in the number of queries

NWS = 32

US weather office (new API), providing 7 days of hourly forecast (available since 4.2)

IWIN = 4

US weather office (old API), providing 7 days of forecast

ALL = 61

enable all available providers

MET_NO = 8

MET.no service, worldwide but requires attribution and a subscription to the API users mailing-list.