This is a Google App Script that allows you to generate an email based on your YNAB (youneedabudget.com) activity.
The end result will generate an email (as frequently as you'd like) that will look like:
In order to set this up you will need to:
Once you have your YNAB variables you need to:
- Go to script.google.com
- Sign in and create a new script.
- Paste in the copied code from ynab-report-appscript.gs
- Paste in the copied code from email.html
- In ynab-report-appscript.gs replace the following values with what you want:
- accessToken
- budgetID
- recipientsTO
- Run the script
- If you want to automate so it sends an email every week (or whenever) you can do so by
- Visiting script.google.com
- Selecting "My Triggers"
- Adding a trigger (bottom righthand button)
- Select your settings (make sure to set "time based" for the event source)
- Here is my appscript settings:
The BudgetID is the unique code of your YNAB budget which is in the URL when you go to your YNAB budget. Here's a sample screenshot:
Feel free to fork or file issues as you'd like!
The content of this project itself is licensed under the Creative Commons Attribution 3.0 Unported license, and the underlying source code used to format and display that content is licensed under the MIT license.