MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / refreshPluggedCamera

Function refreshPluggedCamera

src/astroprint/api/camera.py:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21@api.route("/camera/refresh-plugged", methods=["POST"])
22@restricted_access
23def refreshPluggedCamera():
24 cm = cameraManager()
25
26 return jsonify({"isCameraPlugged": cm.reScan()})
27
28@api.route("/camera/has-properties", methods=["GET"])
29@restricted_access

Callers

nothing calls this directly

Calls 2

cameraManagerFunction · 0.90
reScanMethod · 0.45

Tested by

no test coverage detected