Skip to content
Rigel docs
Open Rigel

Meals

The week's plan, the dishes you eat, who's eating what, and what to buy for it.

Commands

Queries

  • GetOne dish, with what to buy for itmeals.dish.getThe dish with its name, whether it's eaten away from home, its icon, its recipe (id and title) and what to buy for it (products in order, with amount notes).
  • GetFind dishes by namemeals.dish.searchDishes whose name contains the text (ignoring case), names that start with it first, then the most often planned.
  • GetWhat people ate (or are planned to eat) between two datesmeals.eaten.listMeals from from to to, oldest first, up to 84 days apart.
  • GetMeal planning settings and which week is currentmeals.setting.getThe effective settings (the defaults until someone changes them), plus current_week_start, the first day of the plan week containing today in the household's time zone, and next_week_start, the week after it.
  • GetWhat changed in a week's plan, and who changed itmeals.week.changesThe commands that changed the week's meals, newest first, from the command log: when, who (a person, Rigel, or an outside account), what was done in words, and the affected meals as they were before and after.
  • GetThe meal plan for a weekmeals.week.getFor each of the 7 days from week_start and each slot (breakfast, lunch, dinner, snack): the meals planned, each with its people, dishes, note and icon, and which people have nothing planned in that slot (open_for).
  • GetWhat a week's meals need from the storemeals.week.groceriesOne item per product across the week's meals, with the amount notes, which meals need it, whether it's a staple, and what inventory has recorded of it.