Skip to content

Edmeral/btc-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Send alerts via email if BTC price is greater than a certain value (in $).

Screenshot

How to configure

You need to have a SendGrid account to send emails.

After cloning this repo and installing dependencies, create .env file which will hold the configuration values.

$ git clone https://github.com/Edmeral/btc-alert
$ cd btc-alert
$ npm install
$ touch .env

.env file

Edit the .env file with the corresponding values.

SENDGRID_API_KEY=your SendGrid api key
TO_EMAIL=recipient address (yours)
FROM_EMAIL=sender's email (you may put yours here)
CAP=send email if value greater than this (example: 400)
INTERVAL=how many minutes to wait before checking the price again, example: 60 (for checking every hour)

Starting the price checker

$ npm start

Running it as a daemon

If you want to run this in the background (as a daemon), check out pm2.

About

💰 Alerts of bitcoin price changes via email

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published