Automatically upload rendered timelapses to Youtube. Can also delete after upload to save space on the Raspberry Pi SD Card.
Sponsor this project:
If you are using a version of OctoPrint older than version 1.5.0 this plugin will not work.
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.
- 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 youtube in the search box at the top of the page and click
YouTube Data API v3.

- Click the
Enablebutton to allow our app to use the YouTube Data API v3.

- In the sidebar on the left, select APIS and Services > Credentials

- Click
CONFIGURE CONSENT SCREENbutton at the top of the page.

- Select the
Externaluser type if you do not use Google G Suite, otherwise you can selectInternaland clickCreate.

- If you don't publish your app you need to add the user email that you will be using to access YouTube Data API as a Test User.

- Click
Save and Continueon 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 credentialsand selectOAuth client ID.

- Select
Desktop Appfor application type and then enter a name (can be anything and does not really matter) and then clickCreate.

- Click
OKto 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 YouTube Data API as described in the Configuration section below.
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/ryanfox1985/OctoPrint-Youtube-Timelapse/archive/master.zip
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
Youtube Timelapsein the left-hand navigation menu.

- Use the
Browsebutton to select your downloaded client_secrets#####.json file and press theUploadbutton.

- An authentication URL will be generated and presented to you. Click that new URL to open a new window and authorize your custom Google app.

- Log in to your Google account you want to give YouTube 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
Advancedlink at the bottom of the page and the clickGo to <app name>.

- Click the
Allowbutton to retrieve your authentication code to enter in the plugin's settings in the next step.

- Copy the code from step 5 and paste it into the Auth Code field and click
Authorize.

- If everything went well then you will be presented with a successful message.
