Command line application to fetch the menu from the Studentenwerk München website.
Build
Simply running make will run tests and build the binary for linux-amd64.
You can run make rpi to get an executable for the Raspberry Pi.
Usage
stwmmensa accepts the following arguments:
-h --help: Print this usage info and quit
-o --output: set the path to the output file (mandatory)
-l --location: set mensa location id (default: 421)
-f --format: select format (default: xml)
** Location
Here is a list of valid location codes with the name of the corresponding mensa:
411 : Mensa Leopoldstraße
412 : Mensa Martinsried
421 : Mensa Arcisstraße
422 : Mensa Garching
423 : Mensa Weihenstephan
431 : Mensa Lothstraße
432 : Mensa Pasing
** Format
xml : a generic xml file is created
lis : generate html snippet for LIS-infoscreen
** Examples:
stwmmensa -l 411 -o /my/path/leopold.xml -f xml
stwmmensa --location=423 --output=weihenstephan.html --format=lis