From b13d9294da62322454a35521a1318931992b8f75 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Sat, 31 Dec 2022 13:22:37 -0600 Subject: [PATCH] - Update vault.csv with default values - Update README with vault info --- README.md | 6 +++++- vault.csv | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d795e2..b4c6e31 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,12 @@ Uses the [Torn API](https://www.torn.com/api.html) to pul the most recent vault * Create folder in your server's web root, for example, 'tvt'. * Upload/clone this repo into your folder. * Edit `functions.php` to add API keys and Torn user names for you and your spouse. +* Edit `vault.csv` to set initial balances for each user (see notes below). * Open the tracker in any web browser. -* Style as you see fit in style.css (Optional, but if you make something cool, let me know!). +* Style as you see fit in `style.css` (Optional, but if you make something cool, let me know!). + +### Initial vault balance(s) +Currently, there's no way to get past vault transactions via the API. If you're starting new, you can use the vault balance before your spouse adds their first deposit. For existing vaults, you'll need to figure out the balances the hard way. Once you have the balances, put them into the `vault.csv` with the proper user names. The timestamp field doesn't matter, and can be left at the currnet value. ### Automating transaction updates diff --git a/vault.csv b/vault.csv index e69de29..cf4edbe 100644 --- a/vault.csv +++ b/vault.csv @@ -0,0 +1,2 @@ +User1,1663917355,Initial balance,1000000 +User2,1663917355,Initial balance,1000000