aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/tips-and-tricks.md
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-06-19 08:03:55 -0700
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-06-19 08:03:55 -0700
commit8d7ca88c469cb9591c57c620043c90542bfb0911 (patch)
tree92563dd43c6a0f134d5049aa3a2e63d45e9eae6c /docs/tips-and-tricks.md
parentfea05ea099424bab0f3d9cede6f054a7c4970a3f (diff)
parentb24251110179b86e12d6823618777ef133738861 (diff)
downloadhomer-20.06.1.tar.gz
homer-20.06.1.tar.zst
homer-20.06.1.zip
Merge branch 'master' of github.com-perso:bastienwirtz/homer20.06.1
Diffstat (limited to 'docs/tips-and-tricks.md')
-rw-r--r--docs/tips-and-tricks.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md
index 63dbde7..632b62d 100644
--- a/docs/tips-and-tricks.md
+++ b/docs/tips-and-tricks.md
@@ -110,3 +110,17 @@ docker create \
110 --restart unless-stopped \ 110 --restart unless-stopped \
111 linuxserver/code-server 111 linuxserver/code-server
112``` 112```
113
114
115## Get the news headlines in Homer
116#### `by @JamiePhonic`
117
118Homer allows you to set a "message" that will appear at the top of the page, however, you can also supply a `url:`.
119
120If the URL you specified returns a JSON object that defines a `title` and `content` item, homer will replace these values from your `config.yml` with the ones in the returned object.
121
122So, using [Node-Red](https://nodered.org/docs/getting-started/) and a quick flow, you can process an RSS feed to replace the message with a news item!
123
124To get started, simply import [this flow](https://flows.nodered.org/flow/4b6406c9a684c26ace0430dd1826e95d) into your Node-Red instance and change the RSS feed in the "Get News RSS Feed" node to one of your choosing!
125
126So far, the flow has been tested with BBC News and Sky News, however it should be easy to modify the flow to work with other RSS feeds if they dont work out of the box!