/IcsFormatter

An utility application for myself

Primary LanguagePython

ICS Formatter Scripts

Overview

This scirpt can export simple ics file by inputting schedules which will be repeated every week.

image1

Usage

  1. put input.txt on current directory.

  2. run below

python main.py
  1. export output.ics

Input Format

[開講曜日::string(*曜日)]/[時限::int]/[講義名::string]

also [時限] corresponds to the following table.

時限 時間(UTC+9)
1 08:50~10:20
2 10:30~12:00
3 13:00~14:30
4 14:40~16:10
5 16:15~17:45
6 17:55~19:25
7 19:35~22:05

This setting can be changed by editting timeschedule_dictionary in script.

Output Format

Defalt setting is

RRULE:FREQ=WEEKLY;BYDAY={weekday_integer};COUNT=16\n

It means "The class opened on weekday is repeated COUNT times".

If you need to change, you will edit this code.

Following references may help you at that time.