Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (36 sloc) 705 Bytes

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("foo@bla.com") 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/