Skip to content

Commit 91f4cef

Browse files
committed
done with the lego demo
1 parent 60da69b commit 91f4cef

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@reboot sleep 60 && /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/start.sh &
2+

application/device/smartindustry/start.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
cd /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry
2+
13
echo "start pushbutton"
2-
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/button.py & > /home/pi/button.log 2>&1
4+
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/button.py & > /home/pi/button.log 2>&1
5+
sudo python button.py > /tmp/button.log &
36

47
echo "start camera"
5-
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/camera.py & > /home/pi/camera.log 2>&1
8+
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/camera.py &
9+
sudo python camera.py > /tmp/camera.log &
610

711
echo "start motor"
8-
sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/motor.py & > /home/pi/motor.log 2>&1
12+
#sudo python /home/pi/go/src/github.com/smartfog/fogflow/application/device/smartindustry/motor.py & > /home/pi/motor.log 2>&1
13+
sudo python motor.py > /tmp/motor.log &
914

1015
echo "already set up everything"
11-

0 commit comments

Comments
 (0)