mkdir motion-detector; cd motion-detector;
t2 init;
npm install johnny-five tessel-io;
Then either edit index.js by hand, or run:
rm index.js;
wget https://gist.githubusercontent.com/rwaldron/42cd46b23b28e11d48f3e2afb92c193d/raw/index.js
Now you can deploy to Tessel 2:
t2 run index.js
