pricedb/README.md
2020-12-22 22:02:14 +01:00

20 lines
718 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This is a setup to automatically update a Ledger pricedb. Its meant to work
for the author and is published for inspiration, not to be a tool that works
for everyone.
-------------------------------------------------------------------------------
Requires Python 3.6 or higher.
Put `rates` and `fetch_rates.py` somewhere on a server.
Put `update-rates` somewhere in your path on your local machine.
Choose a location to put the serverside data files, e.g. `/var/local/pricedb`.
Configure all three scripts as appropriate.
Create a cron job for `fetch_rates.py` on the server.
0 0 * * * /usr/local/bin/python3 /usr/local/lib/pricedb/fetch_rates.py
To update the pricedb on your machine, run `update-rates`.