- Update vault.csv with default values

- Update README with vault info
This commit is contained in:
Keith Solomon
2022-12-31 13:22:37 -06:00
parent 28eecb304a
commit b13d9294da
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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'. * Create folder in your server's web root, for example, 'tvt'.
* Upload/clone this repo into your folder. * Upload/clone this repo into your folder.
* Edit `functions.php` to add API keys and Torn user names for you and your spouse. * 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. * 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 ### Automating transaction updates
+2
View File
@@ -0,0 +1,2 @@
User1,1663917355,Initial balance,1000000
User2,1663917355,Initial balance,1000000
1 User1 1663917355 Initial balance 1000000
1 User1 1663917355 Initial balance 1000000
2 User2 1663917355 Initial balance 1000000