/pi_watcher

rpilocator RSS Aggregator

Primary LanguagePython

pi_watcher

A rpilocator RSS feed aggregator that posts to a webhook every 5 minutes if there is a new product to be found.

Usage

  1. Copy .env.example to .env
cp .env.example .env
  1. Set WEBHOOK_URL to your preferred webhook url, RSS_URL to your rpilocator rss feed, USER_AGENT can be changed if you want a custom user agent to be reported to rpilocator, and FREQUENCY is the updated frequency in minutes

  2. Install required packages

python -m pip install -r requirement.txt
  1. Run this command to start the watcher
python ./watcher.py

Docker

Alternatively, run using docker-compose, editting the docker-compose.yml file with your environment variables

docker-compose up

Credit

Credit to rpilocator for their service.