Re: Feature idea: custom named reports!

2016-08-01 Thread Preet Bhinder
Here's one for getting my net worth:

#+BEGIN_SRC ledger :cmdline --price-db ~/ledger/.pricedb -V balance ^assets 
^liabilities ^investments --real :results output :exports results
!include /Users/mbhinder/ledger/personal_2016.ledger
#+END_SRC

I have this saved in my finance.org file and periodically C-c C-c on it to 
refresh the results.

Need to enable ledger in init.el:


(org-babel-do-load-languages
 'org-babel-load-languages '((python . t)
 (ledger . t)
 (C . t)
 (sh . t)
 (emacs-lisp . t)
 ))



On Monday, August 1, 2016 at 9:35:41 AM UTC-7, Alexandre Rademaker wrote:
>
> Can you guys share examples of org-Babel and Python scripts ?! 
>
> Alexandre 
> Sent from my iPhone 
>
> On 1 de ago de 2016, at 13:29, John Wiegley  > wrote: 
>
> >> "CE" == Craig Earls  writes: 
> > 
> > CE> My most used reports run ledger a few times and format the output. I 
> use 
> > CE> python scripts for those. Simple reports are save in emacs modewhere 
> they 
> > CE> can be linked back to the input file. 
> > 
> > Same here; I use org-babel to save the report, rerun them, and capture 
> the 
> > output. 
> > 
> > -- 
> > John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F 
> > http://newartisans.com  60E1 46C4 BD1A 7AC1 
> 4BA2 
> > 
> > -- 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "Ledger" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to ledger-cli+...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Time for 3.1.2 release?

2016-08-01 Thread Alexis
Hello everyone,

I pushed the latest changes from next to the release/3.1.2 branch
and kindly ask that anyone willing to spend some time and effort
test those changes and report any issues.

Hopefully there are no (or only minor) issues.  If you think a
currently outstanding pull request should make it into this release
please speak up and help integrate it.

To test ledger please:
  * build the release/3.1.2 branch
  * run the tests (make test)
  * do your own test with your personal workflow
  * report success or any issues to this mailing list,
be sure to include the operating system
boost version, and build output

I'm planning to publish the release in a week from now:

  Monday, 8th of August 2016,

giving those who want to participate in testing roughly a week
to review the latest changes.


Thanks
Alexis

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Time for 3.1.2 release?

2016-08-01 Thread Alexis
Hi Martin,

Sure, already on it.


Best
Alexis

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Feature idea: custom named reports!

2016-08-01 Thread Alexandre Rademaker
Can you guys share examples of org-Babel and Python scripts ?!

Alexandre 
Sent from my iPhone

On 1 de ago de 2016, at 13:29, John Wiegley  wrote:

>> "CE" == Craig Earls  writes:
> 
> CE> My most used reports run ledger a few times and format the output. I use
> CE> python scripts for those. Simple reports are save in emacs modewhere they
> CE> can be linked back to the input file.
> 
> Same here; I use org-babel to save the report, rerun them, and capture the
> output.
> 
> -- 
> John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Feature idea: custom named reports!

2016-08-01 Thread John Wiegley
> "CE" == Craig Earls  writes:

CE> My most used reports run ledger a few times and format the output. I use
CE> python scripts for those. Simple reports are save in emacs modewhere they
CE> can be linked back to the input file.

Same here; I use org-babel to save the report, rerun them, and capture the
output.

-- 
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Wrote some code to automatically sync pricedb

2016-08-01 Thread Preet Bhinder
I started using ledger for tracking investments and net worth. It was 
becoming a bit painful keeping the .pricedb file upto date so I wrote some 
code to do it automatically through Yahoo! Finance.

Posting in the hopes of it being useful for somebody 
else: https://github.com/mbhinder/ledger-pricedb

I taught myself a little elisp while writing this today so I'm sure the 
code is atrocious - please be gentle. Any cleanup/feature addition work is 
welcome, please submit PRs to github. 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.