Skip to content

drehelis/sammy_ofer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sammy Ofer Notification Bot 🤖

"Buy Me A Coffee" Telegram Calendar

Description

A small time scheduled (cron) web-scraper to notify of upcoming game events taking place in Sammy Ofer Stadium.

Join the notification #channel on Telegram and enjoy:

  • ☝️ Single notification for the upcoming event
  • 🚦 Matchup, average attendance and roadblock times
  • ⛔ Spam free service
  • 🌎 Static landing page to be shown on big screen/TV
  • 🗓️ Public Google Calendar

Web-UI

Web-UI screenshot

Static landing page (link)

Static screenshot

Google Calendar

Google Calendar

Build it

git clone https://github.com/autogun/sammy_ofer.git
cd sammy_ofer
docker build . -t sammy_ofer

Run it

cat << EOF > .env
TELEGRAM_CHANNEL_ID=<required>
TELEGRAM_TOKEN=<required>
GH_PAT=(optional)
SKIP_COMMIT=false
SKIP_CALENDAR=false
EOF

docker run -d --name sammy_ofer \
    --publish 5000:5000 \
    --restart=on-failure \
    --env-file ./.env \
    --volume $(PWD)/service_account.json:/usr/src/sammy_ofer/service_account.json \
    --volume $(PWD)/sammy_ofer.db:/usr/src/sammy_ofer/sammy_ofer.db \
    sammy_ofer:latest

Debug

uv pip install -r requirements.txt
flask run --port=5001

TODO

  • Use SQLite instead of a dictionary file
  • Delete option currently does absolutely nothing
  • Cron configuation (some sort of UI?)