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.

    Developer Wanted To Modify Default Newsfeed Module

    Scheduled Pinned Locked Moved Unsolved Requests
    31 Posts 9 Posters 10.6k Views 8 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.
    • M Offline
      MMRIZE @sifuhall
      last edited by

      @sifuhall
      Yes, that is the issue of Feed.
      Each RSS1.0/RSS2.0/XML/ATOM feed has each standard syntax, but not strictly. So every feed provider (e.g. news site) serves slightly-similar-but-different-syntax-feed.
      Your link has NO IMAGE by definition of the standard syntax, but it has a common CDATA tag to contain an image in the description really. The image doesn’t belong to the article item layer itself, but to its subcomponent description layer. It might be a kind of exception rule.

      I can add some codes to pick up that kind of image from the description of the article. But before that, if I could know which feeds should the module parse, I can make a dedicated-efficient version for your usage. To make an all-bullet-proof version is somehow inefficient. Could you tell me which feed you are considering to show on MagicMirror?

      sifuhallS 2 Replies Last reply Reply Quote 0
      • sifuhallS Offline
        sifuhall @MMRIZE
        last edited by

        @MMRIZE the feed I linked will be the final feed.

        Please tell me how I can pay you

        1 Reply Last reply Reply Quote 0
        • sifuhallS Offline
          sifuhall @MMRIZE
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • M MMRIZE referenced this topic on
          • G Offline
            greedyvegan @MMRIZE
            last edited by

            @MMRIZE said

            4c00748e-9331-4f82-8354-00cd14adf777-image.png

            how’d you add images to the article of the default news feed?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @greedyvegan
              last edited by

              @greedyvegan not default, see

              https://forum.magicmirror.builders/post/102573

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                greedyvegan @sdetweil
                last edited by

                @sdetweil

                I got my hopes up

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @greedyvegan
                  last edited by

                  @greedyvegan a different module, he does amazing work

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  G 1 Reply Last reply Reply Quote 1
                  • G Offline
                    greedyvegan @sdetweil
                    last edited by

                    @sdetweil

                    I tried to use it but it’s not working for me.
                    it just says “no news at the moment”
                    it’s fine, I’ll just use the default newsfeed

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MMRIZE @greedyvegan
                      last edited by

                      @greedyvegan
                      Give me your target feed. I’ll check

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        greedyvegan
                        last edited by greedyvegan

                        @MMRIZE said

                        Give me your target feed. I’ll check

                        I’m trying two modules out:
                        MMM-anotherNewsFeed
                        MMM-NewsFeedTicker

                        the configs and css are identical (bottom_right and new feed sources

                        config.js

                        {
                        module: "MMM-anotherNewsFeed ",
                        header: "ANOTHER News Feed",
                        position: "bottom_right",
                        config: {
                        feeds: [
                        {
                        title: "New York Times",
                        url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",
                        customLogo: "NYT_logo_rss_250x40.png",
                        },
                        {
                        title: "CBC World",
                        url: "https://www.cbc.ca/webfeed/rss/rss-world",
                        customLogo: "CBC_140x140.png"
                        },
                        {
                        title: "BBC World News",
                        url: "https://feeds.bbci.co.uk/news/world/rss.xml",
                        customLogo: "bbc_news_120x60.gif",
                        }
                        ],
                        showImage: true,
                        showSourceTitle: true,
                        showPublishDate: true,
                        broadcastNewsFeeds: true,
                        broadcastNewsUpdates: true
                        					
                        }
                        },		
                        {
                        module: "MMM-NewsFeedTicker",
                        header: "News Feed Ticker",
                        position: "bottom_right",
                        //classes: "day_scheduler",
                        config: {
                        feeds: [
                        {
                        title: "New York Times",
                        url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",
                        customLogo: "NYT_logo_rss_250x40.png",
                        													},
                        {
                        title: "CBC World",
                        url: "https://www.cbc.ca/webfeed/rss/rss-world",
                        customLogo: "CBC_140x140.png"
                        },
                        {
                        title: "BBC World News",
                        url: "https://feeds.bbci.co.uk/news/world/rss.xml",
                        customLogo: "bbc_news_120x60.gif"
                        }
                        ]
                        }
                        },	
                        

                        custom.css

                        .MMM-anotherNewsFeed. {position:relative}
                        .MMM-NewsFeedTicker. {position:relative}
                        

                        Screenshot 2024-03-23 at 7.54.13 PM.png

                        S M 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • First post
                          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