feat(webscrape-bank): webscrapes the bank file on a hour loop, init. api

This commit is contained in:
devaine 2026-01-26 16:03:50 -06:00
commit 2ec98dc81d
Signed by: devaine
GPG key ID: 954B1DCAC6FF84EE
8 changed files with 4252 additions and 0 deletions

31
actual-api/src/index.js Normal file
View file

@ -0,0 +1,31 @@
require("dotenv").config();
let api = require("@actual-app/api");
// Constants
const ACTUAL_URL = process.env.ACTUAL_URL
const ACTUAL_PASSWORD = process.env.ACTUAL_PASSWORD
const ACTUAL_CHECKING_ID = process.env.ACTUAL_CHECKING_ID
(async () => {
await api.init({
dataDir: "./",
serverURL: ACTUAL_URL,
password: ACTUAL_PASSWORD,
});
console.log("Downloading the Budget Data")
await api.downloadBudget("1d6b0769-5ed4-4601-b6f2-b63df21f1f46");
console.log("Getting Account Info")
let accountInfo = await api.getAccounts()
console.log(accountInfo)
function inspectBankFile() {
}
//await api.shutdown();
})();