diff --git a/cfg/base_config.json b/cfg/base_config.json new file mode 100644 index 0000000..f7f3698 --- /dev/null +++ b/cfg/base_config.json @@ -0,0 +1,24 @@ +{ + "teamup_api_key": "", + "calendar_id": "ksp4hsa93c1nt5kmym", + "telegram_bot_token": "", + "known_telegram_channels": [{"name": "Thekenhelden", "id": -1001302667129}, {"name": "Team Chat", "id": -1001361066996}], + "telegram_channels": [{"name": "ThekendienstBotTest", "id": -4558981107}], + "subcalendars_to_check": ["flexibler Thekendienst", "regelmäßiger Thekendienst"], + "default_subcalendar_for_new_event": ["flexibler Thekendienst"], + "timezone": "Europe/Berlin", + "header": "Es gibt noch offene Thekendienste für diese Woche\\!\nWer kann bitte im [Kalender](https://teamup.com/ksp4hsa93c1nt5kmym) eintragen und im 'HOBBYHIMMEL Thekenhelden' chat melden\\.\n\n", + "footer": "\\- Der freundliche Theckendiensterinnerungsbot", + "no_open_slots": "Juhu\\! Diese Woche gibt es keine offenen [Slots](https://teamup.com/ksp4hsa93c1nt5kmym)\\!", + "appointment_motivator": "Da mache ich Theke\\.", + "start_date": "tomorrow", + "time_slots": { + "Monday": {"start": "17:00", "end": "22:00"}, + "Tuesday": {"start": "17:00", "end": "22:00"}, + "Wednesday": {"start": "17:00", "end": "22:00"}, + "Thursday": {"start": "17:00", "end": "22:00"}, + "Friday": {"start": "15:00", "end": "22:00"}, + "Saturday": {"start": "12:00", "end": "22:00"}, + "Sunday": {"start": "12:00", "end": "20:00"} + } +} diff --git a/docker/crontab b/docker/crontab index 90f3082..23aeaea 100644 --- a/docker/crontab +++ b/docker/crontab @@ -1,6 +1,6 @@ -0 21 * * 0 /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/check_next_7_days.json > /proc/1/fd/1 2>&1 -15 11 * * * /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/check_next_2_days.json > /proc/1/fd/1 2>&1 -0 9 * * * /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/last_minute_warning.json > /proc/1/fd/1 2>&1 +0 21 * * 0 /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/secrets.json /app/cfg/check_next_7_days.json > /proc/1/fd/1 2>&1 +15 11 * * * /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/secrets.json /app/cfg/check_next_2_days.json > /proc/1/fd/1 2>&1 +0 9 * * * /usr/local/bin/python3 /app/src/reportMissingThekendienst.py /app/cfg/base_config.json app/cfg/secrets.json /app/cfg/last_minute_warning.json > /proc/1/fd/1 2>&1 # Runs every minute to test # * * * * * echo "Hello" > /proc/1/fd/1 2>&1