An automated process to send the daily exchange rate of JPY (Japanese Yen) and GBP (Great Britain Pound) to LINE, a widely used messaging app in Japan, scheduled for 6 PM every day.
The currency exchange rate is obtained by sending an HTTP request to ExchangeRate-API. The process is automated and monitored by Airflow. If any errors occur, an email alert is sent.
-
Set up Airflow
-
Clone this repository in your airflow dags folder.
-
Get Credentials for LINE Messaging API and Exchange Rates API
-
Create an account in LINE, and set up a Messaging API channel on LINE Developer
-
Get API key on ExchangeRate-API
-
-
Fill in the credentials in
.env
- LINE_CHANNEL_ACCESS_TOKEN : Channel access token of your LINE messaging channel
- USER_ID : User ID of your LINE messaging channel
- EXCHANGE_RATE_API_KEY : API key of your ExchangeRates-API account
- OWNER : Your Airflow user name
-
Use
pip install -r requirements.txt
to install modules.