Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. blueadam
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Groups 0

    blueadam

    @blueadam

    0
    Reputation
    342
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    blueadam Follow

    Latest posts made by blueadam

    • RE: Change newsfeed title to image/logo?

      @electros

      I’ll try my best to explain how I managed to get rid of the old one. Also I made all of these changes to code before @justjim1220 posted updated version of the code so I don’t guarantee it will work with those changes but you can give a try.

      So, what I noticed is that part of the code in newsfeed.js file that we fixed was the description part. I spent some time staring at mine MagicMirror and I noticed that those news titles won’t show as double. Instead, there is the original one and the second one that we have created which shows the news description, not the title.

      First I fixed the code that it will show the title instead of the description. In other words change the word ‘description’ to ‘title’.

      0_1539476532861_Nimetön suunn.malli (1).png

      Now we have done that there are two titles like you said. To understand why this is happening let’s go through the newsfeed.js code to understand why this is happening.

      0_1539476952063_newsfeedlapi.png

      1. orginal part of the code which prints the title
      2. first part of the new code which prints the logo and the timer
      3. second part of the new code which prints the scrolling headline.

      The scrolling effect is quite cool but unfortunately it won’t fit to my Magic Mirror lay out so I decided to remove that part of the code. For that reason I removed this part of the code.

      0_1539477438126_poista newsfeed.png

      Next thing we notice that the title is coming before our logo and timer. That is why we have to move new part of the code above the old one.

      0_1539478263819_NF3.png

      Now there is just one fault left which is that now there is our new logo + timer and the old text title + timer. To ‘remove’ the old one go to the config.js file and find the newsfeed module. Over there you can change showSourceTitle and showPublishDate values from ‘true’ to ‘false’. After that all should be working perfect.

      I hope that helped you even a little.

      posted in Development
      B
      blueadam
    • RE: Change newsfeed title to image/logo?

      Yeah, with those changes newsfeed module came back but it still looks exactly the same that it was, so there isn’t that logo that I’m using

      EDIT

      showDescription was set to false and when I changed it to true all changes started to work but now I have another problem. Now there is the original headline and the new one so there are two headlines at the same time.

      EDIT 2.0

      Finally it works! I had to change the newsfeed.js code a little bit and had to change some true values to false from config.js. Also, I decided to move the module to bottom_left. After all changes the final result looks like this. I’m about to make second news module right below this one after this one.

      0_1539377474606_kuvakaappaus.PNG

      posted in Development
      B
      blueadam
    • RE: Change newsfeed title to image/logo?

      I tried to do all those changes to newsfeed.js and created newsfeed.css file but it seems like that I’m doing something wrong beacuse now my whole newsfeed segment disappeared from my MagicMirror 😃 I took couple of screenshots to show what are the changes that I did.

      0_1539357230093_Nimetön suunn.malli (1).png

      I replaced that part of the code that is shown in first picture with that one that is in the second picture.

      newsfeed.css file is in the third picture and all of the files in the newsfeed folder are shown in the last picture.

      Even if it is not working yet I really appreciate all your effort that you have been putting on this 👍🏻

      posted in Development
      B
      blueadam
    • Change newsfeed title to image/logo?

      Is there any chance to change that title text to image or logo? I have already made an png picture for that use but I have no idea how to do it. if that is possible it would be great if you can help how to adjust that pictures size as well with css for example. Thank you.

      posted in Development
      B
      blueadam