将iCalendar日历导入Orgmode
项目描述
此python脚本下载您的caldav日历并生成org日程文件。
1 安装
pip install org-mode-agenda
1.1 开发版
要使用开发版
git clone https://gitlab.com/Titan-C/org-mode-agenda.git
cd org-mode-agenda
python setup.py develop
2 配置
编辑配置文件 ~/.calendars.conf。 DEFAULT部分配置输出位置和执行日期前后天数。
然后每个新部分都是一个日历文件。您可以按需命名部分。这些名称不影响输出文件。
[DEFAULT]
outfile=~/org/caldav.org
ahead=90 # Days ahead from today
back=28 # Days in the past
[work] # Calendar name
user = on
passwordstore=Correos/mx.tribe29.com
# url for direct download of ics file
url=https://website.com/dav/calendar/personal?export
3 使用
此软件包安装了一个可执行脚本。只需直接调用它
org_agenda_sync
它支持一些命令行选项
org_agenda_sync -h
usage: org_agenda_sync [-h] [-f] [-v] Translate CalDav Agenda to orgfile optional arguments: -h, --help show this help message and exit -f, --force Force Download of Caldav files -v, --verbose
4 贡献
您可以友好地为此项目提供小费
- Stellar
GDPTOFND6HSE5AVHPRXOCJFOA6NPFB65JAEWKTN23EBUGBB2AU4PLIBD
5 许可
org-mode-agenda Copyright (C) 2020 Óscar Nájera This program 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. This program 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.