Update automation configuration and paths

- Update plist to use new project path structure
- Simplify plist by removing comments
- Add run_tip_generator.sh script for easier execution
- Update data directory path in weekly_tip_generator.py

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-08 18:33:41 +01:00
co-authored by Claude Sonnet 4.5
parent 428403557e
commit 42a00d3fc4
3 changed files with 10 additions and 19 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
cd "/Users/sebastianfrohlich/Projekte/Lotto"
source venv/bin/activate
python scripts/automation/weekly_tip_generator.py
+5 -18
View File
@@ -2,22 +2,16 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<!-- Label - Eindeutige Identifier -->
<key>Label</key> <key>Label</key>
<string>com.lotto.weekly</string> <string>com.lotto.weekly</string>
<!-- Programm-Pfad -->
<key>ProgramArguments</key> <key>ProgramArguments</key>
<array> <array>
<string>/bin/bash</string> <string>/Users/sebastianfrohlich/Projekte/Lotto/run_tip_generator.sh</string>
<string>-c</string>
<string>cd "/Users/sebastianfrohlich/Library/Mobile Documents/com~apple~CloudDocs/Jupyter Notebooks/Lotto" &amp;&amp; source venv/bin/activate &amp;&amp; python scripts/automation/weekly_tip_generator.py 2>&1 | tee -a logs/launchagent.log</string>
</array> </array>
<!-- Zeitplan: Dienstag und Freitag um 21:00 -->
<key>StartCalendarInterval</key> <key>StartCalendarInterval</key>
<array> <array>
<!-- Dienstag 21:00 (vor Mittwoch-Ziehung) -->
<dict> <dict>
<key>Weekday</key> <key>Weekday</key>
<integer>2</integer> <integer>2</integer>
@@ -26,7 +20,6 @@
<key>Minute</key> <key>Minute</key>
<integer>0</integer> <integer>0</integer>
</dict> </dict>
<!-- Freitag 21:00 (vor Samstag-Ziehung) -->
<dict> <dict>
<key>Weekday</key> <key>Weekday</key>
<integer>5</integer> <integer>5</integer>
@@ -37,34 +30,28 @@
</dict> </dict>
</array> </array>
<!-- Arbeitsverzeichnis -->
<key>WorkingDirectory</key> <key>WorkingDirectory</key>
<string>/Users/sebastianfrohlich/Library/Mobile Documents/com~apple~CloudDocs/Jupyter Notebooks/Lotto</string> <string>/Users/sebastianfrohlich/Projekte/Lotto</string>
<!-- Standard Output/Error Logging -->
<key>StandardOutPath</key> <key>StandardOutPath</key>
<string>/Users/sebastianfrohlich/Library/Mobile Documents/com~apple~CloudDocs/Jupyter Notebooks/Lotto/logs/stdout.log</string> <string>/Users/sebastianfrohlich/Projekte/Lotto/logs/stdout.log</string>
<key>StandardErrorPath</key> <key>StandardErrorPath</key>
<string>/Users/sebastianfrohlich/Library/Mobile Documents/com~apple~CloudDocs/Jupyter Notebooks/Lotto/logs/stderr.log</string> <string>/Users/sebastianfrohlich/Projekte/Lotto/logs/stderr.log</string>
<!-- Wichtig: RunAtLoad für sofortigen Test -->
<key>RunAtLoad</key> <key>RunAtLoad</key>
<false/> <false/>
<!-- Environment Variables -->
<key>EnvironmentVariables</key> <key>EnvironmentVariables</key>
<dict> <dict>
<key>PATH</key> <key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>LANG</key> <key>LANG</key>
<string>de_DE.UTF-8</string> <string>de_DE.UTF-8</string>
</dict> </dict>
<!-- Wichtig: Auch bei Sleep/Wake ausführen -->
<key>LaunchOnlyOnce</key> <key>LaunchOnlyOnce</key>
<false/> <false/>
<!-- Process Nice Level (niedrigere Priorität) -->
<key>Nice</key> <key>Nice</key>
<integer>10</integer> <integer>10</integer>
</dict> </dict>
+1 -1
View File
@@ -271,7 +271,7 @@ def main():
parser.add_argument( parser.add_argument(
'--data-dir', '--data-dir',
type=str, type=str,
default="/Users/sebastianfrohlich/Library/Mobile Documents/com~apple~CloudDocs/Jupyter Notebooks/Lotto/data", default="/Users/sebastianfrohlich/Projekte/Lotto/data",
help='Daten-Verzeichnis' help='Daten-Verzeichnis'
) )