TLDR; put into a text file your lunch recipes for next few days and generate printable HTML file with QR codes which link directly to the recipes!
Idea: I came across this idea during social distancing phase of COVID-19 epidemic. I decided to prepare a lunch menu for circa 10 – 14 days, print it and put on the fridge. Additional plus of such planning is that very likely it will be enough to make a shopping just once per two weeks!
This Python module does exactly that. Generates HTML file with QR codes linking to recipes.
To get a local copy up and running follow these simple steps.
This script is written in Python 3. Additionally you will need pip3
to install dependencies.
-
Clone the repo
git clone https://github.com/matmatyk/weekly_fridge_qrmenu.git
-
Install required dependencies
pip3 install -r requirements.txt
Go to source directory and run as python module
python3 -m weekly_fridge_qrmenu path/to/menu_file.json
or shell script
./weekly_fridge_qrmenu.sh path/to/menu_file.json
In outcome you het an html file in output
directory, which you can open using your web browser and print.
We will use here exemplary input file..
- Run
./weekly_fridge_qrmenu.py example_input/menu.json
- Open the result file in your favourite browser, eg.
chromium output/menu_2020-04-28.html
- Print it horizontally on A4 paper:
- Put on your fridge:
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
matmatyk - @matmatyk
Project Link: https://github.com/matmatyk/weekly_fridge_qrmenu