From d6bdad3a9d33229e056c25a83c997f2ebe8bc06e Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 18 Oct 2022 14:07:27 -0400 Subject: [PATCH] machine: announce required update via gcode terminal Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index cba993f..a75a43b 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -1632,6 +1632,12 @@ class InstallValidator: url, "high", "machine" ) self.announcement_id = entry.get("entry_id", "") + gc_announcement = ( + "!! ATTENTION: Moonraker requires sudo access to complete " + "the update. Go to the following URL and provide your linux " + f"password: {url}" + ) + self.server.send_event("server:gcode_response", gc_announcement) async def remove_announcement(self): if not self.announcement_id: