Skip to content

Commit

Permalink
done with the lego demo
Browse files Browse the repository at this point in the history
  • Loading branch information
showersky committed Oct 21, 2019
1 parent 60da69b commit 91f4cef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions application/device/smartindustry/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@reboot sleep 60 && /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/start.sh &

12 changes: 8 additions & 4 deletions application/device/smartindustry/start.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
cd /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry

echo "start pushbutton"
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/button.py & > /home/pi/button.log 2>&1
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/button.py & > /home/pi/button.log 2>&1
sudo python button.py > /tmp/button.log &

echo "start camera"
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/camera.py & > /home/pi/camera.log 2>&1
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/camera.py &
sudo python camera.py > /tmp/camera.log &

echo "start motor"
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/motor.py & > /home/pi/motor.log 2>&1
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/motor.py & > /home/pi/motor.log 2>&1
sudo python motor.py > /tmp/motor.log &

echo "already set up everything"

0 comments on commit 91f4cef

Please sign in to comment.