{% extends "layout.html" %} {% block title %}OptiWarm - Manage {{ location.name }}{% endblock %} {% block head %} {% endblock %} {% block content %}
Back to Location Details

{{ location.name }}

{{ location.description if location.description else 'No description' }}

{% if last_update %}
Last update: ...
{% else %}
Last update: No data
{% endif %}
Fuel Types and Current Prices
{% if fuel_data %}
{% for fuel in fuel_data %} {% endfor %}
Fuel Type Unit Price per Unit
{{ fuel.name }} {{ fuel.unit_name }} {% if fuel.price_per_unit is not none %} {{ "%.4f"|format(fuel.price_per_unit) }} EUR {% else %} N/A {% endif %}
{% else %} {% endif %}
Temperature Monitoring
Outside Temperature
{% if outdoor_temp is not none %}
{{ outdoor_temp }}°C
{% else %}
No data
{% endif %}
Maximum Required
{% if max_required_temp is not none %}
{{ max_required_temp }}°C
{% else %}
No active rules
{% endif %}
Average Indoor
{% if indoor_temp is not none %}
{{ indoor_temp }}°C
{% else %}
No data
{% endif %}
Active Rule Period
{% if max_temp_rule and max_temp_rule.time_range %}
{{ max_temp_rule.time_range }}
{% if max_temp_rule.rule_type %} {{ max_temp_rule.rule_type }} {% endif %}
{% else %}
-
{% endif %}
Optimization Objectives
Minimum heating cost in EUR
Maintain indoor comfort
Respect for system constraints (capacity, safety)
Boiler Maintenance Control
{% set all_boilers = location.boilers %} {% if all_boilers %}
{% for boiler in all_boilers %} {% endfor %}
Active Boiler Name Status
{{ boiler.name }} {% if boiler.is_maitenance %} Maintenance {% elif boiler.is_active %} Active {% else %} Inactive {% endif %}
{% else %} {% endif %}
Zones Warming Rules
{% if zones_data %}
{% for zone_info in zones_data %} {% endfor %}
Zone Name Place Type Status Warming Rule Type Min Required Temp Max Required Temp Time Period
{{ zone_info.zone.name }} {{ zone_info.place_type }} {% if zone_info.zone.active %} Active {% else %} Inactive {% endif %} {% if zone_info.has_rule and zone_info.rule_type %} {{ zone_info.rule_type }} {% else %} No active rule {% endif %} {% if zone_info.min_temp is not none %} {{ "%.1f"|format(zone_info.min_temp) }}°C {% else %} - {% endif %} {% if zone_info.max_temp is not none %} {{ "%.1f"|format(zone_info.max_temp) }}°C {% else %} - {% endif %} {% if zone_info.time_range %} {{ zone_info.time_range }} {% else %} - {% endif %}
{% else %} {% endif %}
Available Energy Sources
{% if fuel_availability %}
{% for fuel in fuel_availability %} {% endfor %}
Fuel Type Available Quantity
{{ fuel.fuel_name }} {{ fuel.total_units }} {{ fuel.unit_name }}
{% else %} {% endif %}
Active Consumers {% if billing_period_start %} (Since {{ billing_period_start.strftime('%b %d, %Y') }}) {% endif %}
{% if boiler_consumption %}
{% for bc in boiler_consumption %} {% endfor %}
Boiler Name Operating Time Total Cost
{{ bc.boiler.name }} {% if bc.is_active %} {% endif %} {{ "%.2f"|format(bc.total_hours) }} h €{{ "%.2f"|format(bc.total_cost) }}
TOTAL {{ "%.2f"|format(total_hours_all) }} h €{{ "%.2f"|format(total_cost_all) }}
{% else %} {% endif %}
Activity Log (Last 50 Events)
{% if activity_log %}
{% for event in activity_log %} {% endfor %}
Timestamp Event Type Boiler Description
{{ event.timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {% if event.event_type == 'boiler_start' %} {{ event.event_type_display }} {% if event.is_ongoing %} Ongoing {% endif %} {% elif event.event_type == 'boiler_stop' %} {{ event.event_type_display }} {% elif event.event_type == 'maintenance_start' %} {{ event.event_type_display }} {% if event.is_ongoing %} Ongoing {% endif %} {% if not event.is_enabled %} Disabled {% endif %} {% elif event.event_type == 'maintenance_end' %} {{ event.event_type_display }} {% endif %} {{ event.boiler_name }} {{ event.description }}
{% else %} {% endif %}
{% endblock %}