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.

    Put RSS module in two places?

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 994 Views 3 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.
    • S Offline
      sdetweil @tf2
      last edited by

      @tf2 can u show the config error?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • thgmirrorT Offline
        thgmirror
        last edited by thgmirror

        @tf2 I have two “newsfeed”-modules one over each other, both on the bottom-bar and it works

        But this is an exception, if you want to double any other module you have to copy the original folder, rename the folder and use this name to change the corresponding *.js in the new folder. Additionally, rename the Module.register name inside the js-file.

        You can verify your config.js here https://esprima.org/demo/validate.html for example.

        Hope that helps,
        Thomas

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tf2 @thgmirror
          last edited by

          @thgmirror Just to make sure: Do you mean two instances of the module, or do you mean two separate RSS feeds in one module? I can do the latter, but for some reason the former isn’t working.

          If you’ve gotten two instances to work, then I have some kind of an error in my config file that doesn’t crash the mirror entirely.

          1 Reply Last reply Reply Quote 0
          • thgmirrorT Offline
            thgmirror
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • thgmirrorT Offline
              thgmirror
              last edited by

              Hi @tf2, in my config.js, I have two newsfeed-instances:

              	{
              		module: "newsfeed",
              		position: "bottom_bar",
              		config: {
              			feeds: [
              				{
              					title: " 3 Podcasts",
              					url: "http://localhost:8080/modules/Podcast.rss2"
              				},
                   							],
              			showSourceTitle: true,
              			showPublishDate: true,
              			broadcastNewsFeeds: true,
                          ignoreOldItems: true,
                          showDescription: true,
              			broadcastNewsUpdates: true,
                          wrapDescription: true
              		}
              	},
              

              and

              	{
              		module: "newsfeed",
              		position: "bottom_bar",
              		config: {
              			feeds: [
                   			{
              					title: "Tagesschau",
              					url: "http://www.tagesschau.de/xml/rss2"
              				},
                              {
              					title: "Spiegel Online",
              					url: "https://www.spiegel.de/schlagzeilen/index.rss"
              				},
                              {
              					title: "Radio Bonn Rhein-Sieg",
              					url: "https://www.radiobonn.de/thema/bonn-su-429.rss"
              				}
              
              			],
              			showSourceTitle: true,
              			showPublishDate: true,
              			broadcastNewsFeeds: true,
                          ignoreOldItems: true,
                          showDescription: true,
              			broadcastNewsUpdates: true,
                          wrapDescription: true
              		}
              	},
              

              which leads to this output:

              b62bb22d-6b6e-48e4-9b22-5de8fcdef39c-image.png

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                tf2 @thgmirror
                last edited by

                @thgmirror Hey, thanks! Very helpful. Will try that out tonight.

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

                  @tf2 notice those were both configured to the same position, 1st in config it on top, next is lower, etc

                  they don’t HAVE to be in the same area

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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