Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

This project is an automation that add, update and remove the F1 races to a Google Calendar.

Notifications You must be signed in to change notification settings

souzaMateus99/Automation.FormulaOne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formula One Calendar

ℹ️ Caso queira ler o README em português brasileiro, clique aqui

(If you want to read README in brazilian portuguese, click here)

⚠️ Click here if you want the F1 season without run this app.

The link will add you in a public calendar with the F1 races

This project is an automation that add, update and remove the F1 races to a Google Calendar.

Pre requirements

Make your Calendar public and get Calendar Id

Click here to learn how to let your calendar public and how to get calendar id

Google Service Account

Click here to get learn how to create Google Service Account to fill some properties in appsettings

Share your calendar with your Google Service Account Email

Click here to read how share your Google Calendar and get the client_email from your service account json

.Net Core 3.1

To run this app, you will need to have .Net Core 3.1 installed and configured on your machine

How to Use

Github Release

  1. Access the latest stable release version
  2. Download the release.zip file release-zip.png
  3. You will need to fill the properties in appsettings.json file that is in release folder.
    "appSettings": {
        "applicationName": "Application name (pre-filled)",
        "formulaOne": {
            "urlBase": "Formula 1 TV base url (pre-filled)",
            "apiVersion": "Formula 1 TV api version (pre-filled)",
            "language": "Formula 1 TV api language (pre-filled with portuguese)",
            "yearsPageId": [
                {
                    "year": "Year (pre-filled)",
                    "pageId": "Page ID to get race events list from year (pre-filled)"
                }
            ]
        },
        "google": {
            "calendar": {
                "id": "Google calendar ID"
            },
            "serviceAccount": {
                "email": "Google Service Account client_email value",
                "privateKey": "Google Service Account private_key value"
            }
        }
    }
  4. Run the executable (Script.FormulaOneCalendar.exe)

.Net Core 3.1 (Debug/Release)

  1. To use with .net core, you will need to fill the properties in appsettings file
    "appSettings": {
        "applicationName": "Application name (pre-filled)",
        "formulaOne": {
            "urlBase": "Formula 1 TV base url (pre-filled)",
            "apiVersion": "Formula 1 TV api version (pre-filled)",
            "language": "Formula 1 TV api language (pre-filled with portuguese)",
            "yearsPageId": [
                {
                    "year": "Year",
                    "pageId": "Page ID to get race events list from year"
                }
            ]
        },
        "google": {
            "calendar": {
                "id": "Google calendar ID"
            },
            "serviceAccount": {
                "email": "Google Service Account client_email value",
                "privateKey": "Google Service Account private_key value"
            }
        }
    }
  2. Run the project (src/Script.FormulaOneCalendar/Script.FormulaOneCalendar.csproj)