{% extends "base.html" %} {% set title = location.name + " - Weather Details" %} {% block head %} {% endblock %} {% block content %}

{{ location.name }}

ZIP: {{ location.zip_code }} | {{ location.growing_type|title }} {% if location.microclimate_notes %}
{{ location.microclimate_notes }} {% endif %}

Back to Dashboard
{% if current_weather %}

Current Conditions

{{ "%.1f"|format(current_weather.temperature) }}°C
Temperature
{% if current_weather.temperature_min and current_weather.temperature_max %} {{ "%.1f"|format(current_weather.temperature_min) }}° / {{ "%.1f"|format(current_weather.temperature_max) }}° {% endif %}
{{ "%.0f"|format(current_weather.humidity) }}%
Humidity
{% if current_weather.humidity < 50 %}Low{% elif current_weather.humidity > 70 %}High{% else %}Good{% endif %}
{{ "%.1f"|format(current_weather.wind_speed) }}
Wind (km/h)
{{ "%.0f"|format(current_weather.wind_direction) }}° direction
{% if current_weather.vpd %}
{{ "%.2f"|format(current_weather.vpd) }}
VPD (kPa)
{% if current_weather.vpd < 0.8 %}Too Low{% elif current_weather.vpd > 1.2 %}Too High{% else %}Optimal{% endif %} {% else %}
{{ "%.0f"|format(current_weather.pressure) }}
Pressure (hPa)
Atmospheric pressure {% endif %}
{% if current_weather.description %}
{{ current_weather.get_weather_description() }}
{% endif %}
{% endif %} {% if alerts %}

Weather Alerts

{% for alert in alerts %}
{{ alert.title }}

{{ alert.message }}

{% if alert.orchid_care_advice %}

Orchid Care Advice: {{ alert.orchid_care_advice }}

{% endif %}
{% endfor %}
{% endif %} {% if forecast %}

7-Day Forecast

{% for day in forecast[:7] %}
{{ day.recorded_at.strftime('%a') }}
{{ day.recorded_at.strftime('%m/%d') }}
{% if day.weather_code %} {{ day.get_weather_description() }} {% endif %}
{% if day.temperature_max %}{{ "%.0f"|format(day.temperature_max) }}°{% endif %}
{% if day.temperature_min %}{{ "%.0f"|format(day.temperature_min) }}°{% endif %}
{% if day.precipitation %}
{{ "%.1f"|format(day.precipitation) }}mm
{% endif %}
{% endfor %}
{% endif %} {% if growing_summary and not growing_summary.error %}

Growing Conditions Summary (Last {{ growing_summary.period_days }} Days)

Temperature
{% if growing_summary.temperature.avg %}

Average: {{ "%.1f"|format(growing_summary.temperature.avg) }}°C

Range: {{ "%.1f"|format(growing_summary.temperature.min) }}°C - {{ "%.1f"|format(growing_summary.temperature.max) }}°C

{% endif %}
Humidity
{% if growing_summary.humidity.avg %}

Average: {{ "%.0f"|format(growing_summary.humidity.avg) }}%

Range: {{ "%.0f"|format(growing_summary.humidity.min) }}% - {{ "%.0f"|format(growing_summary.humidity.max) }}%

{% endif %}
VPD
{% if growing_summary.vpd.avg %}

Average: {{ "%.2f"|format(growing_summary.vpd.avg) }} kPa

Optimal: {{ growing_summary.vpd.optimal_range }}

{% endif %}

Orchid-Friendly Days: {{ growing_summary.orchid_friendly_days }} / {{ growing_summary.data_points }}

{% if growing_summary.recommendations %}
Recommendations
    {% for rec in growing_summary.recommendations %}
  • {{ rec }}
  • {% endfor %}
{% endif %}
{% endif %} {% if historical %}

Recent Weather History

Temperature and humidity trends for the past week

{% for day in historical[-7:] %}
{{ day.recorded_at.strftime('%m/%d') }}
{{ "%.1f"|format(day.temperature) if day.temperature else '--' }}°C
{{ "%.0f"|format(day.humidity) if day.humidity else '--' }}%
{% endfor %}
{% endif %}
{% endblock %}