# Setting up Video Library Connector

## Overview

This tutorial will guide you through the process of installing and running a Video Library Data Consumer. The video library can be found here: [Digital Green Video Library](https://solutions.digitalgreen.org/videos/library).&#x20;

Kindly complete the prerequisites before proceeding with the guide.

{% content-ref url="installing-prerequisites" %}
[installing-prerequisites](https://docs.farmstack.co/deploying-farmstack/installing-prerequisites)
{% endcontent-ref %}

## Setting up FarmStack connector

In the terminal window type the following command to run FarmStack setup:

```
python3 setup.py
```

After the setup is complete, in the browser window, open the installer frontend by typing <http://localhost:8000>.

## Running the connector

Click on the <mark style="color:yellow;">Add New +</mark> button, which will open a dialog to setup connector.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FkUwUTVV7kgSqd2FkNCPn%2FScreenshot%202022-01-13%20at%2010.37.57%20PM.png?alt=media\&token=024adc86-656a-464b-84b8-974229f3c93a)

Select the connector you want to run. Here we'll run the Google Sheets connector.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FcZCPy6cGb41dbgQz1fPn%2FScreenshot%202022-01-13%20at%2010.39.27%20PM.png?alt=media\&token=8bbbca77-4e1e-48a5-8415-7c6784cdaae9)

Click on <mark style="color:yellow;">Next</mark> which will take you to the configure tab.&#x20;

In the configure tab, enter a google email you would like to share the data with. You can also change the sheet title here.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FjQEmMwdDUtv8zRLdQxCv%2FScreenshot%202022-01-13%20at%2010.42.12%20PM.png?alt=media\&token=11e63984-82f9-4092-b9c0-ef9cb5199c52)

Clicking <mark style="color:yellow;">Next</mark> will take you to the connect tab.

In the connect tab, you can see the provider connectors available to connect.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FkZ3myM7889bxOTU5vBEv%2FScreenshot%202022-01-13%20at%2010.42.54%20PM.png?alt=media\&token=3dc9b6b5-c573-4844-bf5e-9a95c0983afa)

Select the Video List Provider (DG - Coco) from the list of providers and click <mark style="color:yellow;">Finish.</mark>

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2F2lwVShfCM2p4KNEs3qqA%2FScreenshot%202022-01-13%20at%2010.45.11%20PM.png?alt=media\&token=a2cd20dd-af10-48e2-9c76-46756e6a42bb)

On the homepage, the table will update to show the currently running connectors.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2F74gn2F22izTurI2sLrnF%2FScreenshot%202022-01-13%20at%2011.12.47%20PM.png?alt=media\&token=c1ba3871-5f29-4d81-b72f-0e63a2804722)

From this table you can <mark style="color:blue;">open the homepage</mark> of the connector or delete the connector by clicking he <mark style="color:red;">red bin</mark> icon.

## Configuring the connectors

### Google Sheets Connector

Open the homepage of the App and click on the <mark style="color:yellow;">Sync Data</mark> button to fill the data in Google Sheet.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FV8Kaiyo6Vnt2uVFDbp4x%2FScreenshot%202022-01-14%20at%201.14.19%20AM.png?alt=media\&token=33ca55bd-f8f8-42d0-89a3-6e046cc80604)

### CSV Connector

Open the homepage of the App and click on the <mark style="color:yellow;">Sync Data</mark> button to generate a csv. Once the CSV file is generated you click on <mark style="color:blue;">Download</mark> option to download the CSV file.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McfeVjkkzf-uxnNfW6X%2Fuploads%2FvakjwaQSfp4i5J4xHQq8%2FScreenshot%202022-01-14%20at%201.16.29%20AM.png?alt=media\&token=3e829978-9708-4007-aa83-ba2f403fde0a)
