machine: announce required update via gcode terminal
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
9a466f3b22
commit
d6bdad3a9d
|
@ -1632,6 +1632,12 @@ class InstallValidator:
|
||||||
url, "high", "machine"
|
url, "high", "machine"
|
||||||
)
|
)
|
||||||
self.announcement_id = entry.get("entry_id", "")
|
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):
|
async def remove_announcement(self):
|
||||||
if not self.announcement_id:
|
if not self.announcement_id:
|
||||||
|
|
Loading…
Reference in New Issue