Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- s = sensor.wrap("back")
- m = peripheral.wrap("top")
- t = s.getTargets()
- day = os.day()
- time = os.time()
- while true do
- m.clear()
- m.setCursorPos(2,1)
- m.write(textutils.formatTime(time, true))
- m.setCursorPos(1, 3)
- m.write("jour"..day)
- m.setCursorPos(2, 5)
- if (t.CURRENT.Thundering == true) then
- m.write("orage")
- elseif (t.CURRENT.Raining == true) then
- m.write("pluie")
- end
- t = s.getTragets()
- day = os.day()
- time = os.time()
- sleep(0.3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement