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

Put RSS module in two places?

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 823 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.
  • T Offline
    tf2
    last edited by Aug 14, 2020, 7:16 PM

    Is it possible to put the RSS module in two places on a MagicMirror implementation? I’d like it in the (default) lower third, but also in the top bar.

    When I try to add another RSS module with the position of top_bar, I get a config error. But I don’t know if that’s because I’ve mistyped something, or if it’s not possible to put the RSS module in two places at once.

    Thanks!

    S 1 Reply Last reply Aug 14, 2020, 7:40 PM Reply Quote 0
    • S Away
      sdetweil @tf2
      last edited by Aug 14, 2020, 7:40 PM

      @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
      • T Offline
        thgmirror
        last edited by thgmirror Aug 14, 2020, 7:45 PM Aug 14, 2020, 7:40 PM

        @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 Aug 16, 2020, 12:17 AM Reply Quote 0
        • T Offline
          tf2 @thgmirror
          last edited by Aug 16, 2020, 12:17 AM

          @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
          • T Offline
            thgmirror
            last edited by Aug 16, 2020, 7:29 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • T Offline
              thgmirror
              last edited by Aug 16, 2020, 7:41 AM

              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 Aug 16, 2020, 6:41 PM Reply Quote 0
              • T Offline
                tf2 @thgmirror
                last edited by Aug 16, 2020, 6:41 PM

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

                S 1 Reply Last reply Aug 16, 2020, 8:09 PM Reply Quote 0
                • S Away
                  sdetweil @tf2
                  last edited by Aug 16, 2020, 8:09 PM

                  @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
                  1 / 1
                  • First post
                    7/8
                    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