[feed] Minor improvements for Feed Binding (#8824)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
committed by
GitHub
parent
44e3f9c90f
commit
333cae9e72
@@ -4,9 +4,7 @@ This binding allows you to integrate feeds in the openHAB environment.
|
||||
The Feed binding downloads the content, tracks for changes, and displays information like feed author, feed title and description, number of entries, last update date.
|
||||
|
||||
It can be used in combination with openHAB rules to trigger events on feed change.
|
||||
It uses the [ROME library](https://rometools.github.io/rome/index.html) for parsing
|
||||
and supports a wide range of popular feed formats - RSS 2.00, RSS 1.00, RSS 0.94, RSS 0.93, RSS 0.92, RSS 0.91 UserLand,
|
||||
RSS 0.91 Netscape, RSS 0.90, Atom 1.0, Atom 0.3.
|
||||
It uses the [ROME library](https://rometools.github.io/rome/index.html) for parsing and supports a wide range of popular feed formats - RSS 2.00, RSS 1.00, RSS 0.94, RSS 0.93, RSS 0.92, RSS 0.91 UserLand, RSS 0.91 Netscape, RSS 0.90, Atom 1.0, Atom 0.3.
|
||||
|
||||
## Supported Things
|
||||
|
||||
@@ -24,11 +22,11 @@ No binding configuration required.
|
||||
|
||||
Required configuration:
|
||||
|
||||
- **URL** - the URL of the feed (e.g <http://example.com/path/file>). The binding uses this URL to download data
|
||||
- **URL** - the URL of the feed (e.g <http://example.com/path/file>). The binding uses this URL to download data.
|
||||
|
||||
Optional configuration:
|
||||
|
||||
- **refresh** - a refresh interval defines after how many minutes the binding will check, if new content is available. Default value is 20 minutes
|
||||
- **refresh** - a refresh interval defines after how many minutes the binding will check, if new content is available. Default value is 20 minutes.
|
||||
|
||||
## Channels
|
||||
|
||||
@@ -39,18 +37,18 @@ The binding supports following channels
|
||||
| latest-title | String | Contains the title of the last feed entry. |
|
||||
| latest-description | String | Contains the description of last feed entry. |
|
||||
| latest-date | DateTime | Contains the published date of the last feed entry. |
|
||||
| author | String | The name of the feed author, if author is present |
|
||||
| title | String | The title of the feed |
|
||||
| description | String | Description of the feed |
|
||||
| last-update | DateTime | The last update date of the feed |
|
||||
| number-of-entries | Number | Number of entries in the feed |
|
||||
| author | String | The name of the feed author, if author is present. |
|
||||
| title | String | The title of the feed. |
|
||||
| description | String | Description of the feed. |
|
||||
| last-update | DateTime | The last update date of the feed. |
|
||||
| number-of-entries | Number | Number of entries in the feed. |
|
||||
|
||||
## Example
|
||||
|
||||
Things:
|
||||
|
||||
```java
|
||||
feed:feed:bbc [ URL="http://feeds.bbci.co.uk/news/video_and_audio/news_front_page/rss.xml?edition=uk"]
|
||||
feed:feed:bbc [ URL="http://feeds.bbci.co.uk/news/video_and_audio/news_front_page/rss.xml?edition=uk"]
|
||||
feed:feed:techCrunch [ URL="http://feeds.feedburner.com/TechCrunch/", refresh=60]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user