Google Drive

From AGILE IoT Wiki
Jump to: navigation, search

Introduction

AGILE offers a Node-RED node to connect to the Google Drive Storage. The node can be used to push data collected in files on the gateway to the Google Drive cloud storage.


GitHub

The most up to date code and readme can be found on the Agile-IoT github. Please have a look their if things are not clear or if issues present themselves. https://github.com/Agile-IoT/node-red-contrib-agile-googledrive

Configuration

1. Edit the node and add a Google Id, follow the instructions of the config node. 2. Add the google ID, click on done for the node config and deploy the flow. 3. Edit the node again, now you can browse the root folder list of your google Drive.

Upload a file

Connect a node with the following output

msg.payload: The text content of the file upload

msg.localpath: The local file path of the file to upload

Either the payload or the localpath are required. The payload has a higher priority as the localpath

Remarks

If the google callback returns that the profile fetching failed, you need to enable the google+ api in console.developers.google.com Check in the console.developers.google.com dashboard that the google+ API and google Drive API are active.