CLI frontend for https://openmensa.org
Find a file
Malte Tammena 6a4af5dbd6 Switch from dirs to directories-next
The latter is less low-level and says to be better maintained.
2021-10-14 13:55:51 +02:00
src Switch from dirs to directories-next 2021-10-14 13:55:51 +02:00
.gitignore Add cacache-based request caching 2021-10-13 22:49:06 +02:00
Cargo.lock Remove unused dependency 2021-10-14 13:55:07 +02:00
Cargo.toml Switch from dirs to directories-next 2021-10-14 13:55:51 +02:00
config.toml Unify concepts places/mensa -> canteen 2021-10-14 12:23:52 +02:00
flake.lock Add commands and pizzazz 2021-10-13 16:15:11 +02:00
flake.nix Add commands and pizzazz 2021-10-13 16:15:11 +02:00
README.md Unify concepts places/mensa -> canteen 2021-10-14 12:23:52 +02:00

Mensa

CLI tool to query the menu of cafeterias contained in the OpenMensa database.

example

Features

  • Custom filters and favourites using CLI flags or the optional configuration file.
  • List cafeterias close to you based on GeoIP.
  • All request are cached locally.
  • Fuzzy date parsing based on date_time_parser.
  • List your favourite meals in cafeterias near you.

Installation

Cargo

$ cargo install --git https://github.com/MalteT/mensa

Nix

This is a Nix Flake, add it to your configuration or just test the application with:

$ nix run github:MalteT/mensa

Usage

See mensa --help.

  • mensa will show meals served today for the default canteen mentioned in the configuration. If no such configuration exists, try mensa --id 63. You can find the id for your canteen using
  • mensa 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".

Configuration

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 Windows I don't think it'll run on Windows.. 🤷‍♀️