Raspberry Pi : Google Docs , WebCam & Cloud
1.Send Data to Google Docs Spreadsheet
- ตั้งค่า Google Docs Spreadsheet
สมัครสมาชิกและลงชื่อเข้าใช้ Google Docs และสร้าง spreadsheet
สมัครสมาชิกและลงชื่อเข้าใช้ Google Docs และสร้าง spreadsheet
- รับ OAuth2 credentials
- ไปที่http://gspread.readthedocs.io/en/latest/oauth2.html และทำตามวิธีการสร้างไฟล์ คุณจะได้รับไฟล์ .json ให้คัดลอกไฟล์ .json ไปที่ RPI
- คัดลอก client_email และแชร์ไปที่ Google spreadsheet
Run Python Code
- อันดับแรกเราต้องติดตั้ง "gspread" phyton libraryสร้างแฟ้ม phyton "gspreadsheet.py" sudo nano gspreadsheet.py" และเพิ่ม Code นี้
ดูโค้ดโปรแกรมที่นี่ คลิ้ก
ต่อจากนั้นก็รันโปรแกรมโดยพิมพ์ คำสั่ง “sudo python gspreadsheet.py”
2.Image storage system with motion capture by Raspberry Pi.
Linking your Raspberry Pi to your Dropbox Account
ก่อนอื่นจะต้องแน่ใจว่าคุณมี DropBox account
clone พื้นที่เก็บข้อมูลโดยใช้คอมไพล์
เปลี่ยนสิทธิ์ของโปรแกรม
sudo chmod + x dropbox_uploader.sh


