Add setup-rss-fox-news.yaml
This commit is contained in:
30
setup-rss-fox-news.yaml
Normal file
30
setup-rss-fox-news.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
# Add this to your configuration.yaml or create a new file in config/packages/
|
||||
|
||||
# RSS Feed Template for Fox News
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Fox News Breaking"
|
||||
state: "{{ states('sensor.fox_news_rss') }}"
|
||||
attributes:
|
||||
articles: "{{ state_attr('sensor.fox_news_rss', 'articles') }}"
|
||||
last_updated: "{{ now() }}"
|
||||
|
||||
# RSS Feed Platform (requires feedparser or rss_feed_template)
|
||||
# Option 1: Using feedparser (install via HACS)
|
||||
rss_feed_template:
|
||||
fox_news_breaking:
|
||||
url: "https://feeds.foxnews.com/foxnews/latest"
|
||||
scan_interval: 300 # 5 minutes
|
||||
date_format: "%Y-%m-%d %H:%M:%S"
|
||||
|
||||
# Option 2: Using built-in feedparser (if available)
|
||||
# feedparser:
|
||||
# fox_news:
|
||||
# url: "https://feeds.foxnews.com/foxnews/latest"
|
||||
# scan_interval: 300
|
||||
|
||||
# Alternative Fox News RSS feeds:
|
||||
# - https://feeds.foxnews.com/foxnews/most-popular
|
||||
# - https://feeds.foxnews.com/foxnews/politics
|
||||
# - https://feeds.foxnews.com/foxnews/world
|
||||
# - https://feeds.foxnews.com/foxnews/business
|
||||
Reference in New Issue
Block a user