| Crates.io | mensa |
| lib.rs | mensa |
| version | 0.5.0 |
| created_at | 2021-10-31 10:37:47.145538+00 |
| updated_at | 2021-10-31 10:37:47.145538+00 |
| description | CLI tool to query the menu of canteens contained in the OpenMensa database |
| homepage | |
| repository | https://github.com/MalteT/mensa |
| max_upload_size | |
| id | 474661 |
| size | 161,831 |
CLI tool to query the menu of canteens contained in the OpenMensa database.

Only nightly Rust supported at the moment.
$ cargo install --git https://github.com/MalteT/mensa
This is a Nix Flake, add it to your configuration or just test the application with:
$ nix run github:MalteT/mensa
See mensa --help.
mensa meals will show meals served today for the default canteen
mentioned in the configuration.
If no such configuration exists, try mensa meals --id 63.
You can find the id for your canteen usingmensa canteens lists canteens near you based on your current
IP in a default radius of 10km.mensa tags will list the currently known meal tags like "12 Nuts".You can omit the -i/--id if you've configured a default id in the config.toml.
$ mensa meals -d mon -i 63
Leipzig, Mensa am Park
┊
┊ ╭───╴Bohnengemüse
┊ ├─╴Gemüsebeilage 🌱
┊ ╰╴( 0.55€ )
...
$ mensa canteens
70 Leipzig, Cafeteria Dittrichring
Dittrichring 21, 04109 Leipzig
63 Leipzig, Mensa am Park
Universitätsstraße 5, 04109 Leipzig
...
$ mensa tags
0 Acidifier
Contains artificial acidifier
1 Alcohol
Contains alcohol
2 Antioxidant
Contains an antioxidant
...
$ mensa meals close --date sun
Leipzig, Cafeteria Dittrichring
┊
┊ ╭───╴Vegetarisch gefüllte Zucchini
┊ ├─╴Vegetarisches Gericht 🧀
┊ ├╴Rucola-Kartoffelpüree
┊ ├╴Tomaten-Ratatouille-Soße
┊ ╰╴( 2.65€ ) 2 11 12 19
Leipzig, Mensa am Park
┊
┊ ╭───╴Apfelrotkohl
┊ ├─╴Gemüsebeilage 🌱
┊ ╰╴( 0.55€ ) 2
...
$ mensa canteens --all --json | jq '.[].id' | wc -l
704
See config.toml for an example. Copy the file to:
$XDG_CONFIG_DIR/mensa/config.toml on Linux,$HOME/Library/Application Support/mensa/config.toml on macOS,{FOLDERID_RoamingAppData}\mensa\config.toml on WindowsLicense: MIT