25 lines
719 B
HTML
25 lines
719 B
HTML
{% extends 'data/base.html' %}
|
|
{% block title %}LED{% endblock %}
|
|
{% block body %}
|
|
{% for message in get_flashed_messages() %}
|
|
<div class="flash">{{ message }}</div>
|
|
<br />
|
|
{% endfor %}
|
|
<form method="POST">
|
|
<label for="device_id">deviceID:</label>
|
|
<br />
|
|
<select name="device_id" id="device_id">
|
|
{% for i, id in data %}
|
|
<option value="{{ id['device_id'] }}">{{ i }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<br /><br />
|
|
<label for="data">data:</label>
|
|
<p>Set 0 to toggle, or any number to set the frequency.</p>
|
|
<input type="number" name="period" id="period" required value="0"/>
|
|
<br /><br />
|
|
<button type="submit">Shine</button>
|
|
<a href="{{ url_for('data.view_all') }}">back</a>
|
|
</form>
|
|
{% endblock %}
|