Custom flows for use of the Monzo API within Node-RED
Using the Monzo Developer API this project will give various Node-RED flows to help achieve various things!
First step is to setup an application on the Monzo Dev portal - https://developers.monzo.com/apps/home. Here are some great instructions based on those from @muyiwaolu's monzo-python project:
In order to get OAuth credentials for monzo-python:
- Head to the Clients Section of the developer playground.
- Click "New OAuth Client".
- Give your client a name, e.g. "MyApplication".
- Enter the "Redirect URL" as the 'localhost'
- Select "Confidential" from the Confidentiality dropdown box.
- Click "Submit" and make a note of the newly created client id and secret, you will need this for your Node-RED configuration.
After adding the flow in Get-Token, open up the first function node and add in your Client ID and Secret to the variables at the start. Initalise a Monzo login through the app you created earlier, go to your email, copy the link from the 'Login' button of the Monzo email and paste it within the Inject node. Once that's done, deploy the flow and click the inject button on the inject node. This will automatically keep refreshing your token. You'll only ever have to redo this if your Node-RED instance is stopped for whatever reason.
- Setup project
- Get token
- Get account/pot details
- Get balance
- Add leftover money to pot
- Add Developer App setup
- Get token
- Get account/pot details
- Get balance
- Add leftover money to pot