This commit is contained in:
Laurie Fisher 2025-06-27 13:39:03 +01:00
parent b044499cca
commit 43313b3869
Signed by: PinkEyedOrphan
GPG Key ID: 7F827B68147AEE76
2 changed files with 13 additions and 0 deletions

0
startup.lua Normal file
View File

13
status_broadcast.lua Normal file
View File

@ -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