docs: remove stale cronjob scheduling section, update to meal-cron container
CI / test-and-package (push) Successful in 37s
CI / test-and-package (push) Successful in 37s
This commit is contained in:
+1
-17
@@ -220,25 +220,9 @@ Users can configure [ntfy](https://ntfy.sh) to receive push notifications with a
|
||||
|
||||
### How It Works
|
||||
|
||||
- Reminders are sent via the CLI command: `flask send-reminders`
|
||||
- Reminders are sent automatically by the `meal-cron` container via `POST /api/cron-tick` every 60 seconds
|
||||
- The notification contains **Home** and **Out** buttons
|
||||
- Pressing a button sends an HTTP callback to the app, recording your response instantly
|
||||
- Tapping the notification itself opens the dashboard
|
||||
|
||||
### Scheduling Reminders
|
||||
|
||||
Add a cron job on the server to send reminders automatically:
|
||||
|
||||
```bash
|
||||
# Lunch reminder at 9:00 AM
|
||||
0 9 * * * cd /path/to/app && docker compose exec meal-tracker flask send-reminders --meal lunch --base-url https://meals.ct.cozytren.ch
|
||||
|
||||
# Dinner reminder at 5:00 PM
|
||||
0 17 * * * cd /path/to/app && docker compose exec meal-tracker flask send-reminders --meal dinner --base-url https://meals.ct.cozytren.ch
|
||||
```
|
||||
|
||||
Or run manually:
|
||||
|
||||
```bash
|
||||
docker compose exec meal-tracker flask send-reminders --date 2026-08-01 --meal both
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user