Do Snapmaker 2.0 Devices Have a Webpage?

@fillibar

Checkout latest TS version (>v1.6.1.2), you can check the IP address of the machine on Settings -> About page.

You can use the APIs below to connect and then request status of machine, the annoying thing here is you have to tap “Confirm” to confirm the connect request on TS. We will add option to skip the confirmation later.

Edit: The server port is 8080, you should use http://<IP>:8080/api/v1/xxx to request.

API Parameters Response
POST /api/v1/connect {“token”: “9b114b52-22f7-4384-b5d1-2de897474722”,“series”: “Snapmaker 2.0 A150”,“headType”: 3,“hasEnclosure”: false}
POST /api/v1/disconnect token
GET /api/v1/status token {“status”: “IDLE”,“x”: 0.775479114230594,“y”: 0.752309041211271,“z”: 0.44320964820751263,“homed”: true,“offsetX”: 0,“offsetY”: 0, …}
8 Likes