Code Monkey home page Code Monkey logo

mmm-sbanken's Introduction

MMM-Sbanken

Magic Mirror module for displaying transactions and account balance from Sbanken (Norway's first online bank)

Caution

Sbanken is shutting down the API on March 22nd 2024!

Dependencies

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository and install the dependencies:

git clone https://github.com/reidarw/MMM-Sbanken.git

Add the module to the modules array in the config/config.js file and insert your own info.

{
    module: 'MMM-Sbanken',
    position: 'bottom_left',
    config: {
        clientId: 'yourClientId',
        clientSecret: 'yourClientSecret',
        // Whitcdelist account numbers
        displayOnlyAccounts: [9722XXXXXXX, 9802XXXXXXX],
        aliasForAccountLabels: {9802XXXXXXX: 'VISA-kids', 9722XXXXXXX: 'Food account'},
        // Summation of accounts
        sumAccountsLabel: 'Card buffer',
        sumAccounts: [9713XXXXXXX, 9729XXXXXXX],
        // Custom header
        header: '' 
    }
},

Note: The summation of the accounts can be used to check credit card balance if you have an account where you set aside all of the money you have spent on the credit card to avoid paying interest.

Optional config

Option Description
header Alternative header. Set as empty string to remove. Default: "Bankinfo"
minWidth Minimum width on container in pixels. Default: 250
numberOfDecimals Number of decimals to be displayed on numbers. Default: 2
displayOnlyAccounts Whitelist account numbers to show the balance
aliasForAccountLabels Alias for account names. Example: {9802XXXXXXX: 'VISA-kids', 9722XXXXXXX: 'Food account'}
sumAccountsLabel Label for summation of accounts
sumAccounts The bank accounts to be summed
payDay What date you normally get paid from work. Default: 15
payDayBufferDays How many days you need to transfer money to accounts for different purposes after payday. Default: 4
showFutureAccountBalance Check all accounts against future withdrawals until the next refill of account. Default: true
showTransactionsToday View all transactions today. Default: true
showOnlyExpensesInTransactions Show only expenses and not income. Default: true
todayTransactionsHeader Header for today's transactions . Default: 'Dagens utgifter:'
noTransactionsLabel If no transactions on this day, this text will be displayed. Default: 'Ingen utgifter i dag'
salaryAccounts Add accounts where you get paid. This will check for payments larger than salaryNotificationMinimumAmount and print "Salary received" and with associated alias for account. Example: [9710XXXXXXX, 9722XXXXXXX]
salaryNotificationMinimumAmount Add a minimum amount that can be considered as salary. Default: 10000
updateInterval Interval to update info, in milliseconds. Default: 1 hour

Sample screenshot

MMM-Sbanken module for MagicMirror

mmm-sbanken's People

Contributors

reidarw avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.