/raspberry-pi-gpio-rails4-control

Raspberry Pi Control based on Ruby on Rails 4 and websockets

Primary LanguageRubyOtherNOASSERTION

Ruby on Rails Raspberry Pi GPIO Control

Raspberry Pi Control based on Ruby on Rails 4 and websockets that allow you to 'bind' GPIO (IN/OUT) pins to web page controls.

How To

  • Start DRb server as root user:
sudo bundle exec ruby bin/gpio start
  • Start Rails server in develpment mode:
thin start

or

in production mode, first compile assets then start thin:

RAILS_ENV=production bundle exec rake assets:precompile
thin -e production start

Demo

Video Demonstration