Update status indicators to use new levels

This commit is contained in:
Skylar Grant 2023-11-13 17:41:03 -05:00
parent 6ab9bed2b4
commit 2358d6eb8f

View File

@ -54,11 +54,11 @@
<div class="form-group">
<label for="feedRate">Feed Rate: </label>
<select name="feedRate" class="form-control" id="feed-rate-select">
<option value="500">1</option>
<option value="625">2</option>
<option value="750">3</option>
<option value="875">4</option>
<option value="1000">5</option>
<option value="500">Low</option>
<option value="625">Medium-Low</option>
<option value="750">Medium</option>
<option value="875">Medium-High</option>
<option value="1000">High</option>
</select>
</div>
<div class="button-container d-flex justify-content-end">
@ -128,17 +128,25 @@
augerOff.innerHTML = config.intervals.augerOff;
switch (config.intervals.augerOn) {
case '600':
case '500':
feedRate.innerHTML = 'Low';
feedRateSelect.selectedIndex = 0;
break;
case '800':
feedRate.innerHTML = 'Medium';
case '625':
feedRate.innerHTML = 'Medium-Low';
feedRateSelect.selectedIndex = 1;
break;
case '750':
feedRate.innerHTML = 'Medium';
feedRateSelect.selectedIndex = 2;
break;
case '875':
feedRate.innerHTML = 'Medium-High';
feedRateSelect.selectedIndex = 3;
break;
case '1000':
feedRate.innerHTML = 'High';
feedRateSelect.selectedIndex = 2;
feedRateSelect.selectedIndex = 4;
break;
default:
feedRate.innerHTML = 'Unknown';