Skip to content

Commit

Permalink
sync upstream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 committed May 15, 2024
2 parents 3d9142b + 55f10be commit 3b24fa5
Show file tree
Hide file tree
Showing 305 changed files with 8,804 additions and 111 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
-e YNAB_TOKEN
-e YNAB_BUDGET_ID
-e YNAB_ACCOUNTS
-e BUXFER_USER_NAME
-e BUXFER_PASSWORD
-e BUXFER_ACCOUNTS
-e TRANSACTION_HASH_TYPE
${{ env.REGISTRY }}/${{ steps.normalize-repository-name.outputs.repository }}:latest
env:
DEBUG: ""
Expand All @@ -107,6 +111,10 @@ jobs:
YNAB_TOKEN: ${{ secrets.YNAB_TOKEN }}
YNAB_BUDGET_ID: ${{ secrets.YNAB_BUDGET_ID }}
YNAB_ACCOUNTS: ${{ secrets.YNAB_ACCOUNTS }}
BUXFER_USER_NAME: ${{ secrets.BUXFER_USER_NAME }}
BUXFER_PASSWORD: ${{ secrets.BUXFER_PASSWORD }}
BUXFER_ACCOUNTS: ${{ secrets.BUXFER_ACCOUNTS }}
TRANSACTION_HASH_TYPE: ${{ secrets.TRANSACTION_HASH_TYPE }}

- name: Update categories
run: |
Expand All @@ -125,4 +133,4 @@ jobs:
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.UPDATE_WEB_HOOK }}"
method: "GET"
method: "GET"
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"cSpell.words": ["Kusto", "moneyman", "MULTIJSON", "nektos", "txns", "ynab"],
"cSpell.words": [
"Buxfer",
"Kusto",
"moneyman",
"MULTIJSON",
"nektos",
"txns",
"ynab"
],
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///workspaces/money/.github/workflows/build.yml"
}
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ---- Base Node ----
FROM node:18-alpine AS base

RUN apk add --no-cache \
RUN apk add --no-cache --no-check-certificate \
chromium \
nodejs yarn \
nss ca-certificates \
Expand Down Expand Up @@ -42,4 +41,4 @@ COPY --from=builder /app/package.json .
COPY --from=builder /app/dst ./dst
COPY --from=builder /app/node_modules ./node_modules

CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ Example:

#### Other configurations

| env variable name | default | description |
| -------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------ |
| `ACCOUNTS_TO_SCRAPE` | `""` | A comma separated list of providers to take from `ACCOUNTS_JSON`. if empty, all accounts will be used |
| `DAYS_BACK` | `10` | The amount of days back to scrape |
| `TZ` | `'Asia/Jerusalem'` | A timezone for the process - used for the formatting of the timestamp |
| `FUTURE_MONTHS` | `1` | The amount of months that will be scrapped in the future, starting from the day calculated using `DAYS_BACK` |
| env variable name | default | description |
| ----------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `ACCOUNTS_TO_SCRAPE` | `""` | A comma separated list of providers to take from `ACCOUNTS_JSON`. if empty, all accounts will be used |
| `DAYS_BACK` | `10` | The amount of days back to scrape |
| `TZ` | `'Asia/Jerusalem'` | A timezone for the process - used for the formatting of the timestamp |
| `FUTURE_MONTHS` | `1` | The amount of months that will be scrapped in the future, starting from the day calculated using `DAYS_BACK` |
| `TRANSACTION_HASH_TYPE` | `` | The hash type to use for the transaction hash. Can be `moneyman` or empty. The default will be changed to `moneyman` in the upcoming versions |
| `HIDDEN_DEPRECATIONS` | '' | A comma separated list of deprecations to hide |

### Get notified in telegram

Expand Down Expand Up @@ -206,3 +208,27 @@ Example:
"5897": "ba2dd3a9-b7d4-46d6-8413-8327203e2b82"
}
```

### Export to [Buxfer](https://www.buxfer.com/features)

To export your transactions directly to `Buxfer` you need to use the following environment variables to setup:
| env variable name | description |
| ------------------------------------ | ------------------------------------------------------------- |
| `BUXFER_USER_NAME` | The `Buxfer` user name. Check [Buxfer settings](https://www.buxfer.com/settings?type=login) about how to obtain it |
| `BUXFER_PASSWORD` | The `Buxfer` user password. Check [Buxfer settings](https://www.buxfer.com/settings?type=login) about how to obtain it |
| `BUXFER_ACCOUNTS` | A key-value list to correlate each account with the `Buxfer` account `UUID` |

#### BUXFER_ACCOUNTS

A `JSON` key-value pair structure representing a mapping between two identifiers. The `key` represent the account ID as is understood by moneyman (as obtained from web scrapping the financial institutions) and the `value` it's the `UUID` visible in the Buxfer URL when an account is selected.

For example, in the URL:
`https://www.buxfer.com/account?id=123456` the account UUID is the account id query parameter.

Example:

```json
{
"5897": "123456"
}
```
1 change: 1 addition & 0 deletions all-certificates/002c0b4f.0
1 change: 1 addition & 0 deletions all-certificates/02265526.0
1 change: 1 addition & 0 deletions all-certificates/062cdee6.0
1 change: 1 addition & 0 deletions all-certificates/064e0aa9.0
1 change: 1 addition & 0 deletions all-certificates/06dc52d5.0
1 change: 1 addition & 0 deletions all-certificates/08063a00.0
1 change: 1 addition & 0 deletions all-certificates/09789157.0
1 change: 1 addition & 0 deletions all-certificates/0a775a30.0
1 change: 1 addition & 0 deletions all-certificates/0b1b94ef.0
1 change: 1 addition & 0 deletions all-certificates/0b9bc432.0
1 change: 1 addition & 0 deletions all-certificates/0bf05006.0
1 change: 1 addition & 0 deletions all-certificates/0f5dc4f3.0
1 change: 1 addition & 0 deletions all-certificates/0f6fa695.0
1 change: 1 addition & 0 deletions all-certificates/1001acf7.0
1 change: 1 addition & 0 deletions all-certificates/106f3e4d.0
1 change: 1 addition & 0 deletions all-certificates/14bc7599.0
1 change: 1 addition & 0 deletions all-certificates/18856ac4.0
1 change: 1 addition & 0 deletions all-certificates/1c335de8.0
1 change: 1 addition & 0 deletions all-certificates/1d3472b9.0
1 change: 1 addition & 0 deletions all-certificates/1e08bfd1.0
1 change: 1 addition & 0 deletions all-certificates/1e09d511.0
1 change: 1 addition & 0 deletions all-certificates/244b5494.0
1 change: 1 addition & 0 deletions all-certificates/2923b3f9.0
1 change: 1 addition & 0 deletions all-certificates/2ae6433e.0
1 change: 1 addition & 0 deletions all-certificates/2b349938.0
1 change: 1 addition & 0 deletions all-certificates/2fa75afc.0
1 change: 1 addition & 0 deletions all-certificates/32888f65.0
1 change: 1 addition & 0 deletions all-certificates/347e4e47.0
1 change: 1 addition & 0 deletions all-certificates/3513523f.0
1 change: 1 addition & 0 deletions all-certificates/3bde41ac.0
1 change: 1 addition & 0 deletions all-certificates/3bde41ac.1
1 change: 1 addition & 0 deletions all-certificates/3e45d192.0
1 change: 1 addition & 0 deletions all-certificates/3fb36b73.0
1 change: 1 addition & 0 deletions all-certificates/40193066.0
1 change: 1 addition & 0 deletions all-certificates/4042bcee.0
1 change: 1 addition & 0 deletions all-certificates/40547a79.0
1 change: 1 addition & 0 deletions all-certificates/406c9bb1.0
1 change: 1 addition & 0 deletions all-certificates/48bec511.0
1 change: 1 addition & 0 deletions all-certificates/4b718d9b.0
1 change: 1 addition & 0 deletions all-certificates/4bfab552.0
1 change: 1 addition & 0 deletions all-certificates/4f316efb.0
1 change: 1 addition & 0 deletions all-certificates/5273a94c.0
1 change: 1 addition & 0 deletions all-certificates/5443e9e3.0
1 change: 1 addition & 0 deletions all-certificates/54657681.0
1 change: 1 addition & 0 deletions all-certificates/57bcb2da.0
1 change: 1 addition & 0 deletions all-certificates/5860aaa6.0
1 change: 1 addition & 0 deletions all-certificates/5931b5bc.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIFETCCA/mgAwIBAgITYQABidQdabHZIf/IawAAAAGJ1DANBgkqhkiG9w0BAQsFADB5MQswCQYD
VQQGEwJVUzEOMAwGA1UECBMFVGV4YXMxEzARBgNVBAcTClJvdW5kIFJvY2sxGjAYBgNVBAoTEURl
bGwgVGVjaG5vbG9naWVzMSkwJwYDVQQDEyBEZWxsIFRlY2hub2xvZ2ll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gjcVBwQwMC4GJisGAQQBgjcVCIe42WyBhPgI
hr2ND4XzgDWCs5laM4XD7V+Fr8EaAgFkAgE2MBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwMw
DQYJKoZIhvcNAQELBQADggEBAFdXhCz8dyN/xMEdSG7Ypj2rdVq0YUEwjaE+tmc2kXcV3c3xmVC0
DYPEZ+syLehqXJg1i4UX3nmGxGSg2KaBJtPzQIPin6uvvPwnwgfcPrmirP9qOna87VxM+xQOH0UK
j3ylRLtgEHkBYU5IjSQosOQ+7Xmu3ReUehoteWtxkY5B7Jvb028K0owhSAmUa1gV3EHXL8FdsnRS
jYp2KTKpkaM5//GyRg9BPMpjXrVCf5Vkft+oh5j9A1fVJlzMTI0xvElO/klNvk1LSGVwQml0RyL/
0kWCJlpMPzWzsMyfMveHVGyGm+OJ7zRfP+OBfqe9xjfXe9J9oW2XVlhtjt+8SgI=
-----END CERTIFICATE-----

1 change: 1 addition & 0 deletions all-certificates/5a7722fb.0
1 change: 1 addition & 0 deletions all-certificates/5ad8a5d6.0
1 change: 1 addition & 0 deletions all-certificates/5cd81ad7.0
1 change: 1 addition & 0 deletions all-certificates/5e98733a.0
1 change: 1 addition & 0 deletions all-certificates/5f15c80c.0
1 change: 1 addition & 0 deletions all-certificates/5f618aec.0
1 change: 1 addition & 0 deletions all-certificates/607986c7.0
1 change: 1 addition & 0 deletions all-certificates/626dceaf.0
1 change: 1 addition & 0 deletions all-certificates/653b494a.0
1 change: 1 addition & 0 deletions all-certificates/66445960.0
1 change: 1 addition & 0 deletions all-certificates/68dd7389.0
1 change: 1 addition & 0 deletions all-certificates/6b99d060.0
1 change: 1 addition & 0 deletions all-certificates/6d41d539.0
1 change: 1 addition & 0 deletions all-certificates/6fa5da56.0
1 change: 1 addition & 0 deletions all-certificates/706f604c.0
1 change: 1 addition & 0 deletions all-certificates/749e9e03.0
1 change: 1 addition & 0 deletions all-certificates/75d1b2ed.0
1 change: 1 addition & 0 deletions all-certificates/76faf6c0.0
1 change: 1 addition & 0 deletions all-certificates/7719f463.0
1 change: 1 addition & 0 deletions all-certificates/773e07ad.0
1 change: 1 addition & 0 deletions all-certificates/7a3adc42.0
1 change: 1 addition & 0 deletions all-certificates/7a780d93.0
1 change: 1 addition & 0 deletions all-certificates/7f3d5d1d.0
1 change: 1 addition & 0 deletions all-certificates/8160b96c.0
1 change: 1 addition & 0 deletions all-certificates/8508e720.0
1 change: 1 addition & 0 deletions all-certificates/8cb5ee0f.0
1 change: 1 addition & 0 deletions all-certificates/8d86cdd1.0
1 change: 1 addition & 0 deletions all-certificates/8d89cda1.0
1 change: 1 addition & 0 deletions all-certificates/8f103249.0
1 change: 1 addition & 0 deletions all-certificates/90c5a3c8.0
1 change: 1 addition & 0 deletions all-certificates/930ac5d2.0
1 change: 1 addition & 0 deletions all-certificates/93bc0acc.0
1 change: 1 addition & 0 deletions all-certificates/9482e63a.0
1 change: 1 addition & 0 deletions all-certificates/9846683b.0
1 change: 1 addition & 0 deletions all-certificates/988a38cb.0
1 change: 1 addition & 0 deletions all-certificates/9b5697b0.0
1 change: 1 addition & 0 deletions all-certificates/9c8dfbd4.0
1 change: 1 addition & 0 deletions all-certificates/9d04f354.0
1 change: 1 addition & 0 deletions all-certificates/9ef4a08a.0
1 change: 1 addition & 0 deletions all-certificates/9f727ac7.0
1 change: 1 addition & 0 deletions all-certificates/ACCVRAIZ1.pem
Loading

0 comments on commit 3b24fa5

Please sign in to comment.