srehwald/eat-api

[Feature] Support for side/action/... dishes

COM8 opened this issue · 3 comments

COM8 commented

Currently the parser shows only dishes of the day.
It would be great if it would show all types of dishes.

They could get represented like:

 "dishes": [
    {
      "name": "Bio-Tortelloni all'arrabiata",
      "type": "Tagesgericht",
      "price": 1.9
    },
    {
      "name": "Nudeln",
      "type": "Beilagen",
      "price": 0.6
    },
    {
      "name": "Reis",
      "type": "Beilagen",
      "price": 1
    },
    {
      "name": "Bio-Spaghetti bolognese",
      "type": "Aktion",
      "price": 3
    }
  ]

Good idea that should not be too difficult to implement. It might take a bit, until I have time to work on it.

I'm not sure which location this issue is about, but I wanted to add, that the FMI bistro also features a weekly special meal, which is missing.

COM8 commented

It's ment to be a general feature for all canteens.
I'm currently testing my fork to ensure it runs smoothly.
Here is an example for the Mensa Garching:

"dishes":[
   {
      "dish_type":"Tagesgericht 1",
      "ingredient":"",
      "name":"Kartoffeln mit Karotten und Sonnenblumenkernen",
      "price":1
   },
   {
      "dish_type":"Aktionsessen 8",
      "ingredient":"",
      "name":"Kabeljaufilet (MSC) unter der Gurken-Senfkruste",
      "price":3.5
   },
   {
      "dish_type":"Tagesgericht 1",
      "ingredient":"",
      "name":"Italienischer Bohneneintopf mit Spätzle",
      "price":1
   },
   {
      "dish_type":"Tagesgericht 4",
      "ingredient":"",
      "name":"Kaiserschmarrn mit Apfelmus",
      "price":2.4
   }
]

By default every unknown menu has dish type "Tagesgericht" e.g. IPP canteen:

"dishes":[
   {
      "name":"Italienische Pasta mit Zucchini, Kirschtomaten, Pesto und Parmesan",
      "dish_type":"Tagesgericht",
      "ingredient":"",
      "price":4.8
   },
   {
      "name":"Thailändischer Gemüseeintopf mit Mie Nudeln und frischem Koriander",
      "dish_type":"Tagesgericht",
      "ingredient":"",
      "price":3.5
   },
   {
      "name":"Toskanisches Rindergulasch mit Rosmarin, Thymian und Tomaten geschmort, dazu Teigwaren",
      "dish_type":"Tagesgericht",
      "ingredient":"",
      "price":5.8
   },
   {
      "name":"Gebratenes Lachsfilet mit Zitronen-Bechamel und Gemüsereis",
      "dish_type":"Tagesgericht",
      "ingredient":"",
      "price":7.2
   }
]