Skip to content

Monitor Nova Scotia COVID-19 testing data and send email notification if data changed.

Notifications You must be signed in to change notification settings

kk-gjyang/cov-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cov-alert

Monitor Nova Scotia COVID-19 testing data and send email notification if data changed.

*Data source: https://novascotia.ca/coronavirus/data/

Enable Gmail API from:

https://developers.google.com/gmail/api/quickstart/nodejs

Download CLIENT CONFIGURATION and save it for CLIENT_SECRET

Install dependencies

npm install

Get access token:

[email protected] TOKEN_PATH=./my_token.json node renew

Run:

[email protected] [email protected] [email protected] CLIENT_SECRET=./my_secret_key.json TOKEN_PATH=./my_token.json node index

*I have another repo to get the data table for Canada and save to a file "caData.txt" which used in this script - add the table to the bottom of mail for reference: https://github.com/kk-gjyang/cov-ca-table.

About

Monitor Nova Scotia COVID-19 testing data and send email notification if data changed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published