Skip to content

PowerShell script to convert Cura-generated gcode to PrintrBot format and host project files for local push over wifi

Notifications You must be signed in to change notification settings

Shanjaq/PrintrBotSelfHost

Repository files navigation

PrintrBotSelfHost

PowerShell script to convert Cura-generated gcode to PrintrBot format and host project files for local push over wifi

currently using the project_part_* file fragments until the binary format is discovered and can be generated in code. will only generate single-part projects.

Steps:

  1. Backup your SD Card (any mistake in the steps to follow will corrupt the index!)

  2. Start a PowerShell prompt and CD to the directory containing import_gcode.ps1

  3. Copy your Cura-generated gcode file into the same folder as the import_gcode.ps1 script

  4. Execute:

    .\import_gcode.ps1 -projectName "some_project_name" -gcodeFileName "some_project_name.gcode" -hostAddress "local_ip_address:8000" -printerAddress "printer_ip_address"

  5. Wait for processing to complete

  6. Execute:

    .\websrv.ps1

  7. Open a browser, paste the HTTP request printed to the console into the address bar and hit enter

  8. Wait for project file to transfer

  9. Open project and download the full gcode using the printer LCD UI

Notes:

*Be sure to download the full gcode to your printer before your host computer IP changes (in the case of DHCP) because the IP is stored in the project file itself.

*The bundled Web Server script listens on port 8000, be sure to run this elevated before starting it for the first time:

netsh http add urlacl url=http://+:8000/ user=DOMAIN\user

About

PowerShell script to convert Cura-generated gcode to PrintrBot format and host project files for local push over wifi

Resources

Stars

Watchers

Forks

Packages

No packages published