Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- mon.setTextScale(2)
- function Lampe()
- lamp = os.time()
- if lamp < 6.000 then
- rs.setOutput("top",true)
- elseif lamp > 18.500 then
- rs.setOutput("top",true)
- else
- rs.setOutput("top",false)
- end
- end
- while true do
- Lampe()
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(textutils.formatTime(os.time(),true))
- mon.setCursorPos(1,2)
- mon.write("Tag ")
- mon.write(textutils.serialize(os.day()),number)
- sleep(0.5)
- rs.setOutput("top",false)
- sleep(0.5)
- end