## Begin Code require 'open-uri' begin open('http://192.168.233.140/index.html') return 1 sleep(5) rescue OpenURI::HTTPError return 0 if else end