CLI frontend for https://openmensa.org
Find a file
2021-10-27 10:04:38 +02:00
.github/workflows Update Readme with logo 2021-10-19 16:50:18 +02:00
src Add a bunch of tests for canteens 2021-10-27 10:04:38 +02:00
static Update example 2021-10-24 22:13:34 +02:00
.gitignore Add cacache-based request caching 2021-10-13 22:49:06 +02:00
Cargo.lock Fix race between tests, add DummyCache 2021-10-27 08:25:27 +02:00
Cargo.toml Fix race between tests, add DummyCache 2021-10-27 08:25:27 +02:00
config.toml Unify concepts places/mensa -> canteen 2021-10-14 12:23:52 +02:00
flake.lock Bump version, update dependencies 2021-10-24 17:06:17 +02:00
flake.nix Update Readme with logo 2021-10-19 16:50:18 +02:00
README.md Replace example in README 2021-10-24 19:33:49 +02:00
README.tpl Update Readme with logo 2021-10-19 16:50:18 +02:00

mensa CLI logo

tests

mensa

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

Features

  • Runs on Linux, macOS and Windows.
  • Custom filters and favourites using CLI flags or the optional configuration file.
  • List canteens close to you based on GeoIP.
  • All request are cached locally.
  • Fuzzy date parsing based on date_time_parser.
  • List your favourite meals in canteens close to your location.
  • JSON Output

example

Installation

Cargo

Only nightly Rust supported at the moment.

$ 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 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 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

License: MIT