diff --git a/startup.lua b/startup.lua new file mode 100644 index 0000000..e69de29 diff --git a/status_broadcast.lua b/status_broadcast.lua new file mode 100644 index 0000000..e69197d --- /dev/null +++ b/status_broadcast.lua @@ -0,0 +1,13 @@ +local id = os.getComputerID() +local status = "idle" -- or "busy", "charging", etc. + +while true do + local msg = { + id = id, + label = os.getComputerLabel() or ("Turtle_" .. id), + status = status, + time = os.clock() + } + rednet.broadcast(textutils.serialize(msg), "turtle_status") + sleep(5) +end \ No newline at end of file