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

Function printerBedState

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

Source from the content-addressed store, hash-verified

170
171@api.route("/printer/bed", methods=["GET"])
172def printerBedState():
173 def deleteTools(x):
174 data = dict(x)
175
176 for k in data.keys():
177 if k.startswith("tool"):
178 del data[k]
179 return data
180
181 return jsonify(_getTemperatureData(deleteTools))
182
183@api.route("/printer/fan", methods=["POST"])
184def printerFanCommand():

Callers

nothing calls this directly

Calls 1

_getTemperatureDataFunction · 0.85

Tested by

no test coverage detected