By following this guide.
Save the app password carefuly since it'll only be shown once!
By adding a line at the bottom of the file like:
export MENU_PY_PWD=the_password_you_just_generated
For MacOS users: The file you need to modify in macOS is ~/.bash-profile
For Windows users: Follow this guide to do it either using the GUI or cmd.exe
Once done, for Linux and MacOS users source
the file you modified and it should be good to go.
Add or remove meals on whichever column you want to fit your needs and likings :)
Line 21 should contain the email with which you created the app password. Reciever email is the email where you want to recieve your daily menus.
Once this is done, the script will be ready to run manually, but to run it automatically, for example 5 minutes after midnight, everyday you need to
For Linux and macOS users
Run crontab -e
and add the following line to the bottom of the file, which will send a daily email at 22h from Monday to Friday (you're free of your scheduler's rules on the weekends!)
0 22 * * 1-5 /path/to/your/bin/python /path/to/menu_gen.py
For Windows users Unfortunately, I have not tested it on Windows, but this guide on Scheduled Tasks seems very well written