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

MMM-NewsAPI

Scheduled Pinned Locked Moved Utilities
103 Posts 10 Posters 58.3k 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.
  • S Away
    sdetweil @swvalenti
    last edited by sdetweil Aug 19, 2021, 7:29 PM Aug 19, 2021, 7:29 PM

    @swvalenti if u look in the developers window, console tab, are there any errors?

    is the module listed in the sources list, and is the content in the elements tab, but maybe marked display:none?

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Aug 20, 2021, 1:00 AM Reply Quote 0
    • S Offline
      swvalenti Project Sponsor @sdetweil
      last edited by Aug 20, 2021, 1:00 AM

      @sdetweil I got it all squared away thanks Sam!

      1 Reply Last reply Reply Quote 0
      • M Offline
        mwm341
        last edited by Aug 22, 2021, 10:27 AM

        Will MMM-NewsAPI allow displaying full articles in an iFrame?

        M 1 Reply Last reply Aug 22, 2021, 10:40 AM Reply Quote 0
        • M Offline
          mwm341 @mwm341
          last edited by Aug 22, 2021, 10:40 AM

          @mwm341 said in MMM-NewsAPI:

          Will MMM-NewsAPI allow displaying full articles in an iFrame?

          Maybe an answer:
          Gonna try splicing template.html into a responsive iFrame.

          Wish me luck!

          M 1 Reply Last reply Aug 22, 2021, 11:29 AM Reply Quote 0
          • M Online
            mumblebaj Module Developer @mwm341
            last edited by Aug 22, 2021, 11:29 AM

            @mwm341 It is not setup for that at the moment but, you are more than welcome to make a PR. :winking_face:

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

            M 1 Reply Last reply Aug 23, 2021, 11:15 AM Reply Quote 0
            • M Online
              mumblebaj Module Developer @mumblebaj
              last edited by Aug 23, 2021, 11:15 AM

              The following updates have been made to the module. Please feel free to do a git pull and then an npm install in the module directory.

              • Removed the request module and replaced with node-fetch due to request being deprecated.

              • Update to the config.js. You have to remove the following line from you config.js.

              className: "News"
              
              • The CSS has been changed to avoid conflicts with other modules. Hence the above className is no longer required and must be removed from the config.js.

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

              1 Reply Last reply Reply Quote 0
              • M Offline
                MZ-BER
                last edited by Nov 10, 2021, 2:23 PM

                Hey there - thanks for offering this module (NewsAPI). It works so far really well.

                But I noticed that the module doesn’t refresh the news as I am forcing it based on my config.

                The fetchInterval: is set to 1800*1000 // 30 minutes, but I still receive news that are 5 days old.
                Only if I restart the MM (npm start) it is pulling the recent news.

                And as you can see in the screenshot below, the NewsAPI doesn’t receive requests, as I’m actually expecting all 30min.

                e70296fc-666d-4d17-8253-59c6a8dee5ce-image.png

                M 1 Reply Last reply Nov 10, 2021, 3:05 PM Reply Quote 0
                • M Online
                  mumblebaj Module Developer @MZ-BER
                  last edited by Nov 10, 2021, 3:05 PM

                  @mz-ber Hi. I just had a look and mine is running fine and has the latest articles. Can you set debug: true in the config to see if it pulls new articles or if an error is returned? I have not run my mirror the past few days due to power issues hence my stats are low but I have been running it all day today and will check back on the stats. Let me know if you see anything in debug mode please.
                  edc91b4c-0c28-40d9-8a93-0234e2e5df93-image.png

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

                  M 1 Reply Last reply Nov 10, 2021, 7:06 PM Reply Quote 0
                  • M Offline
                    MZ-BER @mumblebaj
                    last edited by MZ-BER Nov 11, 2021, 3:35 PM Nov 10, 2021, 7:06 PM

                    Thanks for getting back. I set debug: true in the config and it is indeed pulling recent articles.

                    M 1 Reply Last reply Nov 10, 2021, 7:19 PM Reply Quote 0
                    • M Online
                      mumblebaj Module Developer @MZ-BER
                      last edited by Nov 10, 2021, 7:19 PM

                      @mz-ber Thanks for the confirmation. Can you lave the debug running and check if it pulls new data when it refresh?

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

                      M 1 Reply Last reply Nov 11, 2021, 3:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 10
                      • 11
                      • 3 / 11
                      • 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