Info
Object Hierarchy:
Description:
`GWeatherInfo` provides a handy way to access weather conditions and forecasts from a [class@GWeather.
Location], aggregating multiple different web services.
It includes also astronomical data such as sunrise times and moon phases.
Namespace: GWeather
Package: gweather4
Content:
Properties:
- public string application_id { get; set; }
A unique identifier, typically in the form of reverse DNS notation, for the application that is querying the weather information.
- public string contact_info { get; set; }
An email address or any other contact form URL.
- public Provider enabled_providers { get; set; }
The enabled weather providers.
- public Location location { get; set construct; }
The location of the weather information.
Static methods:
- public static void store_cache ()
Ensures that any data cached from the network is stored to disk.
Creation methods:
- public Info (Location? location)
Builds a new `GWeatherInfo` that will provide weather information about the given location.
Methods:
- public void abort ()
- public string get_apparent ()
- public unowned string get_application_id ()
Get the application ID of the application fetching the weather.
- public unowned string get_attribution ()
Some weather services require the application showing the data to include an attribution text, possibly including links to the service website.
- public string get_conditions ()
- public unowned string get_contact_info ()
Get the contact information of the application fetching the weather.
- public string get_dew ()
- public Provider get_enabled_providers ()
Gets the bitmask of enabled Provider weather providers.
- public unowned SList<Info> get_forecast_list ()
- public string get_humidity ()
- public unowned string get_icon_name ()
- public unowned Location get_location ()
- public string get_location_name ()
- public string get_pressure ()
- public string get_sky ()
- public string get_sunrise ()
- public string get_sunset ()
- public unowned string get_symbolic_icon_name ()
- public string get_temp ()
- public string get_temp_max ()
- public string get_temp_min ()
- public string get_temp_summary ()
- public bool get_upcoming_moonphases (long phases)
- public string get_update ()
- public bool get_value_apparent (TemperatureUnit unit, out double value)
- public bool get_value_conditions (out ConditionPhenomenon phenomenon, out ConditionQualifier qualifier)
Fills out
phenomenon
andqualifier
with current weather conditions. - public bool get_value_dew (TemperatureUnit unit, out double value)
- public bool get_value_moonphase (out MoonPhase value, out MoonLatitude lat)
- public bool get_value_pressure (PressureUnit unit, out double value)
- public bool get_value_sky (out Sky sky)
Fills out
sky
with current sky conditions. - public bool get_value_sunrise (out ulong value)
- public bool get_value_sunset (out ulong value)
- public bool get_value_temp (TemperatureUnit unit, out double value)
- public bool get_value_temp_max (TemperatureUnit unit, out double value)
- public bool get_value_temp_min (TemperatureUnit unit, out double value)
- public bool get_value_update (out long value)
Note that
value
may be 0 if this has not yet been updated. - public bool get_value_visibility (DistanceUnit unit, out double value)
- public bool get_value_wind (SpeedUnit unit, out double speed, out WindDirection direction)
- public string get_visibility ()
- public string get_weather_summary ()
- public string get_wind ()
- public bool is_daytime ()
- public bool is_valid ()
- public bool network_error ()
- public int next_sun_event ()
- public void set_application_id (string application_id)
Sets the application ID of the application fetching the weather.
- public void set_contact_info (string contact_info)
Sets the contact information for the application fetching the weather.
- public void set_enabled_providers (Provider providers)
Sets the enabled providers for fetching the weather.
- public void set_location (Location? location)
Changes the location of the weather report.
- public void update ()
Requests a reload of weather conditions and forecast data from enabled network services.
Signals:
- public signal void updated ()
This signal is emitted after the initial fetch of the weather data from upstream services, and after every successful call to [method@GWeather.
Inherited Members:
All known members inherited from class GLib.Object