Skip to content

duch11/ynabi-lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YNABI-Lambda - Make Spiir ❤️ YNAB

Spiir-to-YNAB import script.

Get a taste of auto-sync for YNAB through Spiir & Nordic API Gateway 💵 😎

🛠️This Python script automates what you already could do yourself manually:

  1. It Downloads your transactions from Spiir 💚
  2. It Converts the transaction format a bit 🛑->✅
  3. Then it Imports them into YNAB 💙📅🙍💵📊

🧡☁️ Now with AWS Lambda Cloud support! ☁️🧡

The script is not endorsed by Spiir or YNAB and may stop working at any time.

Credentials

Add the following to python/ynabi/api/credentials.py

# Spiir
spiir_username = "" # Used for logging in to Spiir: www.mine.spiir.dk/log-ind
spiir_password = ""

# YNAB
ynab_api_token = "" # Get it here => https://api.youneedabudget.com/#personal-access-tokens
ynab_budget_id = "" # Get it from budget-URL ie: `https://app.youneedabudget.com/YOUR-BUDGET-ID-IS-HERE/budget`

YNAB Bank Account Names

🛑IMPORTANT🛑

  1. Account names must match exactly.
  2. 3 Account in Spiir => 3 Account in YNAB
Examples:
Spiir Accounts  | YNAB Accounts
--------------------------------------------
- Dankort       | - Dankort   <<< GOOD
- Savings       | - Savings   <<< GOOD (both accounts match)
--------------------------------------------
- Mastercard    | - MCard     <<< WRONG Name
- Savings       | - Savings   <<< WRONG (only 1 account matches)

Installation

Requirements

  • Python 3.8 or above

How to

  1. Clone this repo.
  2. Do the required configuration above
  3. py -m venv venv
  4. pip install requests
  5. py ./lambda/lambda_function.py

Terraform Deployment on AWS Lambda (optional)

Warning: AWS/cloud setup, requires an AWS account and basic knowledge about Amazon Web Services.

  1. Edit Credentials and Rename YNAB bank account names as described above
  2. See https://github.com/duch11/ynabi-lambda/blob/master/terraform/README.md for more

In case of issues:

See AWS documentation: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.4%
  • HCL 21.6%