• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Change newsfeed title to image/logo?

Scheduled Pinned Locked Moved Development
58 Posts 7 Posters 24.7k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    electros Project Sponsor @blueadam
    last edited by Oct 15, 2018, 7:23 PM

    @blueadam yes, now everything is fine. thank you

    1 Reply Last reply Reply Quote 1
    • J Offline
      justjim1220 Module Developer @blueadam
      last edited by Oct 20, 2018, 2:24 AM

      @blueadam @cyberphox @electros

      MMM-NewsFeedTicker

      0_1540002089489_Screenshot (407).png
      0_1540002097195_Screenshot (406).png
      0_1540002107196_Screenshot (401).png

      Yes! I now have the scrolling newsfeed with logo that will change for more than 1 newsfeed!!! :smiling_face_with_sunglasses:

      Thanks to @sdetweil and @Sean for helping me along and learning me!

      "Life's Too Short To Dance With Ugly People"
      Jim Hallock - 1995

      S 1 Reply Last reply Oct 22, 2018, 10:00 PM Reply Quote 1
      • S Offline
        StrIIker @justjim1220
        last edited by Oct 22, 2018, 10:00 PM

        @justjim1220

        I love this News Ticker. Can I ask how I can change the size of the ticker? My mirror is in Portrait mode and the font feels oversized. I would prefer 40-50% of the current release size which would also allow the full headline to show. Also, can you include an opacity value for the background? I like the maroon but would prefer it to be less intense. I am sure these could be handled via the custom.css but I am a novice with this all. Thank you again for a great module!

        J 1 Reply Last reply Oct 23, 2018, 6:58 PM Reply Quote 1
        • J Offline
          justjim1220 Module Developer @StrIIker
          last edited by Oct 23, 2018, 6:58 PM

          @striiker

          Add this to custom.css, Make the changes you want in it…

          .MMM-NewsFeedTicker {
              height: 100px;
              background-color: maroon;
              opacity: 1.0;
          }
          
          .MMM-NewsFeedTicker .headline {
              padding-top: 15px;
              font-size: 100%;
          }
          
          .MMM-NewsFeedTicker .image {
            height: 100px;
            background-color: #FFF;
          }
          

          Let me know if you have any problems with this.

          I am glad that you like it! :smiling_face_with_sunglasses:

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          S 2 Replies Last reply Oct 25, 2018, 11:16 PM Reply Quote 0
          • C Offline
            cyberphox
            last edited by Oct 25, 2018, 7:08 PM

            Ok so to remove the old one and install this, let’s review the steps! :)
            Anyone…??

            Full time Dad, DJ and entertainer and lover of technology.

            S 1 Reply Last reply Oct 25, 2018, 8:36 PM Reply Quote 0
            • S Offline
              StrIIker @cyberphox
              last edited by Oct 25, 2018, 8:36 PM

              @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.

              1 Reply Last reply Reply Quote 1
              • C Offline
                cyberphox
                last edited by cyberphox Oct 25, 2018, 8:53 PM Oct 25, 2018, 8:50 PM

                Got lots of config errors copying that…weird…

                Checking file… /home/pi/MagicMirror/config/config.js
                Line 192 col 1 Expected ‘}’ to match ‘{’ from line 160 and instead saw ‘]’.
                Line 193 col 2 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘}’.
                Line 193 col 3 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘;’.
                Line 193 col 4 Missing semicolon.

                Had to add an extra close bracket }

                Full time Dad, DJ and entertainer and lover of technology.

                S 1 Reply Last reply Oct 25, 2018, 9:04 PM Reply Quote 0
                • S Offline
                  StrIIker @cyberphox
                  last edited by Oct 25, 2018, 9:04 PM

                  @cyberphox

                  Yeah, I have spent a lot of time trying to figure out where I was missing something… Generally it was a missing comma at the end of a config line which had additional content following it or misplacing the { or }.
                  Also, the modules are loaded in order as they appear in the config so if you want a couple of things in the top left (denoted by the location parameter “position”: “top_left”, the first module will be the top left and the second module read would be just below that.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    cyberphox
                    last edited by Oct 25, 2018, 9:07 PM

                    I have it working now after adding the extra bracket, but as stated above its’ a little big for portrait mode…it’s running a bit sluggish but i expect thats more of a raspberry pi issue…changing the font % in custom.css didnt seem to shrink it any for me

                    Full time Dad, DJ and entertainer and lover of technology.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      justjim1220 Module Developer
                      last edited by Oct 25, 2018, 9:22 PM

                      @StrIIker
                      @cyberphox

                      My Apologies for the issues you are having, but, I am looking over the code to make these fixes and I am not seeing any of the problems you are describing…

                      Any way you could show me the specific places these errors are occurring?

                      I ran it through an error checker and it’s not finding any errors…

                      "Life's Too Short To Dance With Ugly People"
                      Jim Hallock - 1995

                      C S 2 Replies Last reply Oct 25, 2018, 9:26 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 4 / 6
                      4 / 6
                      • First post
                        35/58
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy