Node-RED nodes to watch and download files from Dropbox
npm install node-red-node-dropboxnode-red-node-dropbox
=====================
Node-RED nodes to watch, save
and retrieve files from Dropbox.
Install
-------
Search for node-red-node-dropbox in the Palette Manager, or run the following
command in your Node-RED user directory, `~/.node-red:
npm install node-red-node-dropbox
Usage
-----
Watches for file events on Dropbox.
By default all file events are reported, but the filename pattern can
be supplied to limit the events to files which have full filenames
that match the glob pattern.
The event messages consist of the full filename in msg.payload property, the
filename in msg.file and the event type in msg.event.
Downloads content from Dropbox.
The filename on Dropbox is taken from the node filename
property or the msg.filename property.
The downloaded content is sent as msg.payload property. If the download
fails msg.error will contain an error object.
Uploads content to Dropbox.
The filename on Dropbox is taken from the node filename property or the msg.filename property.
You can pass in content either as a filename by setting the localFilename field ormsg.localFilename property, or you can pass in content directly using msg.payload.
The file will be uploaded to a directory on Dropbox called Apps/{appname}/{appfolder}
where {appname} and {appfolder} are set when you set up the Dropbox application key and token.
To request once such a refresh token, create a Dropbox config node and follow the instructions on the config node screen step by step. The diagram below summarizes all these steps that need to be executed:
files.content.write: Edit content of your Dropbox files and foldersfiles.content.read: View content of your Dropbox files and foldersThis app has reached its user limit. By default your Dropbox account is only accessible via one domain (e.g. http://my_node_red_domain:1880): As a result, you will get this error when you try to access it via multiple domains. In that case you can allow multiple clients via the above "Enable additional users" button.