Skip to content

Instantly share code, notes, and snippets.

View TheRealEdDawson's full-sized avatar

Ed Dawson TheRealEdDawson

  • Learnosity
  • Sydney
View GitHub Profile
import RPi.GPIO as GPIO, time
import urllib2
# Setting up variables for site checking
sitewearechecking = "http://www.idg.com.au"
textweshouldfind = "<title>IDG Communications - Australia</title>"
frequencyofchecking = 5 #Every 5 Seconds
siteup = False #True = site is up
# Setting up some structures for the Raspberry Pi LED controls