Namespace

GWeather – 4.0

Weather data collection

Version4.4.3
AuthorsThe GWeather authors
LicenseGPL-2.0-or-later
Websitehttps://gnome.pages.gitlab.gnome.org/libgweather/
Sourcehttps://gitlab.gnome.org/GNOME/libgweather/

Build

C headerslibgweather/gweather.h
pkg-config filesgweather4

Dependencies

GObject—2.0 The base type system library
Browse documentation
Gio—2.0 GObject interfaces and objects
Browse documentation

Classes

Info

GWeatherInfo provides a handy way to access weather conditions and forecasts from a GWeatherLocation, aggregating multiple different web services.

Location

A GWeatherLocation represents a “location” of some type known to libgweather; anything from a single weather station to the entire world.

Structs

Conditions

A convenient way to describe the current or forecast weather phenomenon, if significant, and its associated modifier. If the value is not significant, the weather conditions are described by gweather_info_get_sky() instead.

Aliases

MoonLatitude

The moon declension, in degrees.

MoonPhase

The current phase of the moon, represented as degrees, where 0 is the new moon, 90 is the first quarter, etc.

Enumerations

ConditionPhenomenon

The current or forecasted significant phenomenon.

ConditionQualifier

An additional modifier applied to a GWeatherConditionPhenomenon to describe the current or forecasted weather conditions.

DistanceUnit

The measure unit to use for sky visibility values, when retrieved by gweather_info_get_value_visibility().

LocationLevel

The size/scope of a particular GWeatherLocation.

PressureUnit

The measure unit to use for atmospheric pressure values, when retrieved by gweather_info_get_value_pressure().

Sky

The sky and cloud visibility. In general it is discouraged to use this value directly to compute the forecast icon: applications should instead use gweather_info_get_icon_name() or gweather_info_get_symbolic_icon_name().

SpeedUnit

The measure unit to use for wind speed values, when retrieved by gweather_info_get_value_wind().

TemperatureUnit

The measure unit to use for temperature values, when retrieved by the gweather_info_get_value_temp() family of functions.

WindDirection

The direction of the prevailing wind. Composite values such as north-north-east indicate a direction between the two component value (north and north-east).

Bitfields

FormatOptions

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

Provider

Callbacks

FilterFunc

A filter function for locations.