Giter Site home page Giter Site logo

google-calender-print-job's Introduction

Google Itinerary Printout

This is a script that will pull events from Google Calendar and Print them out to the computers default printer.

This script requires the following

  • Creating a project with google cloud
  • Enable the project to have access to Google Calendar
  • Create a application account for the project
  • Get certificate for application and store somewhere
  • Sharing your calendar with the application account
  • Creating the scheduled task on your computer/server

Creating Google Cloud Project

  1. Navigate to https://developers.google.com/workspace/guides/create-project and create a new project New Google Cloud Project Set Project Name
  2. Enable Project to have access to the Google Calendar API Admin Side bar API Services API Library Calendar App Hit Enable
  3. Create credentials that the script will use Calendar Enabled Credentials Sidebar New Service Account Assign role
  4. Create a key for this user. It will be used by the script to authenticate with google. Keep the key and the password safe! Keys Tab Download Key
  5. Share you calendar with the Service Account you created Share Calendar Shared with service account

Create A Scheduled Task with the script

  1. Download the directory and unzip in desired directory. Download zip from Github and Extract File Explorer
  2. Update the "run.ps1" file with your correct arguments
    • -certPath > the path to the certificate you downloaded from google
    • -certPath > the password that was given to you for your certificate to work. For security it's better to store this value in an environment variable like "GoogleCertPasswood". To read about environment variables go here. How to change environment variables on Windows 10 Update the run.ps1 file
  3. Create a new task in Task Scheduler for windows Open Task Scheduler and create new task Set name for task Create a trigger Set the trigger to run at desired time and settings Go to action and create new
  • "arguments" = -file <pathToThe run.ps1 script> and the start in
  • "start in" = the path to the DIRECTORY the run.ps1 is in Add powershell and arguments Set conditions Save by clicking ok
  1. The task is created and you can hit "Run task" to test the script at anytime. Task created

google-calender-print-job's People

Contributors

mrnwosu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.