JamesOff Posted July 19, 2013 Share Posted July 19, 2013 (edited) This is a workflow which lets you look up how much you have left in a You Need a Budget (http://www.youneedabudget.com) category for the current month. It looks for your budget file in ~/Dropbox/YNAB and ~/Documents/YNAB. If you have a single budget in one of those folders, it will use that and needs no configuration. If you have multiple budgets, or a budget somewhere else, you can use a File Action on it to select it as the budget to use. Fuzzy/substring matching, tries to use the currency symbol/format based on the budget's configuration. Hacked up the code to parse the YNAB data myself, so please make sure that it's reporting accurately for you and let me know if not! Download here: http://cloud.jamesoff.net/0J2t2614191h (Updated 2014-10-21) (System Python, no extra dependencies or libraries required.) Edited October 21, 2014 by JamesOff Link to comment
hzlzh Posted July 20, 2013 Share Posted July 20, 2013 Nice workflow, hope you can share it on the List site below~ Link to comment
johnennion Posted August 6, 2013 Share Posted August 6, 2013 I'm new to working with these workflows - can you explain a little more how I can select a budget file in a different folder? Link to comment
aptJqK Posted August 13, 2013 Share Posted August 13, 2013 This looks really good. However, I'm having trouble using the file action. I navigated to my .ynab4 file with Alfred and used the file action, but then my Growl notification came up with the title "YNAB Budget Lookup" and no other text. Then when I try and use the workflow ('budget xyz') it says 'Use Alfred's file action to...' etc. What's going wrong? Link to comment
JamesOff Posted August 13, 2013 Author Share Posted August 13, 2013 (edited) I'm not sure what's up with the File Actions not working right In the meantime I'll put in a different method for pointing it at your budget file, watch this space! Edit: here it is: http://cl.ly/400k1H0Q1s29 There's now a "budgetlocation" keyword which takes the full path to your budget file as a parameter. You can also use "auto" as the parameter to make it go back to the default auto-detect mode. (An easy way to get the path: search for your budget file in Alfred like above (activate Alfred and then put in '.ynab4), and then hit the right arrow and choose "Copy path to clipboard".) Sorry it's a bit of a kludge for now! Edited August 13, 2013 by JamesOff Link to comment
aptJqK Posted August 18, 2013 Share Posted August 18, 2013 I tried your new download and the same problem occurred. I figured out that the problem was probably therefore to do with my file path name. Turns out that as soon as I renamed Ben's Budget-sdflgpert.ynab4 to Budget-sdflgpert.ynab4 it was all fine. So either the apostrophe or the space is causing problems in the name. But then I have a problem when I look up budgets using your workflow. For most categories, it tells me I have overspent when in fact I haven't. Otherwise it just gives me a figure which is incorrect in some way, and for only a few categories is the number corrent. Any idea what's going on here? Link to comment
JamesOff Posted August 19, 2013 Author Share Posted August 19, 2013 Ok, that sounds like something that'd cause problems - my budget file is just called "My Budget". I'll take at look at that. No idea why it would say what it's saying about your budget categories though - I had to reverse engineer the data file and parse it myself, so if there's something you're doing in your budget I don't have in mine that could confuse it. Are you using YNAB in a reasonably straightforward fashion? Unfortunately the best way for me to look in to it is for you to send me your budget file (or, if you can make a demo budget file which reproduces the problem, that). Link to comment
cjcolyer Posted August 20, 2013 Share Posted August 20, 2013 This works great for me. Thanks for the handy workflow James. Link to comment
JamesOff Posted August 23, 2013 Author Share Posted August 23, 2013 This works great for me. Thanks for the handy workflow James. Glad it's working for someone! aptJqK, here's a version which should fix the issue of the single quote breaking it: http://cl.ly/3b1I161G0y1W Link to comment
hzlzh Posted August 23, 2013 Share Posted August 23, 2013 Nice one, Also you can share your work on the Workflow List site below. Link to comment
JamesOff Posted November 11, 2013 Author Share Posted November 11, 2013 (edited) Updated 2013-11-11 with better parsing of overspent categories. http://cloud.jamesoff.net/1d1T3A2m0e1A Edited November 11, 2013 by JamesOff Link to comment
thomazrb Posted November 13, 2013 Share Posted November 13, 2013 Hi James, Can you fix the link... its broken. Tnks. Link to comment
JamesOff Posted November 13, 2013 Author Share Posted November 13, 2013 Hi James, Can you fix the link... its broken. Tnks. Just tested the link in my post above, and the one in the first post (which is the same) and both seem to work OK to me. Link to comment
gaoruijie Posted November 20, 2013 Share Posted November 20, 2013 I am a new user of YNAB, the workflow is wonderful. Link to comment
spuder Posted December 26, 2013 Share Posted December 26, 2013 This workflow is fantastic. Thanks! I keep my budget in ~/Dropbox/Applications/YNAB so I had some trouble setting up the budget path. Downloading the version above fixed the issue. (The link on http://www.alfredworkflow.com still points to the older version). Link to comment
JamesOff Posted August 27, 2014 Author Share Posted August 27, 2014 Updated 2014-08-27 to fix showing 0.00 as "no budget left" rather than "overspent", and to add some caching to speed things up a little. http://cloud.jamesoff.net/2C04451d3R3Q Link to comment
fredrikalm Posted September 6, 2014 Share Posted September 6, 2014 Please ... how do I install this workflow? it doesn't have a .alfredworkflow file that I can click. I just bought the power pack a week ago and I managed to install it somehow, but I removed it to reinstall and now I don't remember how to do it. I feel dumb ... please help! Link to comment
JamesOff Posted September 7, 2014 Author Share Posted September 7, 2014 Please ... how do I install this workflow? it doesn't have a .alfredworkflow file that I can click. I just bought the power pack a week ago and I managed to install it somehow, but I removed it to reinstall and now I don't remember how to do it. I feel dumb ... please help! Click the link in my post, then on the page which opens click the "YNAB budget check.alfredworkflow" button which will download it. Then, find it in your Downloads folder and open it and Alfred will pop up to install it. Link to comment
heychad Posted September 9, 2014 Share Posted September 9, 2014 Any chance you could support multiple budgets? I have two budget files, one for my freelance business and another for personal. This would be awesome to have access to both with 2 separate workflows! — C Link to comment
JamesOff Posted October 21, 2014 Author Share Posted October 21, 2014 (edited) Any chance you could support multiple budgets? I have two budget files, one for my freelance business and another for personal. This would be awesome to have access to both with 2 separate workflows! — C I'll have a think about how I'd do this but I'm sure I can make it work. (Edit: added as an issue on GitHub to remind me: https://github.com/jamesoff/alfred-ynab/issues/1 ) I've just posted an update which fixes (hopefully properly this time) parsing of the budget when you have overspends. It also has some more speed improvements. Download link: http://cloud.jamesoff.net/0J2t2614191h Edited October 21, 2014 by JamesOff Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now