Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local statuspage = "http://lnn-ranked.com/152status.htm"
- term.clear()
- while(true) do
- local body = http.get(statuspage);
- local status = body.readAll();
- term.setCursorPos(1,1)
- print("Status: "..status.." ");
- if(status == "UP") then
- redstone.setOutput("back",true);
- elseif(status == "DOWN") then
- redstone.setOutput("back",false);
- else
- redstone.setOutput("back",false);
- end
- os.sleep(60);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement