Use with_status
to run commands and have your arduino let you know when they are done.
with_status
starts by turning the LED off before running your command.
Once your command completes, it will turn the LED on. Green if the command succeeded, and red if it failed.
I use this with long running commands (such as deploying to heroku), so I can start working on something else without forgetting about my process.
Copy both digicolor
and with_status
(without extension) to somewhere in your PATH
and don't forget to chmod +x
them.
Simple example:
with_status "ls" # green
with_status "ls this/does/not/exist" # red
Rails (because rails is slow sometimes):
with_status rake routes
with_status rake -T
with_status bundle
Heroku processes:
with_status heroku db:pull
with_status "heroku maintenance:on && git push heroku master && heroku run rake db:migrate && heroku restart && heroku maintenance:off"
Hardware:
http://digistump.com/
http://digistump.com/products/3
Bundler.with_clean_env