0.1.8 • Published 10 years ago
oppi-file v0.1.8
oppi-file
A file tentacle for octoppi. It sends a file on the /file path to your dropbox.
Installation
> octippi-server install file
Using the Dropbox api
---------------------
Make your own dropbox app by visiting https://www.dropbox.com/developers/apps
Click _Create app_
Chose Dropbox API app
Name it octoppi_files
In settings chose OAuth2 Redirect URIs `http://localhost:8912/oauth_callback`
Create a config file in `.octoppi-tentacles/node_modules/oppi-file/lib/config.js`
var dropbox_config = { key: "xxx", secret: "xxxx", token: 'xxx' }
module.exports = dropbox_config;
Authenticate your dropbox
-------------------------
`> cd .octoppi-tentacles/node_modules/oppi-file`
`> node lib/authenticate.js`
should open a webbrowser and aks you to confirm authentication of the app.
It will return a token in the terminal. Copy the token into config.js
`> octoppi-server start`