-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
106 lines (67 loc) · 2.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
ics2gCal - a ics feed adder for Google Calendar
Copyright 2010 - Pål Levold
CONTACT
=======
You can find the source code, wiki, and issue tracker at
http://github.com/levold/ics2gCal/
Your feedback is also welcome at [email protected]
CONTRIBUTIONS
=============
You are most welcome to contribute code to this project. Use contact
information mentioned above
LICENCE
=======
GNU GPL v3
ics2gCal is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ics2gCal is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ics2gCal. If not, see <http://www.gnu.org/licenses/>.
DOWNLOAD
========
Latest version can be found at http://github.com/levold/ics2gCal
DEPENDENCIES
============
- GData Python API, by Google Inc.
http://code.google.com/p/gdata-python-client/downloads/list
- iCalendar package for Python, by Max M
http://codespeak.net/icalendar/
- pytz, by Stuart Bishop
http://pytz.sourceforge.net/ or your distro's repository
USAGE
=====
1) Create a configuration file named 'config' in the same directory as ics2gCal.
Tip: Use the layout provided below.
2) Create an empty file where UIDs of added events will be stored (named in the config file).
3) Run the script (./ics2gCal.py) either manually or by creating a cron job
USAGE WITHOUT ROOT ACCESS
=========================
If you don't have root access to the computer and need to install some of the dependencies you can
download the dependencies as usual, but instead of running
# ./setup.py install
you can run
$ ./setup.py install --home=~
This will install the Python module in ~, i.e. your home directory. Follow the USAGE section above as
usual, but when running the script you should make sure that your PYTHONPATH environment variable is set
to ~/lib/python/. The easiest way is to run the script with this command:
$ export PYTHONPATH=~/lib/python/ && ./ics2gCal.py
CONFIG FILE LAYOUT
==================
[calendar1]
url = <FILL IN>
sha1 = <FILL IN> #whatever as long as it isn't the actual sha1 of the ics file (will be updated)
addto = <FILL IN> #Calendar in gCal to add events to. If unsure, use /calendar/feeds/default/private/full>
[calendar2]
url = <FILL IN>
sha1 = <FILL IN>
addto = <FILL IN>
#etc...
[settings]
username = <FILL IN>@gmail.com
password = <FILL IN>
eventfile = addedEvents.txt