{% extends 'base.html' %} {% block content %}

Waste Level Comparison

{% if request.GET.filter_type == 'bin_id' %} {% elif request.GET.filter_type == 'location' %} {% endif %}
{% for weather in weather_data %} {% endfor %}
Timestamp Waste Level Temperature (Min) Temperature (Max) Temperature (Avg) Precipitation (Min) Precipitation (Max) Precipitation (Total) Humidity (Min) Humidity (Max) Humidity (Avg)
{{ weather.timestamp }} {{ chart_data|slice:forloop.counter|last }} {{ weather.temperature_min }} {{ weather.temperature_max }} {{ weather.temperature_avg }} {{ weather.precipitation_min }} {{ weather.precipitation_max }} {{ weather.precipitation_total }} {{ weather.humidity_min }} {{ weather.humidity_max }} {{ weather.humidity_avg }}
{{ chart_labels|json_script:"labels" }} {{ chart_data|json_script:"data" }} {{ temperature_data|json_script:"temperature_data" }} {{ precipitation_data|json_script:"precipitation_data" }} {{ humidity_data|json_script:"humidity_data" }} {% endblock %}