notify door-open value
to
-
watch {"type": "door", "cmd": "open", "result": "success"}
- write {"type": "skype", "cmd": "post", "value": "#{space}でドアが開きました"}
- write {"type": "slack", "cmd": "post", "value": "#{space}でドアが開きました"}
% npm install
% npm start
% gem install foreman
for launchd (Mac OSX)
% sudo foreman export launchd /Library/LaunchDaemons/ --app node-linda-door-notify -u `whoami`
% sudo launchctl load -w /Library/LaunchDaemons/node-linda-door-notify-main-1.plist
for upstart (Ubuntu)
% sudo foreman export upstart /etc/init/ --app node-linda-door-notify -d `pwd` -u `whoami`
% sudo service node-linda-door-notify start