No description
Find a file
2026-06-20 19:30:42 +02:00
static Kachel Log hinzugefügt 2026-06-20 19:01:33 +02:00
templates Kachel Log hinzugefügt 2026-06-20 19:30:42 +02:00
.gitignore Kategorisierung 2026-06-07 18:26:29 +02:00
app.py Kachel Log hinzugefügt 2026-06-20 19:01:33 +02:00
balance.py Aktualisierungen 2026-06-06 17:31:23 +02:00
categorize_transactions.py BaseDIR korrigiert 2026-06-20 18:01:48 +02:00
README.md Update 2026-06-16 18:46:19 +02:00
requirements.txt WebApp Design modern 2026-06-20 17:33:37 +02:00
transactions.py BaseDIR korrigiert 2026-06-20 17:55:20 +02:00

ING FinTS Auswertung

Python-Skripte zur automatisierten Auswertung eines ING-Kontos über FinTS.

Funktionen

balance.py

Ermittelt den aktuellen Kontostand und überträgt diesen an ioBroker.

Ausgabe:

  • Kontostand
  • Buchungsdatum

Optional:

  • Übertragung an ioBroker

transactions.py

Lädt die Kontobewegungen einer Kalenderwoche direkt von der ING.

Erzeugt:

Transaktionen/
└── YYYY/
    ├── csv/
    │   └── transactions_YYYY_KWxx.csv
    └── json/
        └── transactions_YYYY_KWxx.json

Zusätzlich:

  • Anzahl Transaktionen
  • Wochensumme
  • Wochenausgaben

werden an ioBroker übertragen.


categorize_transactions.py

Kategorisiert die bereits exportierten Transaktionen anhand der Datei Kategorien.json.

Es erfolgt kein erneuter Abruf bei der ING.

Quelle:

Transaktionen/YYYY/json/transactions_YYYY_KWxx.json

Erzeugt:

Transaktionen/
└── YYYY/
    ├── categorized_csv/
    │   └── categorized_transactions_YYYY_KWxx.csv
    ├── categorized_json/
    │   └── categorized_transactions_YYYY_KWxx.json
    ├── summary/
    │   └── category_summary_YYYY_KWxx.json
    └── jahresauswertung/
        └── Kontobewegungen_YYYY.xlsx

Excel-Auswertung

Die Datei

Kontobewegungen_YYYY.xlsx

enthält:

Blatt "Übersicht"

Monatsübergreifende Übersicht aller vorhandenen Kalenderwochen:

  • Einnahmen
  • Ausgaben
  • Saldo

Blatt "KWxx"

Für jede Kalenderwoche:

Kennzahlen

  • Anzahl Transaktionen
  • Einnahmen
  • Ausgaben
  • Saldo

Kategorien

  • Einnahmen pro Kategorie
  • Ausgaben pro Kategorie
  • Saldo pro Kategorie

Kontobewegungen

  • Datum
  • Betrag
  • Kategorie
  • Name
  • Verwendungszweck

Kategorien

Datei:

Kategorien.json

Beispiel:

{
  "Haus": [
    "ERGO",
    "ENTEGA",
    "WASSER"
  ],

  "Lebensmittel": [
    "REWE",
    "ALDI",
    "LIDL"
  ],

  "Luxus": [
    "AMAZON"
  ],

  "Ausgleich": [
    "AUSGLEICH"
  ]
}

Die Suche erfolgt in:

  • Name
  • Verwendungszweck

Groß-/Kleinschreibung wird ignoriert.


Verzeichnisstruktur

/home/banking
├── .ing.conf
├── Kategorien.json
├── ING
│   ├── balance.py
│   ├── transactions.py
│   ├── categorize_transactions.py
│   └── README.md
├── Transaktionen
│   └── YYYY
└── logs

Konfiguration

Datei:

~/.ing.conf

Beispiel:

ING_USER=12345678
ING_PIN=geheim
ING_IBAN=DE......
IOBROKER_HOST=10.0.1.10
IOBROKER_PORT=8087

IOBROKER_DP_BALANCE=javascript.0.Variablen.Konto_Saldo
IOBROKER_DP_TRANSACTIONS=javascript.0.Variablen.Konto_Transaktionen
IOBROKER_DP_WEEKSUM=javascript.0.Variablen.Konto_Wochensumme
IOBROKER_DP_WEEKEXPENSES=javascript.0.Variablen.Konto_Wochenausgaben

Installation

Repository klonen:

git clone https://git.hintergasse.de/hubobel/ING.git

Python-Abhängigkeiten installieren:

pip install -r requirements.txt

Wichtige Befehle

Repository aktualisieren

git -C ~/ING pull

Kontostand abrufen

python3 ~/ING/balance.py

Aktuelle Kalenderwoche laden

python3 ~/ING/transactions.py

Bestimmte Kalenderwoche laden

(Beispiel KW23/2026)

python3 ~/ING/transactions.py 2026 23

Aktuelle Kalenderwoche kategorisieren

python3 ~/ING/categorize_transactions.py

Bestimmte Kalenderwoche kategorisieren

(Beispiel KW23/2026)

python3 ~/ING/categorize_transactions.py 2026 23

Logging

Linux:

/home/banking/logs

Windows (PyCharm):

<Projektverzeichnis>/logs

Logdateien:

balance.log
transactions.log
categorize_transactions.log

Nextcloud

Linux

Synchronisation über rclone:

rclone copy \
~/Transaktionen/2026/jahresauswertung/Kontobewegungen_2026.xlsx \
nextcloud:Bank/2026

Windows

Automatische Kopie nach:

C:\Users\hubob\Nextcloud\Bank\2026

Cronjobs

Kontostand

Montag bis Samstag alle 4 Stunden:

0 */4 * * 1-6 /usr/bin/python3 /home/banking/ING/balance.py

Transaktionen

Sonntag 23:30 Uhr:

30 23 * * 0 /usr/bin/python3 /home/banking/ING/transactions.py

Kategorisierung

Sonntag 23:37 Uhr:

37 23 * * 0 /usr/bin/python3 /home/banking/ING/categorize_transactions.py