New to beancount - Question about alternative use - Calorie budget.

138 views
Skip to first unread message

TimOC

unread,
Feb 28, 2017, 3:50:47 AM2/28/17
to Beancount
Hi,

I have a question about beancount. I read the documentation and i had the idea of using beancount to manage a calorie budget.

essentially something like:

Start with an Initial weight in Fat calories
Base metabolic rate.
Accounts for Macronutrients such as Fat, Protein, Carbs.

I can then use it for forecasting, etc.

Is this feasible?

best regards,

Tim.


Martin Blais

unread,
Feb 28, 2017, 4:18:11 AM2/28/17
to Beancount
You could but I don't see the point. Your body is more complex than this and doesn't conserve nutrients in a straightforward way. Plus you'd have only a small and fixed amount of categories anyway. You'd be better off using a spreadsheet and processing it with custom scripts using r or pandas. Double entry bookkeeping won't help you for this.


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/26734031-9a16-481f-ac3e-9b93102eabd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tim.oca...@gmail.com

unread,
Feb 28, 2017, 4:35:04 AM2/28/17
to Beancount
The idea is initially inspired by the idea that Double Entry bookkeeping uses the perspective of the person. 
I realize a body is more complex, and certainly not a zero sum game, but so are the financial markets. They are treated as black boxes with trends based on transactions etc.
I thought it might be an idea to treat the body as a black box with calorie in/out transactions similar to the hackers diet approach https://www.fourmilab.ch/hackdiet/

So coming back to the question - if i was to go about it, do you have suggestions about how i could i approach it.
Could i also convert/link financial transactions to calories?



On Tuesday, February 28, 2017 at 10:18:11 AM UTC+1, Martin Blais wrote:
You could but I don't see the point. Your body is more complex than this and doesn't conserve nutrients in a straightforward way. Plus you'd have only a small and fixed amount of categories anyway. You'd be better off using a spreadsheet and processing it with custom scripts using r or pandas. Double entry bookkeeping won't help you for this.

On Feb 28, 2017 3:50 AM, "TimOC" <tim.oca...@gmail.com> wrote:
Hi,

I have a question about beancount. I read the documentation and i had the idea of using beancount to manage a calorie budget.

essentially something like:

Start with an Initial weight in Fat calories
Base metabolic rate.
Accounts for Macronutrients such as Fat, Protein, Carbs.

I can then use it for forecasting, etc.

Is this feasible?

best regards,

Tim.


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.

Martin Blais

unread,
Feb 28, 2017, 8:25:09 AM2/28/17
to Beancount
Sure, you could abuse it that way. Beancount is a kind of "calculator with buckets," really, and it doesn't really think anything special of its currencies, so nothing prevents you from counting "calories" or otherwise have multiple accounts for them or other things. It's just not going to do anything special for you beyond a spreadsheet, unless you need snapshots (balance sheet) or calculations of differences between their contents (income statement), broken down by account, or linkage between the transactions. You'd have to get creative with it to do that.



To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

tim.oca...@gmail.com

unread,
Mar 1, 2017, 6:14:17 AM3/1/17
to Beancount
Well the clue to using it for calorie budgets is in the name :)
I'll start playing with beancount and see what comes out of it.

The big plus for me is that i want to use beancount with org mode.

I want to embed my beancount transactions into org-journals. do you have any links to examples of this?

Martin Blais

unread,
Mar 1, 2017, 10:05:57 PM3/1/17
to Beancount
Never done it. The only feature of org-mode I use is the outline/folding capability.



To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Oon-Ee Ng

unread,
Mar 2, 2017, 2:54:14 AM3/2/17
to bean...@googlegroups.com
Another way I've been toying with to abuse beancount is to keep track of car mileage. I have a dedicated app for that now, but since I input every credit card payment for petrol anyway, having a 'currency conversion' to litres (based on the moving price of petrol) as well as a 'miles travelled' currency would allow for interesting custom reports on my car's mileage, 'budgeting' to see when servicing is due, etc.

tim.oca...@gmail.com

unread,
Mar 3, 2017, 6:19:04 AM3/3/17
to Beancount
Can i make a feature request then? That you recognize org-babel markup. e.g. when the source file is .org you can parse this example:


# -*- mode: org; mode: beancount; coding: utf-8; -*-
#+STARTUP: showall

This is an example of my journal
These are my options
#+BEGIN_SRC beancount
option "title" "Beancount journal of Favours earned and Boons given." option "operating_currency" "BOONS" option "operating_currency" "FAVOURS"
#+END_SRC beancount

So that i can embed transactions into an org document, and not have to use org-babel to use beancount?
Reply all
Reply to author
Forward
0 new messages