//importovanje potrebnih biblioteka
from subprocess import call
import RPi.GPIO as GPIO
import time
import urllib2
status=None
//pozivanje razlicitih skirpti na osnovu podataka sa veb stranice. Citanje stranice preko
urllib2 biblioteke
while True:
response = urllib2.urlopen(http://www.halotaxi.rs/test/testrpicitatraku.php)
//adresa koricena u primeru
html = response.read()
if html==0:
if status==1:
print Status: OK
else:
print Gasim svetlo
call([python, trakaon.py])
status=1
else:
if status==0:
print Status: OK
else:
print Palim svetlo
call([python,trakaoff.py])
status=0
GPIO.cleanup()
time.sleep(1)