thevickypedia / mortgage-rate-alert

A simple python script to run on a cron schedule to monitor mortgage rates and alert based on threshold

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mortgage Rate Monitor

A simple python script to monitor mortgage rates and alert based on threshold

Env Variables

  • GMAIL_USER: Gmail account username or email address.
  • GMAIL_PASS: Gmail account password for authentication.
  • RECIPIENT: Email address of the recipient.

Any one of the following is required

  • MIN_THRESHOLD: Threshold below when a notification has to be triggered.
  • MAX_THRESHOLD: Threshold above when a notification has to be triggered.

Optional:

Refer nerdwallet for options

  • PRODUCT: Defaults to 30-year fixed-rate
  • TYPE_OF_RATE: Defaults to Interest rate

To run in a container

docker build -t mortgage .
docker run mortgage

Sample cron schedule

0 8 * * * /usr/local/bin/docker run mortgage

⚠️ Scheduling it to run more than once a day is redundant and unnecessary, since results typically update daily

License & copyright

© Vignesh Rao

Licensed under the MIT License

About

A simple python script to run on a cron schedule to monitor mortgage rates and alert based on threshold

License:MIT License


Languages

Language:Python 85.2%Language:HTML 10.8%Language:Dockerfile 4.0%