https://github.com/kasnerz/troja-lunch
A web service providing access to lunch menus in the neighborhood of Troja, MFF UK, Prague.
https://github.com/kasnerz/troja-lunch
Last synced: 4 months ago
JSON representation
A web service providing access to lunch menus in the neighborhood of Troja, MFF UK, Prague.
- Host: GitHub
- URL: https://github.com/kasnerz/troja-lunch
- Owner: kasnerz
- License: apache-2.0
- Created: 2022-10-05T18:56:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T14:25:30.000Z (over 1 year ago)
- Last Synced: 2025-01-09T13:57:52.630Z (5 months ago)
- Language: Python
- Homepage: https://tiny.cc/troja-lunch
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# troja-lunch 🍜
A web service providing access to menus for lunch places in the neighborhood of the [IMPAKT building](https://www.mff.cuni.cz/cs/vnitrni-zalezitosti/budovy-a-arealy/troja) of MFF UK.
Online version is available at **https://tiny.cc/troja-lunch**.
The service currently supports these places:
- Menza Troja
- Bufet Troja
- Castle RestaurantMore places from [this list](https://docs.google.com/document/d/1d9ryeOlgXGPu9qhMypvSUDp63iTMJAWtS1VrHD74FNs/edit) may be added in the future based on the demand.
The service uses the [CUBBITT API](https://lindat.mff.cuni.cz/services/translation/api/v2/doc) for translating the names of the dishes to English.
Please report any bugs on Github or directly to the author.
## Dish of the day
Every workday, the service generates a "dish of the day", which is a random dish selected from all the dishes available on a given day.For that dish, a computer-generated image is created using [Stable Diffusion](https://github.com/CompVis/stable-diffusion) prompted with the name of the dish and a couple of other attributes for improving the quality of the image.
The image is generated using a cron job around 9 AM. After the job is finished, the image for the current day is accessible at `https://quest.ms.mff.cuni.cz/troja-lunch/static/img/dotd/YYYY-mm-dd.png`.
## Slackbot
The service is connected to a Slackbot in the ÚFAL MFF UK workspace called *lunchbot*.The bot is programmed to send regular posts to the *cfm-troja* channel, including the dish of the day and the invitations for lunch.