Triggerino
Installation
Add this lines to your application's Gemfile:
gem 'triggerino'
gem 'dino',
git://github.com/supherman/dino.git',
branch: 'lcdv3'
And then execute:
bundle
Usage
Create a "triggerino" dir
mkdir triggerino
Define your action classes
touch triggerino/my_action.rb class MyAction include Triggerino::Action def perform # puts your action logic here end def to_s 'A descriptive name for your action' end end
Wire your arduino like this
Run the listener
bundle exec triggerino
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request