@cyberphox said in Change newsfeed title to image/logo?:
Ok so to remove the old one and install this, let’s review the steps!
Anyone…??
Sure! I assume this is what you want…
Refer to: https://github.com/justjim1220/MMM-NewsFeedTicker for the full install details etc.
Install new news ticker:
Log into your Raspberry Pi as pi and:
cd ~/MagicMirror/modules
git clone https://github.com/justjim1220/MMM-NewsFeedTicker.git
This installs the requisite module into the correct directory.
Remove old news and enable new news
The nice thing with this is that enabling or disabling modules is done simply by adding or deleting entries in the config.js file. The only catch is that it’s touchy with proper syntax so make sure you aren’t missing something simple (like a trailing comma or a misplaced ‘}’ or ‘{’. I suggest backing up your current config.js so that you can revert to it if needed. This is generally a good policy when modifying any config files. To check your config for errors, reference the following article:
https://forum.magicmirror.builders/topic/5399/how-to-check-your-config-for-errors-for-absolute-beginners/2
So, onto making that backup copy…
cd ~/MagicMirror/config
cp config.js config.bak01
Increment the trailing number if you want to retain multiple backup copies. If you make a mistake and want to start over, copy the backup to overwrite the current version of config.js…
cp config.bak01 config.js
Now edit the config file…
nano config.js
To disable the default news reader, delete the following: (you may have additional feeds if you added anything).
{
"module": "newsfeed",
"position": "bottom_bar",
"config": {
"feeds": [
{
"title": "New York Times",
"url": "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
},
],
"showSourceTitle": true,
"showPublishDate": true
}
},
Now to add the new feed, add the following somewhere in the config (maybe where the old new feed was?) You can customize this by adding or removing news sources based upon what interests you.
{
disabled: false,
module: "MMM-NewsFeedTicker",
position: "bottom_bar",
//classes: "day_scheduler",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
encoding: "UTF-8", //ISO-8859-1
className: "myClass",
defaultLogo : ""
},
{
title: "USA Today",
url: "http://rssfeeds.usatoday.com/UsatodaycomNation-TopStories",
encoding: "UTF-8", //ISO-8859-1
className: "myClass",
defaultLogo : ""
},
{
title: "BBC World News",
url: "http://feeds.bbci.co.uk/news/world/rss.xml#",
encoding: "UTF-8", //ISO-8859-1
className: "myClass",
defaultLogo : ""
}
]
},
Now you can reload the MagicMirror via Ctrl-R (I find that the system automatically reloads the module once it detects a changed config.js). You should see the new news feed at the bottom.