- https://github.com/masuilab/linda-iota-door-open
- やまだくんがドアを開けた
- ["door", "open"]を読んでドアを開ける
- linda-baseから開けられる
- ["door", "open", "success"]を書き込む
https://www.youtube.com/watch?v=8yryQBdIyvs
% gem install bundler
% bundle install
サーボモータをArduinoの10番ピンに接続する
% export ARDUINO=/dev/tty.usb-device-name
% export LINDA_BASE=http://linda.masuilab.org
% export LINDA_SPACE=iota
% bundle exec ruby main.rb
% bundle exec ruby lib/iota_door.rb
for launchd (Mac OSX)
% sudo foreman export launchd /Library/LaunchDaemons/ --app linda-door-iota -u `whoami`
% sudo launchctl load -w /Library/LaunchDaemons/linda-door-iota-open-1.plist
for upstart (Ubuntu)
% sudo foreman export upstart /etc/init/ --app linda-door-iota -d `pwd` -u `whoami`
% sudo service linda-door-iota start