machine: announce required update via gcode terminal

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-10-18 14:07:27 -04:00
parent 9a466f3b22
commit d6bdad3a9d
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 6 additions and 0 deletions

View File

@ -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: