Bed & extruder temps are now logged

CURA-49
This commit is contained in:
Jaime van Kessel 2016-04-19 11:06:59 +02:00
parent 48625ed129
commit 298c740abe

View file

@ -63,7 +63,13 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
## Convenience function that gets information from the recieved json data and converts it to the right internal
# values / variables
def _spliceJSONData(self):
pass
# Check for hotend temperatures
for index in range(0, self._num_extruders - 1):
temperature = self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["temperature"]["current"]
self._setHotendTemperature(index, temperature)
bed_temperature = self._json_printer_state["bed"]["temperature"]
self._setBedTemperature(bed_temperature)
def close(self):
self._connection_state == ConnectionState.closed