From the creator of MMM-Awesome-Alexa, I present:
MMM-Monzo
Monzo Module for Magic Mirror
Compatability
Operating System | Works? | Notes |
---|---|---|
Linux / Raspberry Pi | ✔ | - |
macOS | ✔ | - |
Windows | ✔ | - |
Installing
- Clone this repo into the
/modules
folder as usual - run
$ npm install
in/MMM-Monzo
Configuring
The final config should look something like this:
{
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
- Go to https://developers.monzo.com/apps/home
- Create a new
Confidential Client
- Be sure to set the Redirect URL to:
http://localhost:8080/oauth
- Your Client should look like: https://imgur.com/TOkANnq
- 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.
- Go to https://developers.monzo.com/api/playground
- Click on
List accounts
on the side - Click on
Send
to fetch all accounts. - Pick your account, most of the time there should only be one anyway. E.g.
acc_00005UxdhBxP1wQytx9dOX
Getting the Refresh token
- run
$ npm run token-helper
inside the/MMM-Monzo
folder - Follow the instructions
Made with 💖 by Dolan