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

Raspberry PI using 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.

You should not clone this project if you want to set it up using docker.

Setup

  1. Install docker on the raspberry pi. Here is a tutorial

  2. Install docker-compose on the raspberry pi. Check out the last part of this guide.

  3. Create a docker-compose.yml file with this content

  4. 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

docker-compose run importer

Automate it

You can setup a cronjob and run this command every 15 minutes. Here is an example:

# you might need to adjust the path to the project and to the docker-compose executable here
*/15 * * * * cd /home/pi/ynab-bank-importer && /usr/local/bin/docker-compose run importer || mail -s "YNAB importer failed" youremail@example.com
Clone this wiki locally