Giter Club home page Giter Club logo

mahlzeit's Introduction

Mahlzeit!

FrankenCampus Canteen Menu PDF Parser

SUSE HackWeek 22 Project

Make a PDF parser command line tool that brings the Nuremberg Canteen's Menu to a usable format (Plain text, JSON) that can be used in WebApps, Smart Displays or a Slack/IRC Bots.

Usage:

You don't need to parse the PDFs on your own. We do that for you!

Web Version

Fully JS-based. No backend needed. Loads mahlzeit.json and picks the right menu of the day.

CLI tools

Find cli tools in ./utils.

Development

If you want to create your own tool you find mahlzeit.json on w3.suse.de or users.suse.com

Parsing:

> ./mahlzeit.rb 30_01_2023_bis_12_02_2023_1.pdf

Output:

{
  "2023W05": {
    "Montag": {
      "Suppe": "Kichererbsensuppe 0,90 €",
      "Eat fit": "Haselnussspätzle Hartkäse I Röstzwiebel Gehobelter Blumenkohl 3,90 €",
      "National": "Hausgemachter Hackbraten mit Beilage und Bratensoße 4,40 €",
      "Dessert": "Waldfruchtjoghurt 0,90 €"
    },
    "Dienstag": {
      "Suppe": "Radieschensuppe mit Brunnenkresse 0,90 €",
      "Pasta": "Geschwenkte Pasta in Paprika Pesto mit Cashew und Hähnchenbruststreifen 4,10 €",
      "Eat fit": "Broccoli-Kartoffelauflauf 3,90 €",
      "National": "Cevapcici mit Ajvar, Zwiebelringe und Tomatenreis 4,10 €",
      "Dessert": "Sauerkirschgrütze mit Vanillesahne 0,90 €"
    },
    "Mittwoch": {
      "Suppe": "Erbsensuppe 0,90 €",
      "Pasta": "Pasta mit Pesto, Oliven, getrockneten Tomaten und Rucola 3,90 €",
      "Eat fit": "Wokgemüse mit Soja-Honig- Sauce, Hähnchenbruststreifen und Duftreis 4,10 €",
      "National": "Rinderleber nach \"Berliner Art\" mit Apfelwürfel, Zwiebeln und Röstkartoffel 4,10 €",
      "Dessert": "Mango Panna cotta 0,90 €"
    },
    "Donnerstag": {
      "Suppe": "Rote Beete Suppe mit Meerrettich verfeinert 0,90 €",
      "Eat fit": "Frikadelle | Soja | Kartoffelsalat 3,90 €",
      "National": "Gulasch vom Jungschwein mit Pfirsichwürfeln Cashewnüssen und Korianderreis 4,10 €",
      "Dessert": "Kaiserschmarrn mit Apfelmus 1,10 €"
    }
  },
  "2023W06": {
    "Montag": {
      "Suppe": "Gemüsecremesuppe 0,90 €",
      "Eat fit": "Gebratene Zucchini \"Tygros\" l Zuckererbsenschoten l Paprikasauce l Rosmarinkartoffeln 4,10 €",
      "National": "Paniertes Seelachsfilet mit Kartoffelsalat und Zitronenecke 4,40 €",
      "Dessert": "Grießpudding 0,90 €"
    },
    "Dienstag": {
      "Suppe": "Kürbissuppe mit Kokosmilch & Bambussprossen 0,90 €",
      "Pasta": "Spaghetti Aglio e Olio mit Rucola und Grana Padano 3,90 €",
      "Eat fit": "Hähnchenbrustfilet mit leichter Basilikumsauce und Dampfkartoffel 4,10 €",
      "National": "Gebratene Currywurrst mit einer Jalapeñosoße oder klasischen Currysoße dazu Pommes Frites 4,40 €",
      "Dessert": "Schokoladenmousse 0,90 €"
    },
    "Mittwoch": {
      "Suppe": "Tomatensuppe 0,90 €",
      "Pasta": "Pasta Bolognese mit Rinderhackfleisch und Gemüsewürfeln dazu geriebenen Grana Padano 4,40 €",
      "Eat fit": "Schupfnudeln I Bergkernsalz Spitzkohl I Lauch- Petersiliencreme 4,40 €",
      "National": "Schweinekammsteak mit Kartoffeltwister und Sour Creme 4,10 €",
      "Dessert": "Mangojoghurt mit Kokosmilch verfeinert 0,90 €"
    },
    "Donnerstag": {
      "Suppe": "Kartoffelsuppe mit Wiener 0,90 €",
      "Eat fit": "Gebratener Reis mit frischem Gemüse und Sweet Chili Sauce 4,10 €",
      "National": "Geschnetzelten vom Schwein \"Züricher Art\" mit Butterspätzle 4,40 €",
      "Dessert": "Orangen-Weincreme mit Minze 0,90 €"
    }
  }
}

mahlzeit's People

Contributors

cwh42 avatar faeller avatar jcronenberg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.