2016-01-24 09:12:10 +01:00
|
|
|
<template name="state">
|
2016-02-28 10:05:14 +01:00
|
|
|
<div class="col-md-3 col-md-offset-4">
|
|
|
|
|
{{#with controller_state}}
|
|
|
|
|
<h1>{{controller_id}}</h1>
|
|
|
|
|
<img src="{{ bucket_image }}" class="img-responsive center-block" id="bucket_image" /> {{#with last_sensor_reading}}
|
|
|
|
|
<div>
|
|
|
|
|
<strong>{{ temperatureValue }} °C, {{ humidityValue }} % </strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2016-01-24 09:12:10 +01:00
|
|
|
|
2016-02-28 10:05:14 +01:00
|
|
|
</div>
|
|
|
|
|
{{/with}}
|
|
|
|
|
<div>Otpusni ventil: {{pretty_valve state.out_valve }}</div>
|
|
|
|
|
<div>Zadnja komunikacija: {{ last_communication_time }}</div>
|
|
|
|
|
{{/with}}
|
|
|
|
|
<div>
|
|
|
|
|
<button id="water_now" class="{{ water_now_button_class }}">Zalij sada</button>
|
|
|
|
|
<button id="stop_water_now" class="{{ stop_button_class }}">Prekini zalijevanje</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-1">
|
2016-01-24 09:12:10 +01:00
|
|
|
|
2016-02-28 10:05:14 +01:00
|
|
|
</div>
|
2016-01-24 09:12:10 +01:00
|
|
|
</template>
|