created and tested server side water control
This commit is contained in:
18
app/client/state.html
Normal file
18
app/client/state.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<template name="state">
|
||||
|
||||
<h1> Controller state</h1>
|
||||
<div>
|
||||
{{#with controller_state}}
|
||||
<div>Controller broj: {{controller_id}}</div>
|
||||
<div>Otpusni ventil: {{pretty_valve state.out_valve }}</div>
|
||||
<div>Stanje postavio: {{ set_by }}</div>
|
||||
<div>Zadnja komunikacija: {{time}}</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button id="water_now">Zalij sada</button>
|
||||
<button id="stop_water_now">Prekini zalijevanje</button>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
Reference in New Issue
Block a user