diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-27 11:46:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-27 11:46:32 +0200 |
| commit | 10e3d8fdc85d97cb131d0dc0745c281d6dab4895 (patch) | |
| tree | 630b09c828dc64e1185e0cd621982a515eb645fe | |
| parent | 52c01b6bd5a63d514ca083edf2f10d25c03d6cb0 (diff) | |
| download | splus-10e3d8fdc85d97cb131d0dc0745c281d6dab4895.tar.gz splus-10e3d8fdc85d97cb131d0dc0745c281d6dab4895.zip | |
Update readme
| -rw-r--r-- | README.md | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -4,17 +4,13 @@ The [Ostfalia SPlus lecture schedule](http://splus.ostfalia.de) is complicated t ## Setup -### General +Run `npm install` to install the necessary dependencies. Copy `config-example.json`. -Run `npm install` to install the necessary dependencies. +Start with `npm start ./config.json` or export `SPLUS_CONFIG=./config.json`. `./config-example.json` is the default configuration path. -### Google +#### Google OAuth setup -Follow the steps provided by Google: https://developers.google.com/calendar/auth#OAuth2Authorizing +Follow the [steps provided by Google](https://developers.google.com/calendar/auth#OAuth2Authorizing). You will receive a `client_secret.json` file which contains your Google API credentials. Save this file as `etc/google/client_secret.json`. -Adjust `config.ts` so that it uses the `sinks/GoogleCalendarSink`. Then run `npm start` in a terminal, visit the printed link and paste the code that will be provided there into the terminal window. - -### ICS - -Adjust `config.ts` so that it uses the `sinks/IcalSink`. Run `npm start` to generate the calendar file. +Omit `"icsPath"` in the configuration file. |
