1-phone_rpi3

1.超音波-++++-攝影機

2.RAMDISK

3.網頁PHP

4.PYTHON 讀指令

5.控制LED

6.控制FAN (using with relay)

樹莓派

cd /home/pi/project1

sudo ./go.sh

sudo ./go1.sh

sudo ./go2.sh

sudo ./go3.sh

查看 手機分享IP

打開1樓電燈

http://192.168.XX.XX/led_1_on.php

開掉1樓電燈

http://192.168.XX.XX/led_1_off.php

打開2樓電燈

http://192.168.XX.XX/led_2_on.php

開掉1樓電燈

http://192.168.XX.XX/led_2_off.php

打開風扇

http://192.168.XX.XX/fan_1_on.php

關掉風扇

http://192.168.XX.XX/fan_1_off.php

每5秒讀一次 ,如果是1 ,則發出警報

http://192.168.2.216/warning.txt

重置警報 ==>set warning.txt as 0

http://192.168.2.216/filereset.php

監視畫面

http://192.168.2.216:8080/javascript_simple.html