Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.
/ ihol Public archive
forked from eikenb/ihol

I Hate OutLook (O365 calendar pull)

Notifications You must be signed in to change notification settings

mhtrinhLIC/ihol

 
 

Repository files navigation

I Hate OutLook (ihol)

We use Office-365 at work, but I despise the online Outlook 'client' for calendaring. So I wrote this. Turns out several of my co-workers are in the same boat, so I'm sharing this here.

At the moment it outputs calendar events in remind or basic ICal formats for adding them to local calendars. It will also output the full body of the next or more events.

Authentication Setup

MS requires Oauth2 based login now which complicates setup a bit. You need a set of API credentials from MS and store them in a config file in json format.

conf.js.template is a template to be renamed to conf.json and populate with your own id/credentials (ClientID, ClientSecret, TenantID)

The O365 library I use has this documented in their README, but the TLDR version is..

  • Copy conf.json.template to conf.json
  • Create your virtualenv buy running createVenv.sh
  • Login at https://apps.dev.microsoft.com/ with your Office-365 creds.
  • Create an app (the application-id is your ClientID)
  • Generate a client secret in "Certificates & secrets" (this is your ClientSecret)
  • Under Authentication, add a new web platform and set the redirect URL to: https://login.microsoftonline.com/common/oauth2/nativeclient
  • Under the "API Permissions", add new permission : Delegated "Calendars.ReadWrite", "offline_access" and "User.Read" (remember to save)
  • Under Overview, Directory (tenant) ID is your TenantID
  • Populate your conf.json with value obtained above
  • Run the ./initial-auth.py and follow the directions
  • ihol should now run

Note you also need to keep the ./o365_token.txt file created by the initial-auth.py run. The token in that file will stay good indefinitely as long as you use it once every 90 days.

About

I Hate OutLook (O365 calendar pull)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.4%
  • Shell 18.6%