While not as tidy and efficient as having a button right on the touchscreen, in the meantime you can make a simple .bat
or .sh
file to quickly click on to wirelessly send the commands to park into position.
@echo off
curl -X POST "http://[IP HERE]:8080/api/v1/connect?token=[TOKEN HERE]"
curl -X POST "http://[IP HERE]:8080/api/v1/execute_code?token=[TOKEN HERE]&code=G53"
curl -X POST "http://[IP HERE]:8080/api/v1/execute_code?token=[TOKEN HERE]&code=G0X#Y#Z#"
curl -X POST "http://[IP HERE]:8080/api/v1/execute_code?token=[TOKEN HERE]&code=G54"
Just input your IP and token into it, my old thread on where to find it can be found here. Someone put it in the swap position, note down the X/Y/Z machine coordinates and edit them into the third line above. Save as a batch file, something like QuickChange.bat
and when opened, should send the command to the snapmaker to move to the coordinates to change it out. Sorry I don’t have a mac or linux machine handy to convert to a .sh
, but it should be very similar.
Basically it just swaps to machine coords, tells the machine to go to the specified location, then swaps back to work coords.