'Set the extruder target temperature (degrees Celsius)'

def setTemp(self, temperature, null):

    self.requestedTemperature = temperature
    temperature0 = (temperature * 1.03)
    temperatureSafety = (temperature * 1.06)
    power0 = int(round((((0.9 * temperature0) - self.hb) / self.hm)))
    if (power0 < 0):
        power0 = 0
    if (power0 > 255):
        power0 = 255
    power1 = int(round(((temperature0 - self.hb) / self.hm)))
    if (power1 < 0):
        power1 = 0
    if (power1 > 255):
        power1 = 255
    resistance0 = self._calculateResistanceForTemperature(temperature)
    resistanceSafety = self._calculateResistanceForTemperature(temperatureSafety)
    t0 = self._calculatePicTempForResistance(resistance0)
    if (t0 < 0):
        t0 = 0
    if (t0 > 255):
        t0 = 255
    t1 = self._calculatePicTempForResistance(resistanceSafety)
    if (t1 < 0):
        t1 = 0
    if (t1 > 255):
        t1 = 255
    if (temperature == 0):
        self._setHeat(0, 0, 0, 0)
    else:
        self._setHeat(power0, power1, t0, t1)
