OctoPrint-GoogleDriveFiles
OctoPrint-GoogleDriveFiles copied to clipboard
Google Drive Files
This plugin will sync a configured folder in your Google Drive locally to your OctoPrint instance.
Prerequisites
Dependencies
Due to upstream dependencies this plugin has been updated to only work in Python 3. You can either flash OctoPi 0.18 which ships with Python 3 standard or use the upgrade instructions here to upgrade your instance.
You may also need to install some system dependencies, specifically if you manually installed OctoPrint and didn't use the OctoPi image. Known dependencies that have been reported are Rust
and libssl-dev
. Use the commands to below to install them.
sudo apt install rustc
sudo apt install libssl-dev
Create a Google OAuth App
- Login to the Google Developers Console
- Create a new project giving it a name of your choice.
- In the sidebar on the left (via ), select APIs and Services > Dashboard then at the top of the page click the button to
Enable APIS and Services
.
- Enter drive in the search box at the top of the page and click
Google Drive API
.
- Click the
Enable
button to allow our app to use the Google Drive API.
- In the sidebar on the left, select APIS and Services > Credentials
- Click
CONFIGURE CONSENT SCREEN
button at the top of the page.
- Select the
External
user type if you do not use Google G Suite, otherwise you can selectInternal
and clickCreate
.
- If you don't publish your app you need to add the user email that you will be using to access Google Drive as a Test User.
- Click
Save and Continue
on the remaining pages for your consent screen, and then clickBack to Dashboard
.
- In the sidebar on the left (via ), select APIs and Services > Credentials again.
- Click on
Create credentials
and selectOAuth client ID
.
- Select
Web application
for application type and then enter a name (can be anything and does not really matter). Fill in the Authorized redirect URIs ashttps://jneilliii.github.io/OctoPrint-GoogleDriveFiles/
and then clickCreate
.
- Click
OK
to the confirmation page and then use the download button to save your client_secrets#####.json file.
- Use the downloaded client_secrets#####.json file to upload into the plugin’s settings to authorize its access to your Google Drive as described in the Configuration section below.
Setup
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/jneilliii/OctoPrint-GoogleDriveFiles/archive/master.zip
Configuration
Once the Prerequisite steps above have been completed and you have downloaded your client_secrets.json file follow these steps to authorize the plugin to your newly created app.
- Open OctoPrint's settings from the System menu at the top of the page and select
Google Drive Files
in the left-hand navigation menu.
- Fill in the name of the folder you'd like to sync with in your Google Drive (will be added if it doesn't exist), use the
Browse
button to select your downloaded client_secrets#####.json file and press theUpload
button.
- An authentication URL will be generated, click the
Get Auth Code
button to open a new window and authorize your custom Google app.
- Log in to your Google account you want to give Drive access to. You will get a warning that the App isn't verified. This is normal as you have not submitted your custom app for verification by Google. You can choose to do that if you want but is not necessary for the operation of the plugin. Click the
Continue
button.
- Click the
Continue
button to retrieve your authentication code.
- Click the copy button to copy the authentication code to the clipboard.
- Paste the code copied in the previous step into the Auth Code field and click
Authorize
.
- If everything went well then you will be presented with a successful message.
Get Help
If you experience issues with this plugin or need assistance please use the issue tracker by clicking issues above.
Additional Plugins
Check out my other plugins here
Sponsors
- Andreas Lindermayr
- @TheTuxKeeper
- @tideline3d
- SimplyPrint
- Andrew Beeman
- Calanish
- Lachlan Bell
- Jonny Bergdahl
Support My Efforts
I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.
No paypal.me? Send funds via PayPal to [email protected]
You can use this link too. But the normal PayPal fee will be deducted.