Skip to content

Commit 6966466

Browse files
committed
README refresh
1 parent a632aed commit 6966466

File tree

1 file changed

+42
-17
lines changed

1 file changed

+42
-17
lines changed

README.md

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,54 @@ Hey dude! Help me out for a couple of :beers: or a :coffee:!
1515

1616
[![coffee](https://www.buymeacoffee.com/assets/img/custom_images/black_img.png)](https://www.buymeacoffee.com/zJtVxUAgH)
1717

18-
To get started put `/custom_components/feedparser/` here:
19-
`<config directory>/custom_components/feedparser/`
18+
19+
## Installation
20+
[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)
21+
22+
1. Open HACS Settings and add this repository (https://github.com/custom-components/feedparser/)
23+
as a Custom Repository (use **Integration** as the category).
24+
2. The `feedparser` page should automatically load (or find it in the HACS Store)
25+
3. Click `Install`
26+
27+
Alternatively, click on the button below to add the repository:
28+
29+
[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?category=Integration&repository=feedparser&owner=custom-components)
30+
31+
32+
## Configuration
2033

2134
**Example configuration.yaml:**
2235

2336
```yaml
2437
sensor:
25-
platform: feedparser
26-
name: Engineering Feed
27-
feed_url: 'https://www.sciencedaily.com/rss/matter_energy/engineering.xml'
28-
date_format: '%a, %d %b %Y %H:%M:%S %Z'
29-
scan_interval:
30-
hours: 3
31-
inclusions:
32-
- title
33-
- link
34-
- description
35-
- image
36-
- pubDate
37-
exclusions:
38-
- language
38+
- platform: feedparser
39+
name: Engineering Feed
40+
feed_url: 'https://www.sciencedaily.com/rss/matter_energy/engineering.xml'
41+
date_format: '%a, %d %b %Y %H:%M:%S %Z'
42+
scan_interval:
43+
hours: 3
44+
inclusions:
45+
- title
46+
- link
47+
- description
48+
- image
49+
- published
50+
exclusions:
51+
- language
52+
53+
# Configuration of the second sensor tracking a different RSS feed
54+
- platform: feedparser
55+
name: Algemeen
56+
feed_url: https://www.nu.nl/rss/Algemeen
57+
local_time: true
58+
show_topn: 1
3959
```
4060
61+
If you wish the integration to look for enclosures in the feed entries, add `image` to `inclusions` list. Do not use `enclosure`.
62+
The integration tries to get the link to an image for the given feed item and stores it under the attribute named `image`. If it fails to find it, it assigns the Home Assistant logo to it instead.
63+
64+
Note that the original `pubDate` field is available under `published` attribute for the given feed entry. Other date-type values that can be available are `updated`, `created` and `expired`. Please refer to [the documentation of the original feedparser](https://feedparser.readthedocs.io/en/latest/date-parsing.html) library.
65+
4166
**Configuration variables:**
4267

4368
key | description
@@ -65,6 +90,6 @@ Due to how `custom_components` are loaded, it is normal to see a `ModuleNotFound
6590
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg?style=for-the-badge
6691
[forum]: https://community.home-assistant.io/t/custom-component-rss-feed-parser/64637
6792
[license-shield]: https://img.shields.io/github/license/custom-components/feedparser.svg?style=for-the-badge
68-
[maintenance-shield]: https://img.shields.io/badge/maintainer-Ian%20Richardson%20%40iantrich-blue.svg?style=for-the-badge
93+
[maintenance-shield]: https://img.shields.io/badge/maintainer-Ondrej%20Gajdusek%20%40ogajduse-blue.svg?style=for-the-badge
6994
[releases-shield]: https://img.shields.io/github/release/custom-components/feedparser.svg?style=for-the-badge
7095
[releases]: https://github.com/custom-components/feedparser/releases

0 commit comments

Comments
 (0)