Skip to content

victormihalache/hledger-sankeymatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hledger-sankeymatic

This is a script that calls awk to generate instructions you can then pluck into SankeyMATIC to get a nice-to-look-at flow diagram of your revenues and expenses tracked using hledger.

Requirements

Make sure you have awk or gawk installed in your system.

Usage

The script expects the output of hledger is -NO csv, thus to use this you have to:

  1. Clone the repo
git clone https://github.com/victormihalache/hledger-sankeymatic.git
  1. cd into the directory
cd hledger-sankeymatic
  1. Not always, but you might have to give the script execute permissions.
chmod +x ./hledger-sankeymatic.sh
  1. Pipe hledger's output to the script
hledger incomestatement -N -O csv | ./hledger-sankeymatic.sh

On MacOS you can just copy this all:

git clone https://github.com/victormihalache/hledger-sankeymatic.git
cd hledger-sankeymatic
chmod +x ./hledger-sankeymatic.sh
hledger incomestatement -N -O csv | ./hledger-sankeymatic.sh

Roadmap

These are the things I want to work on when I either have time to tackle them or when I find out how to do them. If you with to help out feel free to open an issue or a PR.

  • Differentiate when two accounts have the same sub-account
  • Allow customizing the name of the intermediary "Budget" sub-account

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages