GithubHelp home page GithubHelp logo

andreykaipov / ynab-simplefin-sync Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 17 KB

Sync your YNAB budget with your SimpleFIN accounts

License: MIT License

Go 94.23% Makefile 5.77%
ynab ynab-api simplefin

ynab-simplefin-sync's Introduction

ynab-simplefin-sync

Sync your YNAB budget with the accounts you've added to SimpleFIN Bridge.

why?

It's an alternative to the YNAB bank import feature for linked accounts.

usage

It also doubles as a handy CLI for viewing your YNAB and SimpleFIN accounts:

go install github.com/andreykaipov/ynab-simplefin-sync@latestynab-simplefin-sync --help
Usage: ynab-simplefin-sync --simplefin_access_url=STRING --ynab-access-token=STRING --ynab-budget-id=STRING <command>

Sync your YNAB accounts with info from SimpleFIN via SimpleFIN Bridge

Flags:
  -h, --help                           Show context-sensitive help.
      --config=CONFIG-FLAG             Path to a YAML file with defaults
      --simplefin_access_url=STRING    SimpleFIN access URL (claimed from token already) ($SIMPLEFIN_ACCESS_URL)
      --ynab-access-token=STRING       Your YNAB access token to its API
      --ynab-budget-id=STRING          Your YNAB budget UUID

Commands:
  sync                      Sync SimpleFIN transactions with your YNAB budget
  ynab accounts
  simplefin accounts
  simplefin transactions

Run "ynab-simplefin-sync <command> --help" for more information on a command.

Assuming you already have a SimpleFIN access URL (considering you stumbled across this repo), the easiest way to get started would be to first rename the example.config.yml at the root of this repo to ynab-simplefin-sync.config.yml and edit it with your bugdet and account IDs:

---
simplefin_access_url: envexpand:$SIMPLEFIN_ACCESS_URL

ynab_budget_id: uuid
ynab_access_token: envexpand:$YNAB_ACCESS_TOKEN

# no need for the ACT- prefix when specifying the SimpleFIN account UUIDs
#
simplefin_ynab_account_mapping:
  simplefin-uuid-1: ynab-uuid-1
  simplefin-uuid-2: ynab-uuid-2
  simplefin-uuid-3: ynab-uuid-3
  simplefin-uuid-4: ynab-uuid-4

You can find the YNAB IDs from the web URL when you navigate your budget (e.g. https://app.youneedabudget.com/<budget-id>/accounts/<account-id>). The SimpleFIN account IDs can be found by running simplefin accounts. The ACT- prefixes can be omitted if you'd like.

Now you're ready to access your financial info from the commandline like a fool:

ynab-simplefin-sync ynab accounts
...ynab-simplefin-sync simplefin accounts
...ynab-simplefin-sync simplefin transactions --start "$(date +%s -d-7day)"
...ynab-simplefin-sync sync --start "$(date +%s -d-7day)"
Imported 5 transactions.
There were 4 duplicates.

ynab-simplefin-sync's People

Contributors

andreykaipov avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.