Skip to content

RSS Line Notifier is an automated notification system that sends weather alerts for specific conditions of Taiwan via Line Notify, built with Node.js and Express.

License

Notifications You must be signed in to change notification settings

yuch3nchen/rss-line-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Line Notifier

image image image image image

RSS Line Notifier is an automated notification system that sends weather alerts for specific conditions of Taiwan via Line Notify, built with Node.js and Express.

Features

Preview

Technologies Used

  • Node.js
  • Express.js
  • Axios
  • MongoDB
  • Line Notify API
  • RSS Parser

Prerequisites

  • Node.js (version 20.10.0)
  • MongoDB (version 6.8.0)
  • Line Notify Token
  • RSS feed URL

Installation

  1. Clone the repository:
git clone https://github.com/yuch3nchen/rss-line-notifier.git
  1. Install dependencies:
npm install
  1. Set up environment variables in a .env file:
RSS_URL={your_rss_url}
LINE_NOTIFY_TOKEN={your_line_notify_token}
MONGODB_URI={your_mongodb_uri}
PORT=3000
LOG_LEVEL=info

Usage

To start the server:

npm start

To manually trigger the notification process, send a GET request to:

/api/run-cron-job

Configuration

Modifying Filter Conditions

To change the filter conditions for RSS feeds:

  1. Open app.js in the project root directory.
  2. Find the following line:
    const conditions = [
      "全台",
      "高雄",
      "高屏",
      "南部",
      "解除",
      "以南",
      "西半部",
    ];
  3. Modify this array with your desired keywords.
  4. Save the file and restart the application.

Deployment

This project is configured for deployment on Render. Follow Render's documentation for deploying Node.js applications.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Contact

If you have any questions or suggestions, please feel free to contact me:

About

RSS Line Notifier is an automated notification system that sends weather alerts for specific conditions of Taiwan via Line Notify, built with Node.js and Express.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published