-
Notifications
You must be signed in to change notification settings - Fork 5
/
api_settings_format.py
61 lines (54 loc) · 2.15 KB
/
api_settings_format.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is your social security number. The same Id which is used when you log in with BankID.
CUSTOMERID = "***********"
# Get CLIENTID ('Applikasjonsnøkkel') and SECRET ('Passord') from https://secure.sbanken.no/Personal/ApiBeta/Info
CLIENTID = "d38************************a4d"
SECRET = "****************************************************"
# Set if transaction sync also should include reserved transactions.
# Transactions may change when confirmed and updates to YNAB may have to be done manually
includeReservedTransactions = False
# Uncomment if synced transactions should be flagged with a colour
# transactionFlagColor = 'blue'
# Uncomment if reserved transactions should be flagged with a colour
# reservedFlagColor = 'Red'
# Days back to sync. Change this number to sync other than 8 days back
daysBack = 8
# The SBanken to YNAB mappings
budget_id = '12345ab-6789-abcd-****-fedcba987654' # str | The ID of the Budget.
api_key = '*********' # Tha YNAB Api key
mapping = [
{
'Name': 'Brukskonto',
'Number': 97000000321,
'ID': 'ABCDEF1234567890ABCDEF0123456789', # Bank account ID from SBanken. Find it running ListAccountsAnIds.py
'account':'12345678-90ab-cdef-0123-456789abcdef' # Budget account ID from YNAB budget.
},
{
'Name': 'Utgiftskonto',
'Number': 9800000432,
'ID': 'ABCDEF1234567890ABCDEF0123456789',
'account':'12345678-90ab-cdef-0123-456789abcdef'
}
]
# MQTT Mapping of balances for budgets in ynab-get-budgetbalances.py
broker = '192.168.0.16'
balances = [
{
'category_name' : 'Dagligvarer',
'category_id' : 'cd7c625b-****-****-****-10bb7e69d29f' # get this from the url to your YNAB application when category is selected
},
{
'category_name' : 'Spise ute',
'category_id' : 'd9c85ede-****-****-****-10bb7e692d13'
},
{
'category_name' : 'Lek og fritid',
'category_id' : '2fa73af5-****-****-****-10bb7e69c9c9'
}
]
account_statuses = [
{
'Name': 'Brukskonto',
'Number': 97000000321,
'ID': 'ABCDEF1234567890ABCDEF0123456789',
}
]