14 lines
272 B
Python
14 lines
272 B
Python
import websocket
|
|
import json
|
|
import ssl
|
|
|
|
websocket.enableTrace(True)
|
|
|
|
ws = websocket.create_connection(
|
|
"wss://fluidncwhite.server.schooltech.ch",
|
|
sslopt={"cert_reqs": ssl.CERT_NONE}
|
|
)
|
|
|
|
ws.send(json.dumps({"type": "gcode", "cmd": "G1 x-33 z43 f3000"}))
|
|
|
|
ws.close() |