fabianonline/OctoPrint-Telegram

Cannot get more than 2 termistor outputs

karabas2011 opened this issue · 0 comments

I use printer with 4 extruders, I use two as common extruders and two as a custom heaters.
I try to add lines with tool2 to code but octoprint failed to boot.
e1_temp = temps["tool0"]["actual"] if "tool0" in temps else 0.0
e1_target = temps["tool0"]["target"] if "tool0" in temps else 0.0
e2_temp = temps["tool1"]["actual"] if "tool1" in temps else 0.0
e2_target = temps["tool1"]["target"] if "tool1" in temps else 0.0

        i add
        e3_temp = temps["tool2"]["actual"] if "tool2" in temps else 0.0
        e3_target = temps["tool2"]["target"] if "tool2" in temps else 0.0