Read the statement by Michael Teeuw here.
MMM-News
-
@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 } },
-
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