]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - docs/tips-and-tricks.md
Add news as dynamic message
[github/bastienwirtz/homer.git] / docs / tips-and-tricks.md
index f72f92b411b336a832642f8eece5851bed14b4f1..632b62dec6e4b79d651ed42eddcc0812790cb3f2 100644 (file)
@@ -21,25 +21,6 @@ The extension loads Homer in an iframe on your new tab page, meaning you have to
   target: '_top'
 ```
 
-## Use Homer as a custom "new tab" page
-#### `by @vosdev`
-
-This [extension](https://addons.mozilla.org/firefox/addon/custom-new-tab-page) allows you to have your homer dashboard in your new tab page, while leaving focus on the address bar meaning you can still type right away if you want to search or go to a page that is not on your homer dash.
-
-The extension loads Homer in an iframe on your new tab page, meaning you have to add `target: '_top'` to each of your items.
-
-```yaml
-- name: "Reddit"
-  logo: "assets/daily/reddit.png"
-  url: "https://reddit.com"
-  target: '_top'
-
-- name: "YouTube"
-  logo: "assets/daily/youtube.png"
-  url: "https://youtube.com"
-  target: '_top'
-```
-
 ## YAML Anchors
 #### `by @JamiePhonic`
 
@@ -129,3 +110,17 @@ docker create \
   --restart unless-stopped \
   linuxserver/code-server
 ```
+
+
+## Get the news headlines in Homer
+#### `by @JamiePhonic`
+
+Homer allows you to set a "message" that will appear at the top of the page, however, you can also supply a `url:`.
+
+If 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.
+
+So, 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!
+
+To 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! 
+
+So 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!