Read the statement by Michael Teeuw here.
MMM-News and BBC
-
I tried to register for a new api key, but when I tried it told me that they don’t support the UK (where I am) so I wonder if that somehow has something to do with it.
This has obviously changed since I first registered, and given I’m getting some response from the API it is at least partially working, but besides that I have no idea…
-
@DarrenHill Hi. Apologies for the late reply. I am on a different timezone than the other guys.
I would suggest using MMM-NewsAPI. The same API key that you are using with MMM-News will work.
-
@mumblebaj - Thanks, no need to apologise.
I tried the other module, and it also doesn’t show anything besides it’s “News” header title.
The config I tried was:
{ module: "MMM-NewsAPI", header: "News", position: "bottom_center", config: { apiKey : "<my API key>", domains: "bbc.co.uk", language: "en" } },
And also I tried replacing the domains: with sources: “bbc-news” and that gave the same results.
There’s nothing in the logs, aside from confirming that the module is loading (as can be seen from the displayed title too).
-
@DarrenHill from the doc
Add DEBUG Handling.
Only add debug: true to the config section if you are experiencing issues and require more information to find issues. -
@DarrenHill domins or sources must be inside the much more complex query section of the config
see the doc
query: { country: "", category: "", q: "", qInTitle: "", sources: "", domains: "cnn.com,nytimes.com,news24.com", excludeDomains: "", language: "" }
-
@DarrenHill MMM-NewsAPI has a whole lot more configs. See below sample.
{ module: "MMM-NewsAPI", header: "news", // disabled: true, position: "bottom_bar", pages: {"sport": "bottom_bar"}, config: { apiKey: <api-key>, type: "horizontal", choice: "everything", pageSize: 20, sortBy: "publishedAt", drawInterval: 1000*30, templateFile: "template.html", fetchInterval: 1000*60*60, query: { country: "", category: "", q: "", qInTitle: "", sources: "", domains: "bbc.co.uk", excludeDomains: "", language: "" } } },
-
@mumblebaj - Thanks for the support, and for both modules.
Unfortunately that gives me a headline in Spanish (I think) about Apple iPhone 14 with “undefined” below it.
I also tried your everything example configs from your GH page and got a similar layout (headline and undefined).
I’m beginning to think NewsAPI itself is screwed for me unfortunately, so we may be onto a loser here regardless of module.
-
@mumblebaj i commented out your disabled: true,
-
@DarrenHill That is very weird as the configs seem to work for me and the other guys who have tried to assist thus far.
-
@mumblebaj - Yes, as I said I’m starting to think that your modules are both working fine, but the API feed I’m getting from NewsAPI is somehow corrupted and they are universally having issues with it.
I can’t create a new API key as it won’t let me (it says they don’t support UK now if you try and create a new key from here), and I guess that might be related somehow?
So I think we might be at a dead end here unfortunately with anything that’s using that API as its source.