Sign inSign up

omrilotan/rss-notifier

By omrilotan

•Updated over 4 years ago

💬 Send RSS update notifications to Slack

Image
2

10M+

omrilotan/rss-notifier repository overview

⁠rss-notifier ⁠ ⁠ ⁠

⁠💬 Send RSS update notifications to Slack

⁠Docker
docker run omrilotan/rss-notifier -- --interval 10 --webhook https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX --channel "#notifications-channel" --feeds https://www.githubstatus.com/history.rss,https://status.docker.com/pages/533c6539221ae15e3f000031/rss --log-level debug
⁠NPX
npx rss-notifier --interval 10 --webhook https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX --channel "#notifications-channel" --feeds https://www.githubstatus.com/history.rss,https://status.docker.com/pages/533c6539221ae15e3f000031/rss --log-level debug
⁠Docker with env vars
docker run -e INTERVAL=10 -e WEBHOOK=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX -e CHANNEL="#notifications-channel" -e FEEDS=https://www.githubstatus.com/history.rss,https://status.docker.com/ ages/533c6539221ae15e3f000031/rss -e LOG-LEVEL=debug omrilotan/rss-notifier

or

export INTERVAL=10
export WEBHOOK=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX
export CHANNEL="#notifications-channel"
export FEEDS=https://www.githubstatus.com/history.rss,https://status.docker.com/pages/533c6539221ae15e3f000031/rss
export LOG-LEVEL=debug

docker run -e INTERVAL -e WEBHOOK -e CHANNEL -e FEEDS -e LOG-LEVEL omrilotan/rss-notifier

and so on

⁠CLI options
NameEnv VarTypeDefault
webhookWEBHOOKWebhook address✘
feedsFEEDSComma separated URLs✘
intervalINTERVALMinutesFifteen minutes
channelCHANNELWebhook channelDefault webhook channel
log-levelLOG_LEVELdebug, verbose, info, warn, error, criticalwarn
log-formatLOG_FORMATplain, jsonplain
emojiEMOJISlack emoji:rolled_up_newspaper: ( 🗞 )
dry-runN/ABooleanno

Options preference order is: CLI argument (1st), Environment variable (2nd), default (where applicable)

⁠How To Use

⁠Interval

Run this as scheduled task, specify the interval in which you run it.

Examples:

If you are running a cron as */15 * * * * (each 15 minutes), set the interval argument to 15.

If you are running a cron as 0 9 */1 * * (every day at 09:00), set the interval argument to 1440 (60 * 24).

⁠Feed(s)

The feed(s) is a list of one or more URLs.

Example:

If you want to "subscribe" to GitHub and Docker statuses set your feeds to both --feeds https://www.githubstatus.com/history.rss,https://status.docker.com/pages/533c6539221ae15e3f000031/rss

Tag summary

Content type

Image

Digest

Size

47.8 MB

Last updated

over 4 years ago

docker pull omrilotan/rss-notifier