{"id":15608931,"url":"https://github.com/pcboy/g81_relative","last_synced_at":"2025-07-04T04:34:07.735Z","repository":{"id":43946426,"uuid":"159090264","full_name":"pcboy/g81_relative","owner":"pcboy","description":"Convert g81 marlin output to relative values","archived":false,"fork":false,"pushed_at":"2021-02-01T05:59:51.000Z","size":2457,"stargazers_count":44,"open_issues_count":2,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-28T11:51:16.009Z","etag":null,"topics":["marlin","marlin-firmware","prusa-i3-mk3"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-26T00:55:50.000Z","updated_at":"2025-03-05T23:29:38.000Z","dependencies_parsed_at":"2022-09-09T05:00:55.774Z","dependency_job_id":null,"html_url":"https://github.com/pcboy/g81_relative","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pcboy/g81_relative","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fg81_relative","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fg81_relative/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fg81_relative/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fg81_relative/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcboy","download_url":"https://codeload.github.com/pcboy/g81_relative/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fg81_relative/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263446913,"owners_count":23467858,"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":["marlin","marlin-firmware","prusa-i3-mk3"],"created_at":"2024-10-03T05:40:31.896Z","updated_at":"2025-07-04T04:34:07.671Z","avatar_url":"https://github.com/pcboy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build and Deploy](https://github.com/pcboy/g81_relative/workflows/Build%20and%20Deploy/badge.svg)\n\nhttps://github.com/PrusaOwners/prusaowners/wiki/Bed_Leveling_without_Wave_Springs\n\nFollowing that tutorial and because I didn't want to update my firmware only to have relative numbers, I made a script to convert the output from Marlin to the relative numbers you need.  \nScript takes a file as parameter with G81 output, like that:\n\n```\nRecv:   0.16500  0.18463  0.19991  0.21083  0.21741  0.21963  0.21750\nRecv:   0.16046  0.18181  0.20058  0.21676  0.23036  0.24138  0.24981\nRecv:   0.15630  0.18067  0.20295  0.22315  0.24126  0.25727  0.27120\nRecv:   0.15250  0.18120  0.20704  0.23000  0.25009  0.26731  0.28167\nRecv:   0.14907  0.18342  0.21283  0.23731  0.25687  0.27150  0.28120\nRecv:   0.14602  0.18730  0.22033  0.24509  0.26159  0.26984  0.26981\nRecv:   0.14333  0.19287  0.22954  0.25333  0.26426  0.26231  0.24750\n```\n\nThen when you do:\n```\n$\u003e ruby gen.rb output.txt\n\n      Raw values:\n      -0.07\t-0.02\t-0.01\n      -0.08\t0\t0.05\n      -0.09\t0.02\t0.02\n\n      Degrees:\n      50°CCW\t14°CCW\t7°CCW\n      58°CCW\t0\t36°CW\n      65°CCW\t14°CW\t14°CW\n\n      Fractional Turns:\n      1/10CCW\t0CCW\t0CCW\n      1/5CCW\t0\t1/10CW\n      1/5CCW\t0CCW\t0CCW\n```\n\nYou get the proper output relative to the center. You also get the degrees and fractional turns from the correct position for each screw.  \nIn the current example you should turn the upper left screw 50° counter clockwise.  \nYou can also access the converter directly online by going to: https://pcboy.github.io/g81_relative/\n\n# Contributors\n\n[chrisbcole](https://github.com/chrisbcole) for the degrees/fractional turns output\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fg81_relative","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcboy%2Fg81_relative","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fg81_relative/lists"}