https://github.com/dolanmiu/mmm-monzo
Display Monzo to MagicMirror
https://github.com/dolanmiu/mmm-monzo
magic-mirror magic-mirror-modules magicmirror monzo monzo-client
Last synced: about 1 year ago
JSON representation
Display Monzo to MagicMirror
- Host: GitHub
- URL: https://github.com/dolanmiu/mmm-monzo
- Owner: dolanmiu
- License: mit
- Created: 2018-05-08T01:29:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T01:25:14.000Z (almost 8 years ago)
- Last Synced: 2025-02-07T11:52:43.608Z (over 1 year ago)
- Topics: magic-mirror, magic-mirror-modules, magicmirror, monzo, monzo-client
- Language: TypeScript
- Size: 229 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Chat on Gitter][gitter-image]][gitter-url]
[![dependencies Status][daviddm-image]][daviddm-url]
[![Build Status][travis-image]][travis-url]
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]
# MMM-Monzo
> Monzo Module for Magic Mirror

## Compatability
| Operating System | Works? | Notes |
| -------------------- | ------ | ----- |
| Linux / Raspberry Pi | ✔ | - |
| macOS | ✔ | - |
| Windows | ✔ | - |
Requires `node 8` or above
## Installing
1. Clone this repo into the `/modules` folder as usual
2. run `$ npm install` in `/MMM-Monzo`
## Configuring
The final config should look something like this:
```js
{
module: "MMM-Monzo",
position: "top_center",
config: {
clientId: "oauth2client_00009XfHYT...",
clientSecret: "mnzconf.++er4iwMs4CtoYUdpRjpIn+UL6/NwqA88E...",
accountId: "acc_00005Ufdh...",
refreshToken: "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJl..."
}
}
```
### Getting the Client ID and Client Secret
1. Go to https://developers.monzo.com/apps/home
2. Create a new `Confidential Client`
3. Be sure to set the Redirect URL to: `http://localhost:8080/oauth`
4. Your Client should look like: https://imgur.com/TOkANnq
5. Keep note of the `Client ID`, `Client Secret`
### Getting the Account ID
Normally everybody should have 1, but if you have multiple Monzo cards (like me), then you have multiple account IDs. `MMM-Monzo` only supports 1 account at a time.
1. Go to https://developers.monzo.com/api/playground
2. Click on `List accounts` on the side
3. Click on `Send` to fetch all accounts.
4. Pick your account, most of the time there should only be one anyway. E.g. `acc_00005UxdhBxP1wQytx9dOX`
### Getting the Refresh token
1. run `$ npm run token-helper` inside the `/MMM-Monzo` folder
2. Follow the instructions
3. When it instructs you to go to the website, it will show an error. **This is normal**. What you need is in the URL/Address bar.
---
Made with 💖 by Dolan
[gitter-image]: https://badges.gitter.im/dolanmiu/mmm-monzo.svg
[gitter-url]: https://gitter.im/mmm-monzo/Lobby
[travis-image]: https://travis-ci.org/dolanmiu/MMM-Monzo.svg?branch=master
[travis-url]: https://travis-ci.org/dolanmiu/MMM-Monzo
[daviddm-image]: https://david-dm.org/dolanmiu/MMM-Monzo/status.svg
[daviddm-url]: https://david-dm.org/dolanmiu/MMM-Monzo
[greenkeeper-image]: https://badges.greenkeeper.io/dolanmiu/MMM-Monzo.svg
[greenkeeper-url]: https://greenkeeper.io/