Note this is only really tested on mac/linux (including WSL).
- You will need automake and libtool and this repository
- Run
make devenv
- Activate the virtualenv with
. devenv/bin/activate
- Try running in simulation mode
python traffic.py -f
- If you feel fancy try running a secondary light in simulation mode
python traffic.py -f -m localhost
These instructions should work on any recentish raspian
- Make sure you can SSH into the pi
- Activate the virtualenv with
. devenv/bin/activate
- Install deps with fabric with
fab -H 1.2.3.4 -u pi --initial-password-prompt setup
or some variant - "Deploy" the traffic lights with
fab -H 1.2.3.4 -u pi --initial-password-prompt deploy
- note the initscript is disabled for now
There are a bunch of different modes you can select between via the --mode
command line option. The default remains the normal cycle.
- solid colors -
red
,yellow
,green
- blinking colors -
red-blink
,yellow-blink
,green-blink
- disco mode yo -
disco