python script to turn on/off a light via a Raspberry Pi + powertail + breakout board
Code learned/borrowed from: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-13-power-control/hardware
- pull repro down onto Pi
- connect powertail (see link above)
su
cd pi_light
chmod 775 switch.sh
./switch.sh ON | OFF