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

Latest Waste Level

{% if waste %}
Latest Waste Level

{% if request.GET.filter_type == 'location' %} Location: {{ waste.bin.location }} {% else %} Bin: {{ waste.bin_id }} {% endif %}

Waste Level: {{ waste.level }}

Timestamp: {{ waste.timestamp|date:"Y-m-d H:i" }}

{% else %}

No waste data available.

{% endif %} {% if waste and latest_weather %}

Temperature: {{ latest_weather.temp }}

Precipitation: {{ latest_weather.precip }}

Humidity: {{ latest_weather.humid }}

{% endif %}
{{ 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 %}