protoloft / klipper_z_calibration

Klipper plugin for self-calibrating z-offset
GNU General Public License v3.0
1.05k stars 151 forks source link

how to access z_offset value that is stored in [SAVE_CONFIG] section of printer.cfg #54

Closed hitmusic100 closed 2 years ago

hitmusic100 commented 2 years ago

Am considering adjusting calibrate_z.py a little, and would like to access z_offset from printer.cfg (the value prior to any SAVE_CONFIG). Please would you let me know how to do this from within calibrate_z.py - thanks!

This is a screenshot of the value's location image

TitusLabs commented 2 years ago

This should be just self/helper.printer.lookup_object('probe').z_offset ..what is your idea with that value?

hitmusic100 commented 2 years ago

Thanks TitusLabs, for this - I can't wait to try it out (am away from home atm) - will certainly update this thread, br