Subduino

AVR/Arduino Serial Tools on Ruby

http://github.com/nofxx/subduino

Install

gem install subduino

Requirements

Gems:

If you want:

PubSub:

  • redis

WebApp:

  • sinatra
  • haml

Use

 subduino -p <PORT> -b <BAUDS>

PubSub

Subduino.start do |reading|
  puts "Received from mcu: #{reading}"
  # Mail.send("[email protected]") if reading && reading.digital?
  # Postgre.remember(:sensor => reading)
  # Mongoid.insert(:sensor => reading)
  # ...
end

Subduino.write(TXT)

Webapp

Need some love...

License

"WTFPL":http://sam.zoy.org/wtfpl/