Skip to content

janpreet/nanakshahi-ical

Repository files navigation

nanakshahi-ical

Nanakshahi iCal CI

This script generates an ICS file that includes both Nanakshahi calendar dates and Sikh religious holidays. Itdisplays:

  • Daily Nanakshahi dates in both English and Punjabi.
  • Day of the week in both languages.
  • All Gurpurabs and historical events.
  • Nanakshahi year (NS - Nanakshahi Samvat).

Usage

Apple Calendar

You can subscribe to this calendar from your Apple calendar by following these steps:

  1. Open the Calendar app on your Mac.
  2. Choose File > New Calendar Subscription.
  3. Enter this URL in the "Calendar URL" field.
  4. Click Subscribe.
  5. Customize the settings for the calendar subscription, such as the name and color.
  6. Click OK.

Google Calendar

To add this calendar to Google Calendar:

  1. Open Google Calendar
  2. Click the "+" next to "Other calendars"
  3. Select "From URL"
  4. Enter this URL
  5. Click "Add calendar"

Acknowledgments

This script is built on top of the nanakshahi-js library, which provides the necessary functions to calculate the Gurpurab dates and Nanakshahi calendar conversions.