https://github.com/threesquared/mmm-monzo-pot
A MagicMirror² module to get the balance of your Pots from the Monzo API
https://github.com/threesquared/mmm-monzo-pot
magicmirror2 monzo
Last synced: 2 months ago
JSON representation
A MagicMirror² module to get the balance of your Pots from the Monzo API
- Host: GitHub
- URL: https://github.com/threesquared/mmm-monzo-pot
- Owner: threesquared
- Created: 2019-07-31T20:09:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T19:06:18.000Z (over 1 year ago)
- Last Synced: 2025-01-28T01:13:49.773Z (4 months ago)
- Topics: magicmirror2, monzo
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MMM-Monzo-Pot
This a module for [MagicMirror²](https://github.com/MichMich/MagicMirror).
This module gets the balance of your Pots from the [Monzo](https://monzo.com/) API and displays them in a table.

## Installation
```bash
cd modules
git clone https://github.com/threesquared/MMM-Monzo-Pot.git
cd MMM-Monzo-Pot
npm install
```## Authentication
> You will need to be able to access your MagicMirror in your browser so make sure your settings allow this!
First you need to create a new OAuth Client on the [Monzo developer portal](https://developers.monzo.com/). Copy the Client ID and Secret into your config. Also be sure to set it as a "confidential" app. Make sure the redirect url is set to your mirrors url plus `\monzo-callback`. For example:
```
http://192.168.0.170:8080/monzo-callback
```Then you have to visit the authentication URL at the address of your mirror and follow the instructions to get your token:
```
http://192.168.0.170:8080/monzo-auth
```## Config
The entry in `config.js` can include the following options:
| Option | Description |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clientId` | **Required** This is the Client ID assigned to your Client on the Monzo Developer portal
**Type:** `string`
| `clientSecret` | **Required** This is the Client Secret assigned to your Client on the Monzo Developer portal
**Type:** `string`
| `redirectURI` | **Required** This is the `/monzo-callback` url on your MagicMirror
**Type:** `string`
| `updateInterval` | How often the pot information is updated in ms.
**Type:** `integer`
**Default value:** `1 hour`Here is an example of an entry in `config.js`
```js
{
module: 'MMM-Monzo-Pot',
header: 'Pots',
position: 'bottom_left',
config: {
clientId: "$CLIENTID",
clientSecret: "$CLIENTSECRET",
redirectURI: "http://192.168.0.170:8080/monzo-callback",
}
},
```