api extruder temperature

Hi, Is there a possibilty to get the temperature of the extruder? What I tried: 172.16.0.2:3344/printer/api/myprinter?apikey=abc&a=send&data={"cmd":"m105"}. Thanks for your help. Matthias

Comments

  • What you do is requesting a temperature from firmware. That does not help as you need also the response. Server does this anyway so it always knows the temperatures.

    The simple solution is a=stateList which gives you current temperature set/read/output for all heaters and if you want even the history (use with care for extra traffic).

    stateList

    Parameter: includeHistory (bool) include complete temperature history.

    Response

    { "irapid": { "activeExtruder": 0, "debugLevel": 6, "extruder": [ { "history": [ { "O": 0, "S": 0, "T": 25.5, "t": 1420570143740 }, { "O": 0, "S": 0, "T": 25.39999961853027, "t": 1420570144751 }, { "O": 0, "S": 0, "T": 25.39999961853027, "t": 1420570145759 }
    
            ], "output": 0, "tempRead": 25.5, "tempSet": 0 }, { "history": [ { "O": 0, "S": 0, "T": 25.5, "t": 1420570143740 }, { "O": 0, "S": 0, "T": 25.39999961853027, "t": 1420570144751 }, { "O": 0, "S": 0, "T": 25.5, "t": 1420570145759 }
            ], "output": 0, "tempRead": 25.5, "tempSet": 0 } ], "fanOn": false, "fanVoltage": 0, "firmware": "Repetier_0.92", "firmwareURL": "https://github.com/repetier/Repetier-Firmware/", "flowMultiply": 100, "hasXHome": false, "hasYHome": false, "hasZHome": false, "heatedBed": { "history": [], "output": 0, "tempRead": 0, "tempSet": 0 }, "layer": 0, "numExtruder": 2, "powerOn": false, "sdcardMounted": true, "speedMultiply": 100, "x": -21, "y": 0, "z": 0 } }

    Polls the detailed printer state with or without a complete temperature history.

Sign In or Register to comment.