Skip to content

nodejs project to control a raspberry pi for turn on led with jive activities

Notifications You must be signed in to change notification settings

bertrandgressier/jivepi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jivepi

nodejs project to control a raspberry pi for turn on led with jive activities

config

example of jive config file

var config = {}

config.username  = '';
config.password = '';
config.jiveUrl = '';

config.mockLed = false;

config.led = {
    redpin: 16,
    greenpin : 18,
    bluepin :22
};

module.exports = config;

upstart service

description "Jivepi upstart service"

start on filesystem and net-device-up IFACE=eth0
stop on runlevel [016]

respawn

post-stop script
  echo "`date` : stop jivepi" >> /home/pi/jivepi.log
end script

script
  export HOME="/home/pi"
  echo "`date` : start jivepi" >> /home/pi/jivepi.log
  cd /home/pi
  exec /home/pi/launchJivePi.sh >> /home/pi/jivepi.log 2>&1
end script

About

nodejs project to control a raspberry pi for turn on led with jive activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published