neuland-ingolstadt / neuland.app

A free & open source, web-based replacement for the official app of the Technische Hochschule Ingolstadt built with React and Next.js.
https://neuland.app
GNU Affero General Public License v3.0
36 stars 33 forks source link

Add Canisius Mensa to API and food tab #239

Closed Robert27 closed 1 year ago

Robert27 commented 1 year ago

As a THI student, I would like to suggest the addition of Canisius Mensa, located in the city center near the Catholic University, to the list of available Mensas in our neuland.app. Canisius Mensa offers affordable prices, especially for THI students, and accepts payment with our student IDs too.

Although this option should not be displayed by default, adding it would be a great benefit to THI students who are looking for affordable and high quality meal options. In order to implement this, the menu for Canisius Mensa would need to be extracted from their weekly PDF menu, which can be found at http://www.canisiusstiftung.de/upload/speiseplan.pdf.

I have already created a proof of concept using the Python library pdfminer to extract the menu.

BuildmodeOne commented 1 year ago

I created a script with typescript https://github.com/BuildmodeOne/canisius-parser which creates a json file including all meals for the week and the salads.

We could run a weekly cronjob or something and retrieve the data for the app from the json.