Load current feed rate

This commit is contained in:
Skylar Grant 2023-01-06 18:36:12 -05:00
parent e6bcf90741
commit 4daec6513d
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ function refreshData() {
const augerOn = document.getElementById('auger-on');
const augerOff = document.getElementById('auger-off');
const pauseInt = document.getElementById('pause-int');
const feedRate = document.getElementById('feed-rate');
// Get the config file
const config = readJSON('./config.json');
@ -49,6 +50,7 @@ function refreshData() {
augerOn.innerHTML = config.intervals.augerOn;
augerOff.innerHTML = config.intervals.augerOff;
pauseInt.innerHTML = config.intervals.pause;
feedRate.value = config.intervals.augerOn;
// Run this again after 2 seconds
sleep(5000).then(() => {

View File

@ -16,7 +16,7 @@
</div>
<!-- Set feed rates -->
<label for="feedRate">Feed Rate: </label>
<select name="feedRate">
<select name="feedRate" id="feed-rate">
<option value="600">Low</option>
<option value="800">Medium</option>
<option value="1000">High</option>