DIY flower watering system. Cause I couldn't by a ready to use one...
-
Clone this repo.
-
git co status
(because wooterer'll push there its logs) -
git merge master
-
npm i
-
Configure git and GitHub so wooterer is able to commit.
- Configure SSH key (ideally, a deploy key).
- Say who you are.
git config --global user.name "You" git config --global user.email "y@o.u"
-
Start me!
ssh pi@raspberrypi.local
nohup node index.js >> log.out 2>> log.err < /dev/null &
Add the following line before exit 0
in etc/rc.local
:
sudo -H -u pi bash -c "cd /home/pi/wooterer && (node index.js >> log.out 2>> log.err)" &