Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function getData()
- local me = {peripheral.find("me_drive")}
- local data = {}
- data["idt"] = "ME Drives"
- data["idn"] = 3
- data["freeB"] = me[1]["getFreeBytes"]()
- data["totalB"] = me[1]["getTotalBytes"]()
- data["freeT"] = me[1]["getRemainingItemTypes"]()
- data["totalT"] = me[1]["getTotalItemTypes"]()
- return data
- end
- while true do
- local t = getData()
- t = textutils.serialize(t)
- rednet.broadcast(t, "nOStatusBroadcast")
- term.clear()
- term.setCursorPos(1, 1)
- print(t)
- sleep(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement