Skip to content

Commit

Permalink
removed camera from being able to load since it will kill the printer
Browse files Browse the repository at this point in the history
  • Loading branch information
consp committed Mar 15, 2024
1 parent b056616 commit f6af6e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,11 @@ def init_server(self, server_info):
powerdevs = self.apiclient.send_request("machine/device_power/devices")
if powerdevs is not False:
self.printer.configure_power_devices(powerdevs['result'])
if "webcam" in server_info["components"]:
cameras = self.apiclient.send_request("server/webcams/list")
if cameras is not False:
self.printer.configure_cameras(cameras['result']['webcams'])
# Removed since it will kill the machine
# if "webcam" in server_info["components"]:
# cameras = self.apiclient.send_request("server/webcams/list")
# if cameras is not False:
# self.printer.configure_cameras(cameras['result']['webcams'])
if "spoolman" in server_info["components"]:
self.printer.enable_spoolman()

Expand Down

0 comments on commit f6af6e5

Please sign in to comment.