controll IRKit via Web
- Ruby 2.0.0+
- IRKit
% gem install bundler foreman
% bundle install
save IR Data uses irkit rubygem
% irkit --device:add myhouse
% irkit --get 冷房ON
% irkit --post 冷房ON # test
% export IRKIT=192.168.1.106
% bundle exec rackup config.ru -p 5000
if you need
% export BASIC_AUTH_USERNAME=username
% export BASIC_AUTH_PASSWORD=password
export launchd plist file
% sudo foreman export launchd /Library/LaunchDaemons/ --app irkit-webui -u `whoami`
edit plist before launch, then
% sudo launchctl load -w /Library/LaunchDaemons/irkit-webui-1.plist
edit plist before launch
export upstart file
% sudo foreman export upstart /etc/init/ --app irkit-webui -d `pwd` -u `whoami`
edit upstartfile before launch, then
% sudo service irkit-webui start