klipper/klippy
Russell Cloran 516ef1d361 hall_filament_width_sensor: Add filament switch values to status
`hall_filament_width_sensor` contains a runout sensor object internally.
This exposes those values in the API status result.

```
SEND: {"id":123,"method":"objects/query","params":{"objects":{"hall_filament_width_sensor":["enabled","filament_detected","is_active","Diameter","Raw"]}}}
GOT: b'{"id":123,"result":{"eventtime":199567.823596603,"status":{"hall_filament_width_sensor":{"enabled":true,"filament_detected":true,"is_active":true,"Diameter":1.9499999999999986,"Raw":6113}}}}'
```

The duplication of `is_active` and `enabled` seems confusing, but both
of these can be independently manipulated by GCode:

```
SEND: {"id":123,"method":"gcode/script","params":{"script":"DISABLE_FILAMENT_WIDTH_SENSOR"}}
GOT: b'{"id":123,"result":{}}'
SEND: {"id":123,"method":"objects/query","params":{"objects":{"hall_filament_width_sensor":["enabled","is_active"]}}}
GOT: b'{"id":123,"result":{"eventtime":199770.446013297,"status":{"hall_filament_width_sensor":{"enabled":true,"is_active":false}}}}'

SEND: {"id":123,"method":"gcode/script","params":{"script":"SET_FILAMENT_SENSOR SENSOR=hall_filament_width_sensor ENABLE=0"}}
GOT: b'{"id":123,"result":{}}'
SEND: {"id":123,"method":"objects/query","params":{"objects":{"hall_filament_width_sensor":["enabled","is_active"]}}}
GOT: b'{"id":123,"result":{"eventtime":199847.927726196,"status":{"hall_filament_width_sensor":{"enabled":false,"is_active":false}}}}'
```

Signed-off-by: Russell Cloran <rcloran@gmail.com>
2025-04-17 11:44:26 -04:00
..
chelper input_shaper: Fix for polar kinematics 2025-03-11 19:15:23 -04:00
extras hall_filament_width_sensor: Add filament switch values to status 2025-04-17 11:44:26 -04:00
kinematics force_move: Use strings for axes to clear in clear_homing_state() 2025-01-21 18:58:23 -05:00
clocksync.py clocksync: Simplify 32bit clock upconversion code 2023-12-10 14:59:13 -05:00
configfile.py configfile: Fix comments on same line as [include xxx.cfg] directive 2024-11-12 21:07:44 -05:00
console.py console: No need to import pins module 2023-01-07 12:00:16 -05:00
gcode.py gcode: Improve checksum detection in get_raw_command_parameters() 2024-12-01 14:16:13 -05:00
klippy.py klippy: Fix missing default parameter of invoke_async_shutdown() 2024-12-02 12:51:51 -05:00
mathutil.py mathutil: Disable queuelogger in background_coordinate_descent() 2019-12-17 09:51:45 -05:00
mcu.py canbus_stats: Periodically report canbus interface statistics 2025-02-02 18:43:34 -05:00
msgproto.py msgproto: Fix return type for create_command() 2024-11-13 14:24:03 -05:00
parsedump.py parsedump: Support running on both python2 and python3 2022-12-07 14:31:03 -05:00
pins.py pins: Improve pin description checks 2022-05-09 16:33:46 -04:00
queuelogger.py klippy: Add Python2 module wrappers and use Python3 module naming 2021-10-04 14:36:08 -04:00
reactor.py reactor: Fix typo 2023-03-14 22:08:13 -04:00
serialhdl.py serialhdl: Catch IOError in connect_canbus() 2024-07-05 20:16:21 -04:00
stepper.py stepper: Support step on both edges with custom minimum pulse duration 2025-03-20 19:56:55 -04:00
toolhead.py garbage_collection: freeze objects on klippy ready (#6794) 2025-02-02 18:40:43 -05:00
util.py util: report git version info as a dict 2023-05-04 14:07:14 -04:00
webhooks.py webhooks: Add process id, user id and group id to the info endpoint. (#6284) 2023-07-28 12:48:14 -04:00