Migrate your contacts' birthdays to a calendar of your choice. All local.
- Python 93.6%
- Dockerfile 6.4%
|
|
||
|---|---|---|
| .gitignore | ||
| birthday_cardtocal.py | ||
| card.py | ||
| compose.yaml | ||
| cron.log | ||
| Dockerfile | ||
| LICENSE | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
| requirements.txt | ||
| template.env | ||
Contact birthdays to calendar
Adds yearly recurring events to your calendar from your contacts. All local, with CardDAV and CalDAV.
Usage
You'll need a CardDAV and CalDAV server. They can be on any host, even if it's not the same.
My testing has been done using addressbooks and calendars from Baïkal, but any other should work the same.
- Clone the repo
- Adapt
template.envto your needs:
cp template.env .env
vim template.envCARD_URL: URL to the specific addressbook.CAL_URL: URL to the specific calendar.
- Run the script:
python birthday_cardtocal.py - If there's any missing parameter, they will all be read from CLI.
Usepython birthday_cardtocal.py --helpto see how to pass them or set them in the.envfile.
Libraries
- Working with vCards: https://github.com/skarim/vobject
- Working with calendars: https://github.com/python-caldav/caldav
License
Code licensed under the GPL v3 license.
Done with 🖤 by Appu.