Skip to content

Commit

Permalink
Corrections to README.md
Browse files Browse the repository at this point in the history
Removed some comments.
Added new configuration examples.
  • Loading branch information
Bas-Man committed Sep 8, 2020
1 parent 700e05f commit c72adaa
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Copy the code from the files directly and save with .gs file extention in [Googl
const baseLC = "Akasaka"; // Set your Base LC here
const writeSpreadSheet = false;
const showMaterial = true;
const archive = true;
const contractType = "PL";
```
**Sample: With Spreadsheet.**
```js
Expand All @@ -49,14 +51,16 @@ Copy the code from the files directly and save with .gs file extention in [Googl
const baseLC = "Akasaka"; // Set your Base LC here
const writeSpreadSheet = true;
const showMaterial = true;
const archive = true;
const contractType = "PL" or "FTI";
```

4. *(Optional)* Setup a daily trigger to run some time after the schedule has been posted. See instructions [Here](#trigger)

**Option 2**:

For those with software development experience or the bold. :) \
Clone this repo and then use `clasp` to push the code to GoogleScript. See [Video Here](https://www.youtube.com/watch?v=V_7kvwcZf_c)
For those with software development experience or the bold of heart. :) \
Clone this repo and then use `clasp` to push the code to GoogleScript. See [Video Here](https://www.youtube.com/watch?v=V_7kvwcZf_c) for a guide on getting started.

```bash
cd code
Expand All @@ -70,7 +74,7 @@ Copy the code from the files directly and save with .gs file extention in [Googl

You will need to create or use an existing calendar and determine its ID. You can get the ID by opening your google calendar.

If you want to have a special calendar for Berlitz work schedule. Follow these steps after creating the calendar in Google calender.
If you want to have a special calendar for your Berlitz work schedule. Follow these steps after creating the calendar in Google.

1. Navigate to Calendar and click on the three vertical dots

Expand Down Expand Up @@ -104,11 +108,11 @@ In order for this to be automated. You need to set up a trigger that runs by its
![TriggerStepOne](../media/Resources/TriggerStepOne.png?raw=true)
2. Click on the 'Add Trigger' Its a nice large blue Button, probably in the lower right corner.
2. Click on the 'Add Trigger'. Its a nice large blue Button, probably in the lower right corner.
![TriggerStepTwo](../media/Resources/TriggerStepTwo.png?raw=true)
3. 'Select type of time based trigger' Set this to 'Day timer' I have mine set to sometime after 7pm.
3. 'Select type of time based trigger' Set this to 'Day timer'. I have mine set to sometime after 7pm.
![TriggerStepThreeB](../media/Resources/TriggerStepThreeB.png?raw=true)
Expand All @@ -117,9 +121,6 @@ In order for this to be automated. You need to set up a trigger that runs by its
![TriggerStepFour](../media/Resources/TriggerStepFour.png?raw=true)
### <a name="known-issues"></a>Known Issues:
~~1. If there is more than a single message in a thread. The last message may not be processed. Resulting in the calendar and spreadsheet not being correct.~~
~~2. If the schedule is updated the next day. You will need to manually process the email. To do this.~~
~~1. Log in to gmail and remove the "Processed" label from thread.~~
~~2. Switch to google script. Manually run the nightlyProcess function.~~
3. Berlitz has not created all the required Google Maps entries for all Language Centres, more over, there are barely any locations in Apple Maps. This means that the maps location may not be available. If you find an LC that does have a Google maps location but no entry in the locations.gs file. Please let me know.
4. You may need to reauthorize the app after a few months. This happened to me after I had been using it for 4 to 5 months.
1. Berlitz has not created all the required Google Maps entries for all Language Centres, more over, there are barely any locations in Apple Maps. This means that the maps location may not be available. If you find an LC that does have a Google maps location but no entry in the locations.gs file. Please let me know.
2. You may need to reauthorize the app after a few months. This happened to me after I had been using it for 4 to 5 months.

0 comments on commit c72adaa

Please sign in to comment.