@@ -0,0 +1,1223 @@
+#!/usr/bin/env python%0A#-*- coding: UTF-8 -*-%0Aimport time%0Aimport urllib%0Aimport urllib2%0Aimport json%0Aimport RPi.GPIO as GPIO%0A%0A# LEDs GPIO port: 11 = Green, 13 = Gray, 16 = Red%0Apins = %5B11, 13, 16%5D%0Adelay = 30%0A%0AGPIO.setmode(GPIO.BOARD)%0AGPIO.setup(pins, GPIO.OUT)%0A%0Aurl = 'https://api.travis-ci.org/QueroUmaLoja/api-server/builds'%0Auser_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'%0Avalues = %7B%7D%0Aheaders = %7B'User-Agent': user_agent%7D%0Adata = urllib.urlencode(values)%0A%0Atry:%0A    while True:%0A        req = urllib2.Request(url, data, headers)%0A        response = urllib2.urlopen(req)%0A        content = response.read()%0A%0A        obj = json.loads(content)%0A        build = obj%5B0%5D%0A%0A        if build%5B'state'%5D == 'failed':%0A            pin = pins%5B2%5D%0A%0A        elif build%5B'state'%5D == 'finished':%0A            pin = pins%5B0%5D%0A%0A        else:%0A            pin = pins%5B1%5D%0A%0A        GPIO.output(pins, GPIO.LOW)%0A        GPIO.output(pin, GPIO.HIGH)%0A%0A        time.sleep(delay)%0A%0Aexcept KeyboardInterrupt:%0A    print(%22A keyboard interrupt has been noticed%22)%0A%0Aexcept urllib2.HTTPError as e:%0A    print(%22An HTTP error or exception has ocurred: %22 + str(e))%0A%0Aexcept Exception, e:%0A    print(%22An error or exception has ocurred: %22 + str(e))%0A%0Afinally:%0A    GPIO.cleanup()%0A

Create checker.py