{"id":17645691,"url":"https://github.com/pstrobl96/prusa_metrics_handler","last_synced_at":"2025-03-30T07:15:41.130Z","repository":{"id":254240312,"uuid":"845017043","full_name":"pstrobl96/prusa_metrics_handler","owner":"pstrobl96","description":"Handler of metrics that are produced by Prusa3D printers","archived":false,"fork":false,"pushed_at":"2025-01-21T07:25:55.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T09:19:36.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pstrobl96.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T12:23:13.000Z","updated_at":"2025-01-20T19:41:57.000Z","dependencies_parsed_at":"2025-01-18T17:19:34.540Z","dependency_job_id":"6cedb227-71df-45ab-9889-b03ee36ca75f","html_url":"https://github.com/pstrobl96/prusa_metrics_handler","commit_stats":null,"previous_names":["pstrobl96/prusa_metrics_handler"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_metrics_handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_metrics_handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_metrics_handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_metrics_handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pstrobl96","download_url":"https://codeload.github.com/pstrobl96/prusa_metrics_handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285816,"owners_count":20752958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-23T10:58:28.023Z","updated_at":"2025-03-30T07:15:41.114Z","avatar_url":"https://github.com/pstrobl96.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prusa Metrics Handler\n\nThis is simple utility, that takes metrics from printer, corrects timestamp and forward them into influx, easy as that.\n\nPrusa 3D printers that are based on STM32 CPUs are unable to handle timestamp properly - they use delta timestamp - and you have to process them somewhere else.\n\nIf you want to send metrics into metrics processor then just run gcode bellow at your printer. Don't forget change the IP address to yours. And if you are running 6.2.0 firmware you don't have to run the gcode and can update variables straight in the firmware.\n\nDetails can be found in [Prusa_Firmware_Buddy](https://github.com/prusa3d/Prusa-Firmware-Buddy/blob/master/doc/metrics.md) repository.\n\n## How to run\n\n`sudo docker compose -f docker-compose.mimir.yaml up`\n\n`./prusa_metrics_handler --influx-url=http://influxdb:8086 --influx-org=pubeldev --influx-bucket=prusa --influx-token=yourtoken`\n\nNo config file is needed for handler, everything is handled with flags.\n\n---\n\n`config.gcode`\n\n```\nM330 SYSLOG\nM334 192.168.20.2 8514\nM331 cpu_usage\nM331 heap\nM331 heap_free\nM331 heap_total\nM331 crash\nM331 crash_stat\nM331 crash_repeated\nM331 excite_freq\nM331 freq_gain\nM331 tk_accel\nM331 home_diff\nM331 probe_z\nM331 probe_z_diff\nM331 probe_start\nM331 probe_analysis\nM331 heating_model_discrepancy\nM331 esp_out\nM331 esp_in\nM331 fan_speed\nM331 fan_hbr_speed\nM331 ipos_x\nM331 ipos_y\nM331 ipos_z\nM331 pos_x\nM331 pos_y\nM331 pos_z\nM331 adj_z\nM331 heater_enabled\nM331 volt_bed_raw\nM331 volt_bed\nM331 volt_nozz_raw\nM331 volt_nozz\nM331 curr_nozz_raw\nM331 curr_nozz\nM331 curr_inp_raw\nM331 curr_inp\nM331 cur_mmu_imp\nM331 oc_nozz\nM331 oc_inp\nM331 splitter_5V_current\nM331 24VVoltage\nM331 5VVoltage\nM331 Sandwitch5VCurrent\nM331 xlbuddy5VCurrent\nM331 print_filename\nM331 dwarf_board_temp\nM331 dwarf_mcu_temp\nM331 dwarfs_mcu_temp\nM331 dwarfs_board_temp\nM331 app_start\nM331 maintask_loop\nM331 fsensor_raw\nM331 fsensor\nM331 side_fsensor_raw\nM331 side_fsensor\nM331 nozzle_pwm\nM331 bed_pwm\nM331 loadcell\nM331 loadcell_hp\nM331 loadcell_xy\nM331 loadcell_age\nM331 loadcell_value\nM331 power_panic\nM331 crash_length\nM331 usbh_err_cnt\nM331 media_prefetched\nM331 points_dropped\nM331 probe_window\nM331 eeprom_write\nM331 tmc_sg_x\nM331 tmc_sg_y\nM331 tmc_sg_z\nM331 tmc_sg_e\nM331 tmc_write\nM331 tmc_read\nM331 fan\nM331 print_fan_act\nM331 hbr_fan_act\nM331 gui_loop_dur\nM331 g425_cen\nM331 g425_off\nM331 g425_rxy\nM331 g425_xy\nM331 g425_rz\nM331 g425_z\nM331 g425_xy_dev\nM331 gcode\nM331 loadcell_scale\nM331 loadcell_threshold\nM331 loadcell_threshold_cont\nM331 loadcell_hysteresis\nM331 mmu_comm\nM331 dwarf_fast_refresh_delay\nM331 dwarf_picked_raw\nM331 dwarf_parked_raw\nM331 dwarf_heat_curr\nM331 bed_state\nM331 bed_curr\nM331 bedlet_state\nM331 bedlet_temp\nM331 bedlet_target\nM331 bedlet_pwm\nM331 bedlet_reg\nM331 bedlet_curr\nM331 bed_mcu_temp\nM331 modbus_reqfail\nM331 gui_loop_dur\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpstrobl96%2Fprusa_metrics_handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpstrobl96%2Fprusa_metrics_handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpstrobl96%2Fprusa_metrics_handler/lists"}