Git Product home page Git Product logo

ncu-schedule2ics's Introduction

NCU 課表 轉 .ics file tool

Intro

為避免剛開學搞不清楚上課教室和上課時間,也方便自己日後管理行程,

所以做了這個工具,將課表以ics格式輸出,並匯入我的手機行事曆

如此一來就能清楚地看到課表,而且還能在上課20分鐘前收到通知~

Beautiful Sample

You can download ics in /sample to demo the final product

  • Demo on macOSX

  • Demo on ios (jailbreak and install Kalm)

requirement

python 3.5+

pip install icalendar

pip install request

pip install pandas

Usage

Step 0: Push download button to download(clone) my repo's zip file then unzip it

or

git clone https://github.com/lebr0nli/ncu-schedule2ics.git

Step 1: 設定config.ini

[login]
username = 109502567(your student id here)
password = flag{D0nt_h4Ck_m3_if_y0u_cAn}(your password here)

[start_time]
year = 2021
month = 2
day = 21

[end_time]
year = 2021
month = 6
day = 28

[announcement]
announce_time = 20

Note:

[login] : 學號/portal密碼

[start_time] : 開學日

[end_time] : 放假日

[announcement] : 設定行事曆app的提醒時間(在課程開始前X分鐘發送提醒通知)

請按需求設定,帳號密碼也請確認是否正確填寫

Step 2: run python script

python main.py

產生在同目錄底下的my_schedule.ics,即是你的課表

Step 3: import .ics to your device

Some good tutorial :

ios : good solution on stackoverflow

mac : just click my_schedule.ics

android : 用任何方式將ics傳到手機上,即可匯入google calendar或支援ics的行事曆軟體

Outro

Dirty code :(

Feel free to issue!

ncu-schedule2ics's People

Contributors

lebr0nli avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.