157 lines
3.7 KiB
HTML
157 lines
3.7 KiB
HTML
|
<div class="container-xxl">
|
||
|
<link rel="stylesheet" href="bootstrap-grid.css">
|
||
|
<style>
|
||
|
.progressPane{
|
||
|
display: block;
|
||
|
position: fixed;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
background-color: lightgrey;
|
||
|
opacity: 0.8;
|
||
|
}
|
||
|
.progressPaneCenter{
|
||
|
display: inline-block;
|
||
|
margin-top: 48%;
|
||
|
position: absolute;
|
||
|
height: 4%;
|
||
|
width: 50%;
|
||
|
margin-left: 25%;
|
||
|
margin-right: 25%;
|
||
|
}
|
||
|
.progress {
|
||
|
height: 1.5em;
|
||
|
width: 100%;
|
||
|
background-color: #c9c9c9;
|
||
|
position: relative;
|
||
|
}
|
||
|
.progress:after {
|
||
|
content: attr(data-label);
|
||
|
font-size: 0.8em;
|
||
|
position: absolute;
|
||
|
text-align: center;
|
||
|
top: 5px;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
}
|
||
|
.progress .value {
|
||
|
background-color: #7cc4ff;
|
||
|
display: inline-block;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.progress .valueIndeterminate {
|
||
|
background-color: #7cc4ff;
|
||
|
display: inline-block;
|
||
|
height: 100%;
|
||
|
animation: indeterminateAnimation 1s infinite linear;
|
||
|
transform-origin: 0% 50%;
|
||
|
}
|
||
|
|
||
|
|
||
|
@keyframes indeterminateAnimation {
|
||
|
0% {
|
||
|
transform: translateX(0%) scaleX(0.5);
|
||
|
}
|
||
|
50% {
|
||
|
transform: translateX(50%) scaleX(0.5);
|
||
|
}
|
||
|
100% {
|
||
|
transform: translateX(0%) scaleX(0.5);
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
|
||
|
<div id="progressPane" class="progressPane">
|
||
|
<div class="progressPaneCenter">
|
||
|
<div id="progressPaneBar" class="progress" data-label="50% Complete">
|
||
|
<span id="progressPaneSpan" class="value" style="width:100%;"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<input type="button" id="test" value="Test">
|
||
|
<h2>Current Firmware</h2>
|
||
|
<div>
|
||
|
<div id="firmware_buildtime">Buildtime loading</div>
|
||
|
<div id="firmware_githash">Build githash loading</div>
|
||
|
</div>
|
||
|
|
||
|
<h2>firmeware OTA v3</h2>
|
||
|
|
||
|
<form id="upload_form" method="post">
|
||
|
<input type="file" name="file1" id="firmware_file"><br>
|
||
|
<progress id="firmware_progressBar" value="0" max="100" style="width:300px;"></progress>
|
||
|
<h3 id="firmware_status"></h3>
|
||
|
<h3 id="firmware_answer"></h3>
|
||
|
<p id="firmware_loaded_n_total"></p>
|
||
|
</form>
|
||
|
|
||
|
<div id="timeview">
|
||
|
</div>
|
||
|
|
||
|
<div id="network_view">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<h2>config</h2>
|
||
|
|
||
|
<div id="configform">
|
||
|
<h3>Tank:</h3>
|
||
|
<div>
|
||
|
<input type="checkbox" id="tank_sensor_enabled">
|
||
|
Enable Tank Sensor
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="checkbox" id="tank_allow_pumping_if_sensor_error">
|
||
|
Allow Pumping if Sensor Error
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div>
|
||
|
<input type="number" min="2" max="500000" id="tank_useable_ml">
|
||
|
Tank Size mL
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="number" min="1" max="500000" id="tank_warn_percent">
|
||
|
Tank Warn Percent (mapped in relation to empty and full)
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="number" min="0" max="100" id="tank_empty_percent">
|
||
|
Tank Empty Percent (% max move)
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="number" min="0" max="100" id="tank_full_percent">
|
||
|
Tank Full Percent (% max move)
|
||
|
</div>
|
||
|
|
||
|
<h3>Light:</h3>
|
||
|
<input type="checkbox" id="night_lamp_enabled" checked="false"> Enable Nightlight
|
||
|
<div>
|
||
|
Start
|
||
|
<select type="time" id="night_lamp_time_start">
|
||
|
</select>
|
||
|
Stop
|
||
|
<select type="time" id="night_lamp_time_end">
|
||
|
</select>
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="checkbox" id="night_lamp_only_when_dark">
|
||
|
Light only when dark
|
||
|
</div>
|
||
|
|
||
|
<h3>Plants:</h3>
|
||
|
<button id="measure_moisture">Measure Moisture</button>
|
||
|
<div id="plants" class="row"></div>
|
||
|
</div>
|
||
|
<button id="submit">Submit</button>
|
||
|
<div id="submit_status"></div>
|
||
|
<br>
|
||
|
<textarea id="json" cols=50 rows=10></textarea>
|
||
|
<script src="bundle.js"></script>
|
||
|
</div>
|