✨ Add cli to generate system info bundle
To print the system info:
octoprint systeminfo
To export a system info bundle:
octoprint systeminfo <targetpath>
e.g.
octoprint systeminfo .
This commit is contained in:
1 parent
3fc21fae75
commit
55291b6bfd
3 files changed
+140
-57
No files matched your search
@@ -42,9 +42,15 @@ def getSystemInfo():
|
||||
)
|
||||
from octoprint.util import dict_flatten
|
||||
|
||||
systeminfo = get_systeminfo(environmentDetector, connectivityChecker)
|
||||
systeminfo["browser.user_agent"] = request.headers.get("User-Agent")
|
||||
systeminfo["octoprint.safe_mode"] = safe_mode is not None
|
||||
systeminfo = get_systeminfo(
|
||||
environmentDetector,
|
||||
connectivityChecker,
|
||||
{
|
||||
"browser.user_agent": request.headers.get("User-Agent"),
|
||||
"octoprint.safe_mode": safe_mode is not None,
|
||||
"systeminfo.generator": "systemapi",
|
||||
},
|
||||
)
|
||||
|
||||
if printer and printer.is_operational():
|
||||
firmware_info = printer.firmware_info
|
||||
|
||||
Reference in new issue
Block a user