Set auger off time autometically

This commit is contained in:
Skylar Grant 2023-01-06 17:12:27 -05:00
parent 5da303a24a
commit 85bf00a35a
2 changed files with 1 additions and 2 deletions

View File

@ -54,7 +54,7 @@ app.post('/', (req, res) => {
}
if (req.body.reload != undefined) {
fn.commands.refreshConfig({
augerOff: req.body.augerOff,
augerOff: 2000 - req.body.augerOn,
augerOn: req.body.augerOn,
pause: req.body.pauseInt
});

View File

@ -16,7 +16,6 @@
</div>
<!-- Set feed rates -->
<label for="augerOn">Auger On Interval: </label><input type="number" name="augerOn" min="500" max="1000" step="100" value="<%= intervals.augerOn %>">ms<br>
<label for="augerOff">Auger Off Interval: </label><input type="number" name="augerOff" min="1000" max="2000" step="100" value="<%= intervals.augerOff %>">ms<br>
<label for="pauseInt">App Pause Interval: </label><input type="number" name="pauseInt" min="1000" max="600000" step="1000" value="<%= intervals.pause %>">ms<br>
</form>
</div>