ical2sqlite
A simple iCalendar to iPod/iPhone calendar database
By Lucas Waye


1) About
-----------------
 This program is for linux users who want to sync their iPod/iPhone's
 calendar, but do not want to boot into Windows. You can now easily
 update your calendar information by using this program and executing a
 few other commands. I intend to eventually have this program run on the
 iPod/iPhone alone as a native app. The program is designed to read in an
 iCalendar file, and generate an iPod Calendar database for use by the
 Calendar program.
 
 This program uses libical and sqlite3. It is written in C and licensed
 under the GPL (see COPYING).

2) INSTALLATION
-----------------
 
 You will need the following packages before you can make this program:
        1) libical - http://sourceforge.net/project/showfiles.php?group_id=16077&package_id=64368
        2) pthread
        3) sqlite3
 You can get pthread and sqlite3 from your package manager.
 
 Once you have installed the packages, run the following commands:
        ./configure
        make
        sudo make install
 
 ical2sqlite is now setup.

3) USING
-----------------

 First you will need to get your iCalendar file.
    Google Calendar:
        You can do this by clicking settings at the top right, then select
		your calendar, then at the bottom, copy the shortcut.
        Now open up your console, and type the following command:
        	wget [your private calendar address]
    Others:
        You must locally save the calendar file and note its path.

 Now make the folder that has the ical2sqlite your working directory and
 run the following command:
     ./ical2sqlite basic.ics
 Where basic.ics is your calendar filename.
 
 The program will generate a file called "Calendar.sqlitedb." You will
 need to move this file onto your iPod Touch or iPhone. First turn on
 your iPod and make sure you are not running the Calendar program. Next,
 make sure you can connect to it through ssh. Once you have confirmed
 that you can connect, run the following command:
 
        scp Calendar.sqlitedb root@$1:/var/root/Library/Calendar/Calendar.sqlitedb
 
 Where $1 would be the IP address of your iPod. I have also included a
 shell script you can use called updateipod.sh to automate the process.
 
 Now you may open the Calendar.
 
