From 4daec6513dd262ce45116c114a8418d4a20a96e0 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 6 Jan 2023 18:36:12 -0500 Subject: [PATCH] Load current feed rate --- www/public/main.js | 2 ++ www/views/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/public/main.js b/www/public/main.js index b279e9b..b4d66c8 100644 --- a/www/public/main.js +++ b/www/public/main.js @@ -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(() => { diff --git a/www/views/index.html b/www/views/index.html index 6052649..f53d059 100644 --- a/www/views/index.html +++ b/www/views/index.html @@ -16,7 +16,7 @@ -