Read the statement by Michael Teeuw here.
MMM-News
-
@Bugsounet Just circling back on this…would it be easier if I created an issue on github or leave it here?
-
@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…
-
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.
-
@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
-
@sdetweil I don’t see that as an option in the config…
-
@swvalenti edit line 48 of node_helper.js
change
this.scanInterval = 1000*60*10
to this
this.scanInterval = 1000*60*15
-
@sdetweil yes, it’s new they have limited request. So I will add new part of code for define interval, quickly
-
Hi, I have upgraded to v2.1.2 with personal fetch interval.
By default i put 30 min in default config -
@Bugsounet thank you very much
-
@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 } },