Skip to content

mailach/feed-me-mensa-ul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feed me Mensa UL

A quick-and-dirty script to scrape the daily menu of Leipzig University Mensa and send it to a telegram channel. For food and cat lovers. The script is currently dockerized and running as a cronjob on a server, executed daily at 10.30 am.

Check out the telegram channel: https://t.me/feed_me_mensa_ul

Add secrets to env file

For security reasons keep secrets secret. For testing and developing add your own bot credentials. And put in root folder in .env file.

BOT_TOKEN=  
CHANNEL_ID=  
MAINTAINER_CHATID=
MACHINE_NAME=

Running the docker container

If you have added secrets to .env file, you can build an run the docker container.

docker image build -t feed-me-mensa-ul:latest . 
docker container run --env-file /path/to/.env feed-me-mensa-ul:latest

Setting up cronjob

The current cron workflow is unreliable and only running for test reasons.
Add new cronjob.

crontab -e

Add execution every weekday at 10.30 am.

30 10 * * 1-5 docker container run --env-file /path/to/.env feed-me-mensa-ul:latest

Possible Enhancements

  • Write tests ;)
  • Mensa am Sportforum, Cafeteria etc
  • Add discord, slack, mattermost, signal etc.

About

A quick-and-dirty script to scrape the daily menu of Leipzig University Mensa and send it to a telegram channel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published