Text angepasst, uv pip install pyobjc-framework-Contacts in Readme nachgezogen

This commit is contained in:
Ralph J.Mayer 2025-04-16 19:37:22 +02:00
parent fc8650dfda
commit 9f984a3744
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -33,6 +33,7 @@ source .venv/bin/activate
```bash
uv pip install contacts
uv pip install pyobjc-framework-Contacts
```
5. Speichern Sie das Script in einer Datei namens `contacts_to_remind.py`
@ -86,4 +87,4 @@ Die Rem-Einträge sind nach Monat und Tag sortiert und enthalten das Alter, wenn
## Hinweise
- Wenn bei einem Kontakt kein Geburtsjahr hinterlegt ist, wird kein Alter angezeigt
- Das Script kann als regelmäßiger Cron-Job eingerichtet werden, um die Geburtstagsdatei zu aktualisieren
- Das Script kann als regelmäßiger Cron-Job eingerichtet werden, um die Geburtstagsdatei zu aktualisieren

View file

@ -96,7 +96,7 @@ def create_remind_file(birthdays, output_file='geburtstage.rem'):
f.write(remind_entry)
# Remind-Eintrag für die Vorwarnung 7 Tage vorher
remind_entry_advance = f'REM {day} {month_to_abbr(month)} +7 MSG Vorwarnung: {name} hat in 7 Tagen Geburtstag {age_text} %b\n'
remind_entry_advance = f'REM {day} {month_to_abbr(month)} +7 MSG Vorwarnung: {name} hat %b\n {age_text}'
f.write(remind_entry_advance)
def month_to_abbr(month_num):