Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Raspberry PI without docker

Martin Schurig edited this page Mar 17, 2020 · 6 revisions

Preparation

You will need to obtain a personal access token. Here is a tutorial on how to do it.

Setup

  1. Install rbenv

  2. Install ruby by with this command: rbenv install 2.5.0

  3. Clone this repository: git clone [email protected]:schurig/ynab-bank-importer.git and go in it cd ynab-bank-importer

  4. Install the dependencies with bundle install

  5. Create a config.yml

---
ynab:
  access_token: # ynab access token
  budget_id: # budget_id
  cash_account_id: # optional
accounts:
  - dumper: :n26
    iban: # iban of your n26
    ynab_id: # account id in YNAB
    username: # email
    password: # password

Example: config.sample.yml or have a look in the documentation of each dumper.

The values should be written in quotes. For example password: "!mySuperSecret%Password^374".

Run the script

ruby run.rb

Automate it

# you might need to adjust the path to the project and to the ruby executable here
*/15 * * * * cd /home/pi/ynab-bank-importer && /home/pi/.rbenv/shims/ruby run.rb || mail -s "YNAB importer failed" [email protected]
Clone this wiki locally