Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor=peripheral.find("monitor")
- monitor.setTextScale(0.5)
- w,h=monitor.getSize()
- while true do
- tmp=http.get("http://www.adslhouba.fr/_comment/live2.php")
- if tmp==nil then
- else
- test=tmp.readAll()
- print(test)
- donne=textutils.unserialize(test)
- for i, dt in pairs(donne) do
- monitor.scroll(1)
- monitor.setCursorPos(1,h)
- monitor.write(dt.auteur..' : '..dt.msg)
- os.sleep(0.5)
- end
- end
- os.sleep(3)
- end
Add Comment
Please, Sign In to add comment