Skip to content

drehelis/sammy_ofer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 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)
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 \
    sammy_ofer:latest

Debug

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

TODO

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