Skip to content

node-linda/arduino-sensor-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino-sensor-ruby

Share Arduino's sensor values with linda-socket.io

Install Dependencies

% gem install bundler foreman
% bundle install

Setup Arduino

Install Arduino Firmata v2.2

Arduino IDE -> [File] -> [Examples] -> [Firmata] -> [StandardFirmata]

sensors

  • light
    • analog input 0
    • CdS and 330Ω
  • temperature

arduino schema

Run

% foreman start

=> http://node-linda-base.herokuapp.com/test?type=sensor

Run with your linda-base

% export LINDA_BASE=http://node-linda-base.herokuapp.com
% export LINDA_SPACE=test
% foreman start

Install as Service

% gem install foreman

for launchd (Mac OSX)

% sudo foreman export launchd /Library/LaunchDaemons/ --app ruby-linda-arduino-sensor -u `whoami`
% sudo launchctl load -w /Library/LaunchDaemons/ruby-linda-arduino-sensor-main-1.plist

for upstart (Ubuntu)

% sudo foreman export upstart /etc/init/ --app ruby-linda-arduino-sensor -d `pwd` -u `whoami`
% sudo service ruby-linda-arduino-sensor start

About

Share Arduino's sensor values

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages