.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, float humidity) | |
__str__ (self) | |
float | value (self) |
str | l10n (self, babel.Locale|GeoLocation|None locale=None, str template="{value}{unit}", str num_pattern="#,##0") |
Public Attributes | |
humidity = humidity | |
Static Public Attributes | |
Units = typing.Literal["%"] | |
units = list(typing.get_args(Units)) | |
Amount of relative humidity in the air. The unit is ``%``
Definition at line 382 of file weather.py.
searx.weather.RelativeHumidity.__init__ | ( | self, | |
float | humidity ) |
Definition at line 390 of file weather.py.
searx.weather.RelativeHumidity.__str__ | ( | self | ) |
Definition at line 393 of file weather.py.
References searx.weather.DateTime.l10n(), searx.weather.Pressure.l10n(), l10n(), searx.weather.Temperature.l10n(), and searx.weather.WindSpeed.l10n().
str searx.weather.RelativeHumidity.l10n | ( | self, | |
babel.Locale | GeoLocation | None | locale = None, | ||
str | template = "{value}{unit}", | ||
str | num_pattern = "#,##0" ) |
Definition at line 399 of file weather.py.
References searx.weather._get_sxng_locale_tag(), searx.preferences.BooleanSetting.value, searx.preferences.EnumStringSetting.value, searx.preferences.MapSetting.value, searx.preferences.MultipleChoiceSetting.value, searx.preferences.SearchLanguageSetting.value, searx.preferences.Setting.value, searx.weather.Pressure.value(), value(), searx.weather.Temperature.value(), and searx.weather.WindSpeed.value().
Referenced by searx.weather.Compass.__str__(), and __str__().
float searx.weather.RelativeHumidity.value | ( | self | ) |
Definition at line 396 of file weather.py.
References searx.result_types.answer.WeatherAnswer.Item.humidity, and humidity.
Referenced by searx.weather.Compass.l10n(), and l10n().
searx.weather.RelativeHumidity.humidity = humidity |
Definition at line 391 of file weather.py.
Referenced by value().
|
static |
Definition at line 385 of file weather.py.
|
static |
Definition at line 388 of file weather.py.