Namespace

GWeather – 4.0

Weather data collection

Version4.4.1
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.

since: 4.0

Location

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

since: 4.0

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.

since: 4.0

Aliases

MoonLatitude

The moon declension, in degrees.

since: 4.0

MoonPhase

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

since: 4.0

Enumerations

ConditionPhenomenon

The current or forecasted significant phenomenon.

since: 4.0

ConditionQualifier

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

since: 4.0

DistanceUnit

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

since: 4.0

LocationLevel

The size/scope of a particular GWeatherLocation.

since: 4.0

PressureUnit

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

since: 4.0

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().

since: 4.0

SpeedUnit

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

since: 4.0

TemperatureUnit

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

since: 4.0

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).

since: 4.0

Bitfields

FormatOptions

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

since: 4.0

Provider

since: 4.0

Callbacks

FilterFunc

A filter function for locations.

since: 4.0