Skip to content

Batch create a calendar of events that cycles letter days which spell out words of encouragement.

License

Notifications You must be signed in to change notification settings

saegl5/jiayou_create_calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create 加油 ("jiā yóu") Calendar

Google Web app for creating a calendar of individual events that cycles the words "J Day," "I Day," "A Day," "Y Day," "O Day," and "U Day," except on weekends and holidays. Modify as needed, and back up your calendars before you run the app. Without an app script, one would need to create these events manually.

Suggestion: Run this script in a summer before an upcoming school year; this is because the script will create events starting in the current year.

Visual Example

screenshot of calendar form
Form for creating "JIA YOU" calendar of events. (Username is hidden.)

screenshot of calendar
"JIA YOU" calendar of events was created.

Prerequisite

Access to Google Apps Script

Getting Started

Build and Deploy

  1. Go to Google Apps Script, and create a new project.
  2. Copy and paste the script into the editor, and save the file.
  3. Run the script to acquire authorization.
  4. Create an HTML file, and name it "Index."
  5. Copy and paste the markup text into the editor, and save the file.
  6. Deploy the project as a Web app, and open the assigned URL.

How to Use

  1. Check the username to ensure that you opened the URL in the correct account.
  2. Modify the calendar name and time zone.
  3. Add any exceptions to the U.S. holiday schedule, any half-days, and any extra holidays. (Exceptions tell the app script to create events on these holidays; half-days tell the app script to skip this day; and extra holidays tell the app script not to create events on these non-holidays.)
  4. Modify the start and end months. (If the start month is greater than the end month, then the calendar will roll over to the new year.)
  5. Optionally perform a dry run to test the Web app before running it in production. Consult logs for output.
  6. Press submit. (Requires another authorization. Note also that creating calendars is subject to a use limit.)

Next Steps

  • If you deploy the Web app such that it executes as User accessing the web app where Anyone with Google account can access it, then you can share the URL for them to create a calendar in their own account. (You may wish to hide the dry run option.)
  • Trim the calendar (e.g., delete letter days after Jun 12, if a school calendar ends on Jun 12)
  • Consult the Web app for adding events.
  • You can extend the app script to create a calendar cycling any letters or words and in any language. Feel free to fork, too!
  • You can also export the calendar directly from Google Calendar and can import it into another calendar on your smartphone. Alternative: Check out Jonathan Hsieh's AileenBot, and subscribe to community events. ('Whatever way makes it easier for you to keep track of today's letter...)

Made with ♥ in Visual Studio Code

A special thank you to Chi (David) Yu and James Armstrong. Chi contributed the idea of developing the app using Google Apps Script, and James contributed recurring events and regular expressions.

About

Batch create a calendar of events that cycles letter days which spell out words of encouragement.

Resources

License

Stars

Watchers

Forks

Packages

No packages published