Split secrets into separate file
This commit is contained in:
parent
39ab19125c
commit
1748fd7016
24
cfg/base_config.json
Normal file
24
cfg/base_config.json
Normal file
|
|
@ -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"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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
|
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/check_next_2_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/last_minute_warning.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
|
# Runs every minute to test
|
||||||
# * * * * * echo "Hello" > /proc/1/fd/1 2>&1
|
# * * * * * echo "Hello" > /proc/1/fd/1 2>&1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user