Created
February 27, 2018 17:06
-
-
Save mangar/42616e81e0914ccab6bb15acb7620612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# RED - Error | |
# GREEN - Success | |
# - Flashing: 1 or more problems | |
# - 2 Flashing in a row: requesting data | |
# | |
import mypi.led | |
import mypi.url | |
# | |
# | |
# | |
def main(): | |
checks = [] | |
mypi.led.working() | |
checks.append(mypi.url.check_url("http://google.com")) | |
checks.append(mypi.url.check_url("http://facebook.com")) | |
checks.append(mypi.url.check_url("http://twitter.com")) | |
checks.append(mypi.url.check_url("http://uol.com.br")) | |
checks.append(mypi.url.check_url("http://globo.com")) | |
mypi.led.flash_led(checks) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment