2016-01-24 09:12:10 +01:00
|
|
|
<template name="state">
|
2016-04-10 10:47:11 +02:00
|
|
|
<div> </div>
|
2016-03-19 09:23:59 +01:00
|
|
|
<div class="col-md-12">
|
2016-02-28 10:05:14 +01:00
|
|
|
{{#with controller_state}}
|
2016-03-19 09:23:59 +01:00
|
|
|
<img src="{{ bucket_image }}" class="img-responsive center-block" id="bucket_image" />
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
{{controller_id}}:
|
2016-06-12 12:03:19 +02:00
|
|
|
{{#with last_sensor_reading}} <strong> temp: {{ temperatureValue }} °C, vlaga: {{ humidityValue }} % <br/>nivo vode: {{water_level}} </strong> {{/with}}
|
2016-02-28 10:05:14 +01:00
|
|
|
</div>
|
2016-03-19 09:23:59 +01:00
|
|
|
<div class="text-center">
|
2016-03-20 08:00:14 +01:00
|
|
|
Automatsko zalijevanje:<br /> <strong>{{ pretty_days config.automaticDaysOfWeek }} {{ pretty_time config.automaticDaysOfWeek config.automaticTimeOfDay }}</strong> <button id="run_settings" class="btn btn-default"> <i class="fa fa-wrench"></i> </button>
|
2016-02-28 10:05:14 +01:00
|
|
|
</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>
|
2016-07-02 10:18:18 +02:00
|
|
|
<button id="start_inflow_now" class="{{ start_inflow_button_class }}">Počni punjenje</button>
|
|
|
|
|
<button id="stop_inflow_now" class="{{ stop_inflow_button_class }}">Prekini punjenje</button>
|
2016-03-19 09:23:59 +01:00
|
|
|
</div>
|
2016-02-28 10:05:14 +01:00
|
|
|
</div>
|
2016-01-24 09:12:10 +01:00
|
|
|
</template>
|