Darknio icon

Uhr mit Hinweislampe

Darknio | PRO | 06/24/22 11:12:52 PM UTC (Edited) | 0 ⭐ | 1045 👁️ | Never ⏰ | []
Lua |

490 B

|

None

|

0 👍

/

0 👎

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
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎