Read the statement by Michael Teeuw here.
MMM-News
-
@Bugsounet ok thanks, let me know if I can do anything to help.
-
Anything I can do in the mean time to troubleshoot to help get this resolved. It is happening now, I looked in the dev window but didn’t see any errors. I don’t know where else to look. Attached should show the news on the bottom bar but nothing there. Thanks, Scott

-
@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*10to 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 } }, -
Not sure what it means but says initialized with 10 query
/home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 1|MagicMir | [2020-11-22 18:00:23.595] [LOG] MMM-PGA Retrieving Tounament List 1|MagicMir | [2020-11-22 18:00:24.198] [LOG] MMM-PGA retrieving Tournament Data 1|MagicMir | [2020-11-22 18:05:22.126] [LOG] Use existing calendar fetcher for url: https://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics 1|MagicMir | [2020-11-22 18:05:22.134] [INFO] Calendar-Fetcher: Broadcasting 2 events. 1|MagicMir | [2020-11-22 18:05:22.391] [INFO] Calendar-Fetcher: Broadcasting 2 events. 1|MagicMir | [2020-11-22 18:05:24.044] [LOG] MMM-PGA retrieving Tournament Data 1|MagicMir | [2020-11-22 18:05:24.437] [LOG] MMM-PGA Retrieving Tounament List 1|MagicMir | [2020-11-22 18:07:49.476] [LOG] Use existing calendar fetcher for url: https://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics 1|MagicMir | [2020-11-22 18:07:49.477] [INFO] Calendar-Fetcher: Broadcasting 2 events. 1|MagicMir | [2020-11-22 18:07:49.481] [LOG] MMM-PGA config received 1|MagicMir | [2020-11-22 18:07:49.485] [LOG] [NEWS] MMM-News Version: 2.1.2 1|MagicMir | [2020-11-22 18:07:49.486] [LOG] [NEWS] Initialized with 10 query 1|MagicMir | [2020-11-22 18:07:49.720] [LOG] MMM-PGA Retrieving Tounament List 1|MagicMir | [2020-11-22 18:07:49.804] [INFO] Calendar-Fetcher: Broadcasting 2 events. 1|MagicMir | [2020-11-22 18:07:50.969] [LOG] MMM-PGA retrieving Tournament Data -
limited to 100 query by day and 50 query for 12 hours
It’s not me who have set this limit but it’s news api
and sorry, i don’t work in news api too ! :)so now just a little calc…
you have 10 query and refresh is set to 15m
for one query for one hour (every 15min) => 4 query
for 10 query for one hour (every 15 min) => 4*10 = 40 queryin 12 hours with one query => 12 * 4 = 48 query / 50 max
in 12 hours with 10 query => 12* 40 = 480 query / 50 maxin 24 hours with one query => 24 * 4 => 96 query / 100 Max
in 24 hours with 10 query => 24*40 => 960 query / 100 maxThat why you have this error… and I just calc the number of query
{ sources: "fox-news, fox-sports", },–> result: it take 9 query (take a lot of resource)
{ country: "us", className: "redTitle", },–> result: it take just one query
Note: personnaly, i use only redTitle of my country
Note 2: i will add soon a counter for calc if number of query is correct -
@Bugsounet Ok thanks for the detailed explanation. Here is my config now so hopefully this should resolve it.
}, { module: "MMM-News", position: "bottom_bar", config: { apiKey : "XXXXXXXXXXXXXXXXXXX", type: "horizontal", query : [ { country: "us", className: "redTitle", }, ], touchable: false, scanInterval: 1000*60*30 } }, -
perfect, it should work perfectly now
-
Oddly the sizing of the module just randomly changed and got smaller. How do I make the entire module bigger to fill out the bottom_bar? I went into CSS but nothing I did seem to change anything.
-
I added this to custom css but just doesn’t look right. What could have changed the sizing as nothing was updated from the default install? I uninstalled and re-installed and same thing.
body { transform:scale(1.0); } .MMM-News { transform:scale(1,1.75); } -
“Oddly”, i have not touch to the css code
and “Oddly” i don’t touche the main code
and “Oddly” I run this module in 3 differents RPI
and “Oddly” … this is no problem !so try to disable all module one by one (except this modules), disable custom.css too
and “Oddly”, you will see : it works…
-
@Bugsounet said in MMM-News:
“Oddly”, i have not touch to the css code
and “Oddly” i don’t touche the main code
and “Oddly” I run this module in 3 differents RPI
and “Oddly” … this is no problem !so try to disable all module one by one (except this modules), disable custom.css too
and “Oddly”, you will see : it works…
You need a snickers bar or something? Take it down a notch keyboard warrior
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login