Discussion:
tracking movements (daily commute)
André Fincato
2018-08-15 22:20:42 UTC
Permalink
hi all!

i’m trying to figure how to automate a daily tracking task in hledger: tracking my daily bike commute, in km.

this is my first sketch so far:

```
~ every day from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
```

`hledger balance -f transport.journal --forecast` does the following:

```
1440,0 km Assets:Business:Receivable:Transports
-1440,0 km Expenses:Business:Transports
```

great!

a few questions:

- how can i set the periodic transactions to not be every day, but from monday to, say, saturday?
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)

all in all, do you track this kind of stuff, and if yes, how?


thanks!
af
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-08-16 06:50:39 UTC
Permalink
Post by André Fincato
i’m trying to figure how to automate a daily tracking task in hledger: tracking my daily bike commute, in km.
Neat.
Post by André Fincato
- how can i set the periodic transactions to not be every day, but from monday to, say, saturday?
I think with six periodic transaction rules: every monday, every tuesday etc.
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
André Fincato
2018-08-16 18:15:08 UTC
Permalink
Sweet thank you!
Post by Simon Michael
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
This is not working with the command

`hledger -f transport.journal print`

where transport.journal contains only periodic transactions. Any hint why?
Post by Simon Michael
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-08-16 18:16:46 UTC
Permalink
--auto is required to generate periodic transactions, currently.
Post by André Fincato
Sweet thank you!
Post by Simon Michael
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
This is not working with the command
`hledger -f transport.journal print`
where transport.journal contains only periodic transactions. Any hint why?
Post by Simon Michael
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
André Fincato
2018-08-16 18:20:56 UTC
Permalink
thanks for the quick response.

`hledger -f transport.journal print --auto` yields still nothing though!

this my transport.journal

```
~ every monday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km

~ every tuesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km

~ every wednesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km

~ every thursday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km

~ every friday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
```
Post by Simon Michael
--auto is required to generate periodic transactions, currently.
Post by André Fincato
Sweet thank you!
Post by Simon Michael
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
This is not working with the command
`hledger -f transport.journal print`
where transport.journal contains only periodic transactions. Any hint why?
Post by Simon Michael
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-08-16 18:29:21 UTC
Permalink
Sorry, I meant --forecast. --auto is for automated postings/transaction modifiers.
Post by André Fincato
thanks for the quick response.
`hledger -f transport.journal print --auto` yields still nothing though!
this my transport.journal
```
~ every monday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every tuesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every wednesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every thursday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every friday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
```
Post by Simon Michael
--auto is required to generate periodic transactions, currently.
Post by André Fincato
Sweet thank you!
Post by Simon Michael
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
This is not working with the command
`hledger -f transport.journal print`
where transport.journal contains only periodic transactions. Any hint why?
Post by Simon Michael
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
André Fincato
2018-08-16 19:30:05 UTC
Permalink
Yes it works! Thanks.
Post by Simon Michael
Sorry, I meant --forecast. --auto is for automated postings/transaction modifiers.
Post by André Fincato
thanks for the quick response.
`hledger -f transport.journal print --auto` yields still nothing though!
this my transport.journal
```
~ every monday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every tuesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every wednesday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every thursday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
~ every friday from 2018/01/01 Daily commute
Expenses:Business:Transports -8,0 km
Assets:Business:Receivable:Transports 8,0 km
```
Post by Simon Michael
--auto is required to generate periodic transactions, currently.
Post by André Fincato
Sweet thank you!
Post by Simon Michael
Post by André Fincato
- is there a way to output a report of all the periodic transactions including the date? (like it were an actual full entry in the journal, and then it got exported as csv to be shared with the accountant)
The print command, perhaps with -O csv
This is not working with the command
`hledger -f transport.journal print`
where transport.journal contains only periodic transactions. Any hint why?
Post by Simon Michael
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...