Added new reconcile and pom scripts

This commit is contained in:
Random936
2026-03-28 17:33:57 -04:00
parent 5c36c869cd
commit bc58d71ed5
3 changed files with 31 additions and 1 deletions

12
ledger/reconcile.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [[ -f "~/.simplefin.enc" ]]; then
echo "Simplefin access URL is missing."
echo "Please run the setup script before running update."
exit
fi
SCRIPT_DIR="$(dirname -- "${BASH_SOURCE[0]}")"
ACCESS_URL="$(cat ~/.simplefin.enc | openssl aes-256-cbc -d -a -salt -pbkdf2 -iter 1000000)"
curl -L "${ACCESS_URL}/accounts?start-date=$(date '+%s')&pending=1" | jq -rc '.accounts | map({name, balance})[]'