Add shutdown ability
This commit is contained in:
parent
f37ff53bb6
commit
69e41e6f0d
@ -58,5 +58,8 @@ app.post('/', (req, res) => {
|
|||||||
augerOn: req.body.feedRate
|
augerOn: req.body.feedRate
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (req.body.quit != undefined) {
|
||||||
|
fn.commands.quit();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
@ -13,6 +13,7 @@
|
|||||||
<!-- Start | Shutdown | Reload Settings -->
|
<!-- Start | Shutdown | Reload Settings -->
|
||||||
<div class="button-container">
|
<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="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>
|
</div>
|
||||||
<!-- Set feed rates -->
|
<!-- Set feed rates -->
|
||||||
<label for="feedRate">Feed Rate: </label>
|
<label for="feedRate">Feed Rate: </label>
|
||||||
|
Loading…
Reference in New Issue
Block a user