Google Spreadsheet Gateway
The Spreadsheet Gateway is an application for piping data between Sofie Core and Spreadsheets on Google Drive.
Example Blueprints for Spreadsheet Gateway
To begin with, you will need to install a set of Blueprints that can handle the data being sent from the Gateway to Sofie Core. Download the demo-blueprints-r*.zip
file containing the blueprints you need from the Demo Blueprints GitHub Repository. It is recommended to choose the newest release but, an older Sofie Core version may require a different Blueprint version. The Rundown page will warn you about any issue and display the desired versions.
Instructions on how to install any Blueprint can be found in the Installing Blueprints section from earlier.
Spreadsheet Gateway Configuration
If you are using the Docker version of Sofie, then the Spreadsheet Gateway will come preinstalled. For those who are not, please follow the instructions listed on the GitHub page labeled Installation (for developers).
Once the Gateway has been installed, you can navigate to the Settings page and check the newly added Gateway is listed as Spreadsheet Gateway under the Devices section.
Before you select the Device, you want to add it to the current Studio you are using. Select your current Studio from the menu and navigate to the Attached Devices option. Click the + icon and select the Spreadsheet Gateway.
Now you can select the Device from the Devices menu and click the link provided to enable your Google Drive API to send files to the Sofie Core. The page that opens will look similar to the image below.
xx Make sure to follow the steps in Create a project and enable the API and enable the Google Drive API as well as the Google Sheets API. Your "APIs and services" Dashboard should now look as follows:
Now follow the steps in Create credentials and make sure to create an OAuth Client ID for a Desktop App and download the credentials file.
Use the button to download the configuration to a file and navigate back to Sofie Core's Settings page. Select the Spreadsheet Gateway, then click the Browse button and upload the configuration file you just downloaded. A new link will appear to confirm access to your google drive account. Select the link and in the new window, select the Google account you would like to use. Currently, the Sofie Core Application is not verified with Google so you will need to acknowledge this and proceed passed the unverified page. Click the Advanced button and then click Go to QuickStart ( Unsafe ).
After navigating through the prompts you are presented with your verification code. Copy this code into the input field on the Settings page and the field should be removed. A message confirming the access token was saved will appear.
You can now navigate to your Google Drive account and create a new folder for your rundowns. It is important that this folder has a unique name. Next, navigate back to Sofie Core's Settings page and add the folder name to the appropriate input.
The indicator should now read Good, Watching folder 'Folder Name Here'. Now you just need an example rundown. Navigate to this Google Sheets file and select the File menu and then select Make a copy. In the popup window, select My Drive and then navigate to and select the rundowns folder you created earlier.
At this point, one of two things will happen. If you have the Google Sheets API enabled, this is different from the Google Drive API you enabled earlier, then the Rundown you just copied will appear in the Rundown page and is accessible. The other outcome is the Spreadsheet Gateway status reads Unknown, Initializing... which most likely means you need to enable the Google Sheets API. Navigate to the Google Sheets API Dashboard with this link and click the Enable button. Navigate back to Sofie's Settings page and restart the Spreadsheet Gateway. The status should now read, Good, Watching folder 'Folder Name Here' and the rundown will appear in the Rundown page.
Further Reading
- Demo Blueprints GitHub Page for Developers
- Example Rundown provided by Sofie.
- Google Sheets API on the Google Developer website.
- Spreadsheet Gateway GitHub Page for Developers