You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
chee rabbits d14462b41d Update 'README.md' 2 days ago
.gitignore ignore environment files 2 years ago
LICENSE Initial commit 2 years ago
README.md Update 'README.md' 2 days ago
exchange source .env in exchange 2 years ago
get-balance.js add a dotenv.config() %_% 2 years ago
package-lock.json add a dotenv.config() %_% 2 years ago
package.json add a dotenv.config() %_% 2 years ago
run dont overwrite an access token with nothing 9 months ago

README.md

Amonzo Expronzo

what is??

this is for chee to make spending money on their American Express card feel like spending money.

i run it on a loop on my server.

it goes like this:

  • get the amount of money in my amex pot from monzo
  • log onto the amex website w/ puppeteer
    • get current available balance
    • take that off the total available credit to get how much has probably been spent
  • if there is more spent than in the amexpot, top up the amex pot from current account
  • send an item into the monzo feed (which sends a push notification)

how to use

basically don't? and if you do, leave me alone.

that being said:

the script run is how you get it started. you'll need to run it in the directory where get-balance.js is, because it expects it to be there and i haven't used dirname $(readlink -f $0). run it in a loop. i run it every minute on a server. you'll need to set some env vars:

environment variables

name description
pot_id the pot id you will be keeping your card-paying-off money in (find it via monzo api)
access_token your monzo access token
account_id your monzo account id
amex_user your amex username
amex_pass your amex password
available_credit the total available credit in your amex account

disclaimer

  • don't rely on this
  • don't expect it to work tomorrow
  • don't @ me
  • pull requests welcome
  • actually you can @ me sorry for being defensive

credits

simon legg thought of this