The Google Drive Upload component allows you to upload files to Google Drive.
It can do the following
transfer result data processed by Gravio to Google Drive
・Upload and save device data to Google Drive as log data on a regular basis
CSV, Excel format, and image data acquired from cameras can also be transferred to Google Drive.
capture images triggered by sensors such as buttons and human detection, and upload the image data to Google Drive for storage
process RDB or CSV data acquired by Gravio into Excel or other formats and transfer them to Google Drive
Create Excel files for periodic reporting of sales data and sensor data, and upload and save them to Google Drive for internal use.
Output Payload | Description |
---|---|
cv.Payload |
output payload of the previous component as is. (pass-through) |
component property
Property Name | Description | |
---|---|---|
Input | payload or filename | |
filename | File name to be sent if “Input Properties” is a file name. | |
Content-Type | Content-Type of HTTP header | |
Designation Method | Folder path or folder ID | |
Drive folder path | Google Drive destination folder name | |
FileID | Google Drive destination folder ID | |
timeout | HTTP request response timeout value | |
OAuth2 Client ID | Client ID of API 2.0 from GCP ※1 | |
OAuth2 Client Secret | Specify Client Secret from GCP ※1 | |
OAuth2 Redirect URL | Specify Redirect URL from GCP ※1 | |
OAuth2 Access Token | Press the Get Token button to get the token. You can also update the token by pressing the Update button ※1 ※2 |
※1 See here for an example of OAuth2 configuration in GCP.
component variable
Component Variables | Description |
---|---|
cv. ContentType | Content-Type of HTTP header |
cv. FileID | File ID |
cv. FolderID | Folder ID |
cv. DriveFilename | Google Drive destination filename |
how to get OAuth2 access token
※2 Press the Get OAuth2 access token button to display the Get OAuth 2.0 access token panel. Press the Open Browser button to obtain the token. Once the token is obtained, press the Set button to automatically set it to the OAuth2 access token property.
In Gravio Studio for Windows, press the Open Browser button in the same way to obtain the token, but an error screen will appear. In this state, copy the URL from the address bar and press the Get button with that URL as the pace in the panel. Press the Set button to automatically set the token to the OAuth2 access token property.
Pressing the Open Browser button will automatically authenticate the user in the browser. If necessary, please follow the on-screen instructions for the login process, etc.
When the authentication is completed, an error message “This page is unreachable” will be displayed.
Paste the copied URL into the panel and press the Get button, and the OAuth2 access token will be “obtained”. Press the Set button to close the panel.
Need more help with this?
Join our slack community for help