Read the statement by Michael Teeuw here.
mmm newsapi help
-
@1a2a3a this modules doesn’t support multiple instances.
-
@mumblebaj and if multiple instances same problem
-
@mumblebaj i cant get my newsapi to work properly.
im trying to get SG all news. i set country to SG but its return other country news like 1News, AZoM. i dont understand why?
{ module: "MMM-NewsAPI", header: "News", position: "top_center", config: { apiKey: "12345", type: "horizontal", choice: "headlines", pageSize: 50, drawInterval: 1000*30, templateFile: "template.html", fetchInterval: 1000*60*60, QRCode: true, query: { country: "sg", category: "", source: "", domains: "", excludeDomains: "", language: "en", } } },
-
When you set
choices:'headlines'
andquery.country: 'sg'
, it doesn’t meannews from Singapore press
. Rather, it would be more similar toAbout/For Singapore
orPopular in Singapore
.Usually for
news from Specific national press
,sources: [...]
would be used.
For example;sources: ['bild', 'die-zeit'],
will show the news from the specific sources of Germany.
You can check sources by nation like this by yourself.
# Open your browser then navigate to here; https://newsapi.org/v2/top-headlines/sources?country=de&apiKey=YOUR_API_KEY
But unfortunately, For Singapore, there is no registered national source for this API.
It means even though this NewsAPI collects the news from various sources, you cannot specify the sources from only Singapore. You are not alone. For many countries, the API doesn’t provide the national source.
-
@MMRIZE thanks for the explanation. do you have other news module to recommend?