Skip to content

masuilab/linda-delta-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linda Delta Lamp

turn on/off the Lamp in DeltaS112 with RocketIO::Linda and Relay on Arduino

Dependencies

Install Dependencies

Install Rubygems

% gem install bundler foreman
% bundle install

Setup Arduino

Install Arduino Firmata v2.2

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

relay -> digital pin 12

Run

set ENV var "LINDA_BASE", "LINDA_SPACE" and "ARDUINO"

% export ARDUINO=/dev/tty.usb-device-name
% export LINDA_BASE=http://linda.example.com
% export LINDA_SPACE=test
% bundle exec ruby linda-delta-lamp.rb

oneline

% LINDA_BASE=http://linda.example.com LINDA_SPACE=test  bundle exec ruby linda-delta-lamp.rb

Install as Service

for launchd (Mac OSX)

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

for upstart (Ubuntu)

% sudo foreman export upstart /etc/init/ --app linda-delta-lamp -d `pwd` -u `whoami`
% sudo service linda-delta-lamp start

About

controll the Lamp in DeltaS112

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published