Skip to content

Instantly share code, notes, and snippets.

View sidwarkd's full-sized avatar
🌮
Smart Puck'in

Kevin Sidwar sidwarkd

🌮
Smart Puck'in
View GitHub Profile
@sidwarkd
sidwarkd / isgovtdown.py
Last active December 24, 2015 14:39 — forked from eduardkoller/isgovtdown.py
Modified to add command line option for running on a Raspberry Pi using GPIO 17 and 18 to control status LEDs. Run from the command line with the argument "pi" to activate status LEDs. Assumes you have already installed the RPi.GPIO library.
#!/usr/bin/env python
#
# file: isgovtdown.py
#
# description: checks usa.gov for the "Government has shut down" message
#
# usage: ./isgovtdown.py [pi]
# Passing argument 'pi' causes status LEDs to be used
#
# or in a crontab: