1. Raspberry Pi 拍攝圖片
raspistill -t 2000 -o image.jpg
2. 將圖片上傳至阿里雲服務器
curl -u qxu1591180422 -T image.jpg ftp://qxu1591180422.my3w.com/htdocs/
3. 拍攝照片並上傳至服務器
注意替換掉用戶名和密碼
rm *.jpg
sleep 1
raspistill -t 2000 -o image.jpg
sleep 1
curl -u username:passwd-T image.jpg ftp://qxu1591180422.my3w.com/htdocs/