From 69e41e6f0d5c8bd8cce93f25e4b372f7af9fe9d9 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 6 Jan 2023 21:20:17 -0500 Subject: [PATCH] Add shutdown ability --- websvr.js | 3 +++ www/views/index.html | 1 + 2 files changed, 4 insertions(+) diff --git a/websvr.js b/websvr.js index 9a04c35..35e764f 100644 --- a/websvr.js +++ b/websvr.js @@ -58,5 +58,8 @@ app.post('/', (req, res) => { augerOn: req.body.feedRate }); } + if (req.body.quit != undefined) { + fn.commands.quit(); + } }); }); \ No newline at end of file diff --git a/www/views/index.html b/www/views/index.html index 5305473..414766c 100644 --- a/www/views/index.html +++ b/www/views/index.html @@ -13,6 +13,7 @@

+