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

Scheduled Pinned Locked Moved Utilities
55 Posts 15 Posters 48.9k Views 14 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
    swvalenti Project Sponsor
    last edited by Nov 17, 2020, 9:16 PM

    @Bugsounet Just circling back on this…would it be easier if I created an issue on github or leave it here?

    S 1 Reply Last reply Nov 17, 2020, 9:21 PM Reply Quote 0
    • S Offline
      sdetweil @swvalenti
      last edited by Nov 17, 2020, 9:21 PM

      @swvalenti whos news? did u look in the console window where u started MM?

      or pm2 logs if using pm2?

      news and calendar use the node_helper to fetch info…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        swvalenti Project Sponsor
        last edited by Nov 17, 2020, 9:28 PM

        Thanks Sam, checked the pm2 logs and unbeknownst to me…they now went to a paid tier api it seems!

        
        1|MagicMir | [2020-11-17 16:23:16.523] [LOG]    [NEWS] Error :  https://newsapi.org/v2/top-headlines?country=us&pageSize=20&apiKey=99d1bd76c7f140f58c237d54c41ab334 result.code:You have made too many requests recently. Developer accounts are limited to 100 requests over a 24 hour period (50 requests available every 12 hours). Please upgrade to a paid plan if you need more requests.
        
        
        S 1 Reply Last reply Nov 17, 2020, 9:42 PM Reply Quote 0
        • S Offline
          sdetweil @swvalenti
          last edited by Nov 17, 2020, 9:42 PM

          @swvalenti said in MMM-News:

          50 requests available every 12 hours

          change the refresh rate to 15 minutes that would be 48 per 12 hours

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            swvalenti Project Sponsor
            last edited by Nov 17, 2020, 11:50 PM

            @sdetweil I don’t see that as an option in the config…

            S 1 Reply Last reply Nov 18, 2020, 12:06 AM Reply Quote 0
            • S Offline
              sdetweil @swvalenti
              last edited by Nov 18, 2020, 12:06 AM

              @swvalenti edit line 48 of node_helper.js

              change

                  this.scanInterval = 1000*60*10
              

              to this

                  this.scanInterval = 1000*60*15
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              ? 1 Reply Last reply Nov 18, 2020, 11:14 AM Reply Quote 0
              • ? Offline
                A Former User @sdetweil
                last edited by Nov 18, 2020, 11:14 AM

                @sdetweil yes, it’s new they have limited request. So I will add new part of code for define interval, quickly

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by Nov 18, 2020, 5:33 PM

                  Hi, I have upgraded to v2.1.2 with personal fetch interval.
                  By default i put 30 min in default config

                  1 Reply Last reply Reply Quote 2
                  • S Offline
                    swvalenti Project Sponsor
                    last edited by Nov 18, 2020, 7:26 PM

                    @Bugsounet thank you very much

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      swvalenti Project Sponsor
                      last edited by Nov 22, 2020, 6:25 PM

                      @Bugsounet still getting the same error in the logs and news not displaying because of it. Below is my config. Any ideas?

                      },
                      		{
                        		module: "MMM-News",
                        		position: "bottom_bar",
                        		config: {
                          		apiKey : "XXXXXXXXX",
                          		type: "horizontal",
                          		query : [
                            		{
                              	sources: "fox-news, fox-sports",
                      },
                            {
                              country: "us",
                              className: "redTitle",
                            },
                          ],
                      	touchable: false,
                      	scanInterval: 1000*60*15
                        }
                      },
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 3 / 6
                      3 / 6
                      • First post
                        27/55
                        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