Add shutdown ability

This commit is contained in:
Skylar Grant 2023-01-06 21:20:17 -05:00
parent f37ff53bb6
commit 69e41e6f0d
2 changed files with 4 additions and 0 deletions

View File

@ -58,5 +58,8 @@ app.post('/', (req, res) => {
augerOn: req.body.feedRate
});
}
if (req.body.quit != undefined) {
fn.commands.quit();
}
});
});

View File

@ -13,6 +13,7 @@
<!-- Start | Shutdown | Reload Settings -->
<div class="button-container">
<input class="button-unselected" type="submit" id="ignite" value="Enable Auger" name="start"><input class="button-unselected" type="submit" id="shutdown" value="Disable Auger" name="shutdown"><input class="button-unselected" type="submit" id="reload" value="Reload" name="reload"><br>
<input class="button-unselected" type="submit" id="quit" value="Quit!!" name="quit"><br>
</div>
<!-- Set feed rates -->
<label for="feedRate">Feed Rate: </label>