Back to Searxng

Weather

searx/templates/simple/answer/weather.html

latest973 B
Original Source

{% macro show_weather_data(answer, data) %}

| {%- if data.url %}{% endif -%} | | {{ _("Temperature") }}: | {{ data.temperature.l10n(locale=data.location) }} | {{ _("Feels Like") }}: | {{ data.feels_like.l10n(locale=data.location) }} | | {{ _("Wind") }}: | {{ data.wind_from.l10n(locale=data.location) }}: {{ data.wind_speed.l10n(locale=data.location) }} | {{ _("Pressure") }}: | {{ data.pressure.l10n(locale=data.location) }} | | {{_("Humidity")}}: | {{ data.humidity.l10n(locale=data.location) }} | | |

{% endmacro %}# {{ answer.current.summary }} {{ show_weather_data(answer, answer.current) }} {%- if answer.forecasts -%} {%- for forecast in answer.forecasts -%} {{ forecast.datetime.l10n(locale=answer.current.location,fmt="short") }} {{ forecast.summary }} {{ show_weather_data(answer, forecast) }} {%- endfor -%} {%- endif -%} {%- if answer.url -%} {{ answer.service }} {%- else -%} {{ answer.service }} {% endif -%}