Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    rr_status?type=XXX additional info

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    4
    491
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • flyinchinchyundefined
      flyinchinchy
      last edited by

      Hi, i have recently been playing around with the JSON data from the duet wifi to make some active progress indicators on my enclosure through wifi and i was wondering how much of a task it would be to add the current tool temperature into the status request? i might just be being stupid so any help would be appreciated but i can easily grab the current bed temperature and target temperature but when it comes to the tool i can only find the target temperature readout

      Here is an example of a type 3 request from the wiki

      "temps": {
      	"bed": {			// Missing
      		"current": 20.0,	// if no
      		"active": -273.1,	// heated
      		"state": 0		// bed
      	},				// is present
      	"chamber": {			// Missing
      		"current": 19.7,	// if no
      		"active": 50.0,		// chamber was
      		"state": 2		// previously defined
      	},				// using M141 H#
      	"heads": {
      		"current": [25.0, 25.0],
      		"active": [0.0, 0.0],
      		"standby": [0.0, 0.0],
      		"state": [2, 1]		// 0: off, 1: standby, 2: active, 3: fault (same for bed)
      	},
      	"tools": {			// New in RRF 1.19. This reflects the set tool temperatures
      		"active": [[0.0], [0.0]],
      		"standby": [[0.0], [0.0]]
      	}
      

      cheers

      1 Reply Last reply Reply Quote 0
      • resamundefined
        resam
        last edited by

        type 1 contains them as list under .temps.current.
        Usually first and second entry are your bed and hotend.

        1 Reply Last reply Reply Quote 0
        • flyinchinchyundefined
          flyinchinchy
          last edited by

          ahhh, i see it now! it seems a bit of out place there no? i imagine it would be better suited amongst the other tool values? thank you for the help though

          1 Reply Last reply Reply Quote 0
          • flyinchinchyundefined
            flyinchinchy
            last edited by

            actually i take that back, i can see how it is formatted now, just my browser was making them look weird. my bad

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA