{% extends "base.html" %} {% block body %}

{% if has_sampled and has_uploaded %} This device is sampling, and has uploaded data to the server at {{ most_recent_upload }}. {% elif has_sampled and not has_uploaded %} This device is sampling, but has not yet uploaded data to the server. The last sample was taken at {{ most_recent_sample }}. {% else %} This device is neither sampling, nor uploading anything to the server. {% endif %}

{% if socket_iface_address %} This client's address: {{ socket_iface_address }}. {% else %} Could not obtain this client's address. {% endif %}

Recent samples:

{% for row in get_recent_samples %} {% if row[4] %} {% else %} {% endif %} {% endfor %}
ID Value Sample type Time Uploaded
{{ row[0] }} {{ row[1] }} {{ row[2] }} {{ row[3] }}uploadednot yet uploaded
{% endblock %}