Jump to content




Disk Checker


  • You cannot reply to this topic
No replies to this topic

#1 UltimateExplorer

  • New Members
  • 1 posts

Posted 29 December 2012 - 05:56 AM

This Basicly Checks the Disk Drive...
If you want the code:

rednet.open("back")
local AudioName = (disk.getAudioTitle("left"))
if (disk.isPresent("left")) and (disk.hasData("left")) then
print(disk.getLabel("left"))
print(disk.getDiskID("left"))
end
if (disk.hasAudio("left")) then
rednet.send(1,AudioName, true) -- 1 is the PC that gets the Message
disk.eject("left")
end
print("Disk Check done.")

Im currently working on a Printer Checks but theres some Problems But here... you can have it :D
local m = peripheral.wrap("top")
while m.isPresent("top") do
while m.getPaperLevel() < 1 do
print("Warning! Less then 1 Paper in Printer!")
end
while m.getInkLevel() < 1 do
print("Warning! No ink in Printer!")
end
end
Doesnt Work!!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users