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

Function printerToolState

src/astroprint/api/printer.py:127–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126@api.route("/printer/tool", methods=["GET"])
127def printerToolState():
128 def deleteBed(x):
129 data = dict(x)
130
131 if "bed" in data.keys():
132 del data["bed"]
133 return data
134
135 return jsonify(_getTemperatureData(deleteBed))
136
137
138##~~ Heated bed

Callers

nothing calls this directly

Calls 1

_getTemperatureDataFunction · 0.85

Tested by

no test coverage detected