# Module: News Feed The `newsfeed ` module is one of the default modules of the MagicMirror. This module displays news headlines based on an RSS feed. ## Using the module To use this module, add it to the modules array in the `config/config.js` file: ````javascript modules: [ { module: 'newsfeed', position: 'bottom_bar', // This can be any of the regions. Best results in center regions. config: { // The config property is optional. // If no config is set, an example calendar is shown. // See 'Configuration options' for more information. feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", }, { title: "BBC ", url: "http://feeds.bbci.co.uk/news/video_and_audio/news_front_page/rss.xml?edition=uk", }, ] } } ] ```` ## Configuration options The following properties can be configured:
Option Description
feeds An array of feed urls that will be used as source.
More info about this object can be found below.
Default value: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", } ]
showSourceTitle Display the title of the source.

Possible values: true or false
Default value: true
showPublishDate Display the publish date of an headline.

Possible values: true or false
Default value: true
showDescription Display the description of an item.

Possible values: true or false
Default value: false
reloadInterval How often does the content needs to be fetched? (Milliseconds)

Possible values: 1000 - 86400000
Default value: 300000 (5 minutes)
updateInterval How often do you want to display a new headline? (Milliseconds)

Possible values:1000 - 60000
Default value: 10000 (10 seconds)
animationSpeed Speed of the update animation. (Milliseconds)

Possible values:0 - 5000
Default value: 2000 (2.5 seconds)
The `feeds` property contains an array with multiple objects. These objects have the following properties:
Option Description
title The name of the feed source to be displayed above the news items.

This property is optional.
url The url of the feed used for the headlines.

Example: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'
encoding The encoding of the news feed.

This property is optional.
Possible values:'UTF-8', 'ISO-8859-1', etc ...
Default value: 'UTF-8'