https://github.com/walles/foodplanner
Tool to make a weekly food plan for a family
https://github.com/walles/foodplanner
Last synced: 3 months ago
JSON representation
Tool to make a weekly food plan for a family
- Host: GitHub
- URL: https://github.com/walles/foodplanner
- Owner: walles
- Created: 2015-01-03T20:44:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T14:43:30.000Z (over 6 years ago)
- Last Synced: 2023-03-31T12:06:26.009Z (about 2 years ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example
```
./foodplanner.rb examples/menu.yaml examples/calendar.yaml
```
# TODO* Warn about tags not mentioned in any constraints.
* Warn about at-least constraints where there aren't enough courses with the
relevant tag.* Warn about at-least constraints where there isn't at least one more course
than required. Otherwise each menu will always contain the same courses.* Fail with an error message if a constraint mentions a non-existing tag.
* If we at runtime realize we can't fulfill a constraint, fail with an error
message listing the unfulfilled constraints.* Fail with an error message on conflicting constraints, like having both
`sausage >= 3` and `sausage <= 1`.* Add support for "on Fridays, we only want food with a certain tag".
* Accept a previously generated menu as input and avoid those courses
for this menu.# DONE
* Start by selecting food for the occasions with the fewest possible
choices and continue up from there.* Add support for "this course is best cooked on Fridays".
* Add support for expressing things like "we want sausage at most once
per generated menu". Needs tagging of food courses, and some way of
putting constraints on different tags.* Fail with an error message on malformed constraints.
* Fail with an error message on unsupported constraint operation.
* Add support for expressing things like "we want vegetarian at least
once per generated menu". Needs tagging of food courses, and some way
of putting constraints on different tags.