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:
-
Backup your SD Card (any mistake in the steps to follow will corrupt the index!)
-
Start a PowerShell prompt and CD to the directory containing import_gcode.ps1
-
Copy your Cura-generated gcode file into the same folder as the import_gcode.ps1 script
-
Execute:
.\import_gcode.ps1 -projectName "some_project_name" -gcodeFileName "some_project_name.gcode" -hostAddress "local_ip_address:8000" -printerAddress "printer_ip_address"
-
Wait for processing to complete
-
Execute:
.\websrv.ps1
-
Open a browser, paste the HTTP request printed to the console into the address bar and hit enter
-
Wait for project file to transfer
-
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