Skip to content

Ho1yShif/dinner

Repository files navigation

Dinner Repo

Meal plan automation repository to streamline meal planning and shopping for the week :)

Example: Dinner Menu Shopping List

How to use

  1. Create a Google Sheet with two sheets, Meals and Shopping

    image

  2. Set up a Google Cloud service account with access to the Google Sheets API and create a new JSON key (Learn more about Service Accounts.)

    • Replace the \n in the key with \\n so Python's json library can parse it
    • Encode the santized key JSON in base64 so it can be easily stored in GitHub Secrets
  3. Fork this repo

    • Customize your meal plan using the dinners.json file
    • Customize your chefs and responsibilites in the config.json file
      • Empty responsibility days will be listed as Unplanned group days in the menu
  4. Set repo actions Secrets

    • SERVICE_ACCOUNT is the Google service account JSON file encoded in base64
    • SPREADSHEET_ID is the ID of your Google Sheet (the long string in the URL)

How it works

A GitHub Action is scheduled to run the plan_dinners.py script weekly at noon on Friday. This script will read the dinners.json file and randomly select meals for each day of the week.

Each meal category is represented non-consecutively throughout the week, meaning that the same meal category won't be used two days in a row.

After making selections, the script then updates the Meals sheet with the chosen meals and updates the Shopping sheet with the ingredients needed for those meals. The shopping list will also include a reminder to check if you are stocked on staples like eggs, bread, oil, etc.

About

Meal planning automation repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages