- command and control for computer craft
flowchart LR;
User-->|HTTP API|SERVER[CnC Server]<-.->|Websocket|Turtle1
SERVER<-.->|Websocket| Turtle2
go run main.go
- you can run the server localy and use ngrok to expose it.
ngrok http 4000
- inside the turtle run:
wget https://github.com/YakirOren/cc-remote-control/blob/a996c9d80fecafb073520177297fd9ac7c736ecb/client/client.lua
- Replace server url in the code to the url of your server.
- the cnc server is running localy on port 4000.
from ccturtle import Turtle
t = Turtle("http://localhost:4000", "c2d35786-e28a-4fff-bf82-a94c40f5fcff")
t.forward(5)
t.turnLeft()
t.forward(5)
t.undo()