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.

    newsfeed

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 4 Posters 1.1k Views 4 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.
    • F Offline
      foggy
      last edited by

      I am trying to run newsfeed.
      my config file looks like this.

                      {
                              module: "newsfeed",
                              position: "bottom_bar",
                              animateIn: "slideInLeft",
                              animateOut: "slideOutRight",
                              config: {
                                feeds: [
                                  {
                                    title: "New York Times",
                              //       url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                    url: "https://feeds.bbci.co.uk/news/world/rss.xml",
                                  },
                                ],
                                showSourceTitle: true,
                                showPublishDate: true,
                                broadcastNewsFeeds: true,
                                broadcastNewsUpdates: true
                              }
                            },
      
      
      ]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      However I just get no news at the moment. Can someone look to see if I have made an error?

      Best wishes.

      mumblebajM 1 Reply Last reply Reply Quote 1
      • mumblebajM Offline
        mumblebaj Module Developer @foggy
        last edited by

        @foggy Your config works fine as is for me. Are you seeing any errors in the logs or the developers window?

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        1 Reply Last reply Reply Quote 0
        • F Offline
          foggy
          last edited by

          Thank you for your response.
          When I run the program all I see is the news for NYT and not BBC.
          I am not really sure where to look for the files. Just in case it make a difference, I download MagicMirror using https://tteck.github.io/Proxmox/#magicmirror-server-lxc
          As I am using Proxmox.

          Best wishes.

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

            @foggy are you editing the correct file?

            it looks like your changes are not in the config.js being used

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JohnGalt @sdetweil
              last edited by

              @foggy - @sdetweil may be onto something. I jsut added your url to my config.js file and I now get the BBC just fine.

              I also wonder whether the "{ " and “}” brackets are required but missing in your feeds array? I have each feed url in its own brackets and it works for me. See my config below, modified to add your BBC url.

              @sdetweil - related question: In the[recent] past my system has always restarted Magic Mirror when i commit a change to config.js using control-O, but lately it doesn’t and I have to manually restart MM. Is this expected behavior?

              Here is the file MagicMirror/config/config.js now correctly displaying BBC news.

              {module: "newsfeed",
                   disabled: false,
                   tableClass: "small",
                   position: "bottom_center",    // bottom_center bottom_bar
                   config: {
                   feeds: [
                      { title: "New York Times", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" },
                      { title: "BBC", url: "https://feeds.bbci.co.uk/news/world/rss.xml"},
                      { title: "Las Vegas Review Journal", url: "https://www.reviewjournal.com/feed/" },
                      { title: "Detroit Metro Times", url: "https://www.metrotimes.com/detroit/Rss.xml" },
                         ],
                         reloadInterval: 600000, // Content fetch interval - 600000 = 10 minutes
                         updateInterval: 15000, //Display new headline interval - default = 10000 milliseconds / 10 seconds
                         showSourceTitle: true,
                         showPublishDate: true,
                         broadcastNewsFeeds: false,
                         broadcastNewsUpdates: false
                              } },
              
              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @JohnGalt
                last edited by

                @JohnGalt said in newsfeed:

                related question: In the[recent] past my system has always restarted Magic Mirror when i commit a change to config.js using control-O, but lately it doesn’t and I have to manually restart MM. Is this expected behavior?

                this is provided by PM2 file change detection… it is inconsistent, and I haven’t found any reason… for me it has NEVER worked on pi, or linux… but used to ALWAYS work on mac… (but now doesn’t as well) …

                in my config to setup the MagicMirror app I use a json file that provides that configuration.

                I don’t see any change in the pm2 doc for this

                {
                  "apps" : [{
                    "name"        : "MagicMirror",
                    "script"      : "/home/pi/MagicMirror/installers/mm.sh",
                    "watch"       : ["/home/pi/MagicMirror/config/config.js"]  <-----  I adjust this for user and path 
                  }]
                }
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @JohnGalt remember he is running under lxc container
                  Proxmox/#magicmirror-server-lxc

                  so the files are NOT in exactly the same place… (they are linked into the container is the same logical place)

                  Proxmox/#magicmirror-server-lxc
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    JohnGalt @sdetweil
                    last edited by

                    @sdetweil - Thanks for both the update on the pm2 restart and on the reminder that the OP’s system structure is different.

                    OK, back to newsfeed behavior…

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

                      @JohnGalt I think he might be editing the sample

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        foggy
                        last edited by

                        Thank you all for your comments. Not sure what I did but the BBC is now working. Please close.

                        Best wishes.

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