mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 03:05:52 +08:00
Bed & extruder temps are now logged
CURA-49
This commit is contained in:
parent
48625ed129
commit
298c740abe
@ -63,7 +63,13 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
## Convenience function that gets information from the recieved json data and converts it to the right internal
|
## Convenience function that gets information from the recieved json data and converts it to the right internal
|
||||||
# values / variables
|
# values / variables
|
||||||
def _spliceJSONData(self):
|
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):
|
def close(self):
|
||||||
self._connection_state == ConnectionState.closed
|
self._connection_state == ConnectionState.closed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user