Sign inSign up

myclau/currency-notice

By myclau

•Updated almost 8 years ago

https://github.com/myclauDockerImages/currency_notice

Image
0

227

myclau/currency-notice repository overview

⁠currency_notice

send email to you if currency rate is meet certain condition it meanly use 2 api

  1. currency api (https://free.currencyconverterapi.com/)
  2. email api (https://sendgrid.com/)

⁠prerequirement

  1. it will need sendgrid account (use free tier): https://sendgrid.com/pricing/
  2. create api key will access right only "send email"

⁠environment variable

Env varDefault valueDescription
CURRENCYnullmust be fill before you use , it is currency to want to check i.e JPY_HKD mean JPY to HKD
THRESHOLDSnullmust be fill before you use , it is the value that if meet with condition with send you alert or notice
CONDITION<must be fill before you use , it can be < , > , =
ENV_SLEEP_TIME3600checking time , default is check 1/hr
SENDGRID_APIKEYnullthe api key in sendgrid for sending notice
RECEIVERnullwho to receive the email
STOP_MONITOR_TIME_AFTER_THRESHOLDS_HIT43200stop checking after condition meet, default is 12 hr

⁠Important notice

As the email may go to junk box, so you may and this to contact "[email protected]⁠", or you set a must hit condition and trust the email before you start monitor.

Tag summary

Content type

Image

Digest

Size

65.9 MB

Last updated

almost 8 years ago

docker pull myclau/currency-notice