Skip to content

Commit

Permalink
bump to v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scross01 committed Nov 7, 2024
1 parent 1718721 commit 86d5be0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log
==========

v0.12.0
-------

- Add support for multiple mcu's. Thanks to @Wulfsta #40.
- Improved error logging for indexed results to address issues #34 and #35

v0.11.2
-------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ group of metrics is queried from a different Moonraker API endpoint.
| `job_queue` | x | `klipper_job_queue_length` |
| `system_info` | x | `klipper_system_cpu_count` |
| `directory_info` | | `klipper_disk_usage_available`<br/>`klipper_disk_usage_total`<br/>`klipper_disk_usage_used` |
| `printer_objects` | | `klipper_controller_fan_rpm{fan="`*fan*`"}`<br/>`klipper_controller_fan_speed={fan="`*fan*`"}`<br/>`klipper_extruder_power`<br/>`klipper_extruder_pressure_advance`<br/>`klipper_extruder_smooth_time`<br/>`klipper_extruder_target`<br/>`klipper_extruder_temperature`<br/>`klipper_fan_rpm`<br/>`klipper_fan_speed`<br/>`klipper_filament_sensor_detected{sensor="`*sensor*`"}`<br/>`klipper_filament_sensor_enabled{sensor="`*sensor*`"}`<br/>`klipper_gcode_extrude_factor`<br/>`klipper_gcode_position_e`<br/>`klipper_gcode_position_x`<br/>`klipper_gcode_position_y`<br/>`klipper_gcode_position_z`<br/>`klipper_gcode_speed_factor`<br/>`klipper_gcode_speed`<br/>`klipper_generic_fan_rpm{fan="`*fan*`"}`<br/>`klipper_generic_fan_speed{fan="`*fan*`"}`<br/>`klipper_heater_bed_power`<br/>`klipper_heater_bed_target`<br/>`klipper_heater_bed_temperature`<br/>`klipper_mcu_awake`<br/>`klipper_mcu_task_avg`<br/>`klipper_mcu_task_stddev`<br/>`klipper_mcu_clock_frequency`<br/>`klipper_mcu_invalid_bytes`<br/>`klipper_mcu_read_bytes`<br/>`klipper_mcu_ready_bytes`<br/>`klipper_mcu_receive_seq`<br/>`klipper_mcu_retransmit_bytes`<br/>`klipper_mcu_retransmit_seq`<br/>`klipper_mcu_rto`<br/>`klipper_mcu_rttvar`<br/>`klipper_mcu_send_seq`<br/>`klipper_mcu_stalled_bytes`<br/>`klipper_mcu_srtt`<br/>`klipper_mcu_write_bytes`<br/>`klipper_output_pin_value{pin="`*pin*`"}`<br/>`klipper_printing_time`<br/>`klipper_print_filament_used`<br/>`klipper_print_file_position`<br/>`klipper_print_file_progress`<br/>`klipper_print_gcode_progress`<br/>`klipper_print_total_duration`<br/>`klipper_temperature_fan_speed{fan="`*fan*`"}`<br/>`klipper_temperature_fan_temperature{fan="`*fan*`"}`<br/>`klipper_temperature_fan_target{fan="`*fan*`"}`<br/>`klipper_temperature_sensor_temperature{sensor="`*sensor*`"}`<br/>`klipper_temperature_sensor_measured_max_temp{sensor="`*sensor*`"}`<br/>`klipper_temperature_sensor_measured_min_temp{sensor="`*sensor*`"}`<br/>`klipper_toolhead_estimated_print_time`<br/>`klipper_toolhead_max_accel_to_decel`<br/>`klipper_toolhead_max_accel`<br/>`klipper_toolhead_max_velocity`<br/>`klipper_toolhead_print_time`<br/>`klipper_toolhead_square_corner_velocity` |
| `printer_objects` | | `klipper_controller_fan_rpm{fan="`*fan*`"}`<br/>`klipper_controller_fan_speed={fan="`*fan*`"}`<br/>`klipper_extruder_power`<br/>`klipper_extruder_pressure_advance`<br/>`klipper_extruder_smooth_time`<br/>`klipper_extruder_target`<br/>`klipper_extruder_temperature`<br/>`klipper_fan_rpm`<br/>`klipper_fan_speed`<br/>`klipper_filament_sensor_detected{sensor="`*sensor*`"}`<br/>`klipper_filament_sensor_enabled{sensor="`*sensor*`"}`<br/>`klipper_gcode_extrude_factor`<br/>`klipper_gcode_position_e`<br/>`klipper_gcode_position_x`<br/>`klipper_gcode_position_y`<br/>`klipper_gcode_position_z`<br/>`klipper_gcode_speed_factor`<br/>`klipper_gcode_speed`<br/>`klipper_generic_fan_rpm{fan="`*fan*`"}`<br/>`klipper_generic_fan_speed{fan="`*fan*`"}`<br/>`klipper_heater_bed_power`<br/>`klipper_heater_bed_target`<br/>`klipper_heater_bed_temperature`<br/>`klipper_mcu_awake{mcu="`*mcu*`"}`<br/>`klipper_mcu_task_avg{mcu="`*mcu*`"}`<br/>`klipper_mcu_task_stddev{mcu="`*mcu*`"}`<br/>`klipper_mcu_clock_frequency{mcu="`*mcu*`"}`<br/>`klipper_mcu_invalid_bytes{mcu="`*mcu*`"}`<br/>`klipper_mcu_read_bytes{mcu="`*mcu*`"}`<br/>`klipper_mcu_ready_bytes{mcu="`*mcu*`"}`<br/>`klipper_mcu_receive_seq{mcu="`*mcu*`"}`<br/>`klipper_mcu_retransmit_bytes{mcu="`*mcu*`"}`<br/>`klipper_mcu_retransmit_seq{mcu="`*mcu*`"}`<br/>`klipper_mcu_rto`<br/>`klipper_mcu_rttvar{mcu="`*mcu*`"}`<br/>`klipper_mcu_send_seq{mcu="`*mcu*`"}`<br/>`klipper_mcu_stalled_bytes{mcu="`*mcu*`"}`<br/>`klipper_mcu_srtt{mcu="`*mcu*`"}`<br/>`klipper_mcu_write_bytes{mcu="`*mcu*`"}`<br/>`klipper_output_pin_value{pin="`*pin*`"}`<br/>`klipper_printing_time`<br/>`klipper_print_filament_used`<br/>`klipper_print_file_position`<br/>`klipper_print_file_progress`<br/>`klipper_print_gcode_progress`<br/>`klipper_print_total_duration`<br/>`klipper_temperature_fan_speed{fan="`*fan*`"}`<br/>`klipper_temperature_fan_temperature{fan="`*fan*`"}`<br/>`klipper_temperature_fan_target{fan="`*fan*`"}`<br/>`klipper_temperature_sensor_temperature{sensor="`*sensor*`"}`<br/>`klipper_temperature_sensor_measured_max_temp{sensor="`*sensor*`"}`<br/>`klipper_temperature_sensor_measured_min_temp{sensor="`*sensor*`"}`<br/>`klipper_toolhead_estimated_print_time`<br/>`klipper_toolhead_max_accel_to_decel`<br/>`klipper_toolhead_max_accel`<br/>`klipper_toolhead_max_velocity`<br/>`klipper_toolhead_print_time`<br/>`klipper_toolhead_square_corner_velocity` |
| `history` | | `klipper_current_print_first_layer_height`<br/>`klipper_current_print_layer_height`<br/>`klipper_current_print_object_height`<br/>`klipper_current_print_total_duration`<br/>`klipper_longest_job`<br/>`klipper_longest_print`<br/>`klipper_total_filament_used`<br/>`klipper_total_jobs`<br/>`klipper_total_print_time`<br/>`klipper_total_time` |

Authentication
Expand Down
4 changes: 4 additions & 0 deletions collector/printer_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ func (c Collector) fetchMoonrakerPrinterObjects(klipperHost string, apiKey strin

log.Tracef("%+v", string(data))

if res.StatusCode != http.StatusOK {
return nil, fmt.Errorf("unexpected status code: %d %s", res.StatusCode, res.Status)
}

var response PrinterObjectResponse

err = json.Unmarshal(data, &response)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.11.2
v0.12.0

0 comments on commit 86d5be0

Please sign in to comment.