Read the statement by Michael Teeuw here.
MMM-NewsAPI
-
I appreciate the suggestion, unfortunately someone else built this mirror for me and it has multiple pages of widgets that were preconfigured for me. So the config file is pretty complex and points to that old module in various config settings. When I try to update the name of the old module to the new one and reboot MM, it just goes to a black screen.
Would you have any idea what the expired certificate error could mean in my previous log post? I’m just wondering if it’s something I can fix on my end to make the old module work again.
If it’s not too much trouble could you post me a clean config for the new module with the settings from my current one applied? I’m sure some of these old settings are messing with your new module.
Again I really appreciate your assistance on this.
-
@dondula Yeah, MMM-News was handed back to original author and archived. You should install MMM-NewsAPI and use that instead.
-
Hi all, setting up this amazing module but it seems to not work for me and I have no idea why. I tried already:
- Test api on postman. It works perfectly
- Check on the console. Nothing seems to be wrong
- Delete all modules except this one. Nothing changes
I´m also using it on an vertical screen but I don´t thing the type can make any changes to it. Tried already and nothing.
This is my config at the moment.
{ module: "MMM-NewsAPI", header: "news", position: "bottom_bar", pages: { "sport": "bottom_bar" }, config: { apiKey: "MYAPIKEY", 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: "" } } },
Thanks for the help !!
-
Hi. What is the below config for?
@ufransa said in MMM-NewsAPI:pages: { “sport”: “bottom_bar” },
-
@mumblebaj I think he was doing MMM-pages but got the name wrong, should be classes:
-
@sdetweil Ah, got you.
-
@sdetweil I am assuming he is using your fork of MMM-pages and was probably trying to do the below.
{ module:"MMM-NewsAPI", classes:"sport", }
If I remember the README from your fork it calls for page1 page2 etc. I kinda remember carousel has the type of config he was trying to implement but a little different.
@ufransa can you confirm what you are trying to achieve or which module you using for page control?
-
@mumblebaj said in MMM-NewsAPI:
If I remember the README from your fork it calls for page1 page2 etc. I kinda remember carousel has the type of config he was trying to implement but a little different.
yes, the default pages and carousel use the module name in the ‘modules’ or ‘slides’ config. in the pages module this is really the module CLASSname (carousel can ONLY use module NAME in the ‘slides’ config )
which puts all the config in the pages module, but makes it hard for multi-instance as module name doesn’t work there , so you HAVE to use classes to ADD something unique
but when looking at config.js, you cant TELL what is where, you have to toggle back and forth between the text and the pages config… (I find this maddening)
so, just add a name for the page name (page1, dad, mom, billy, sue, stocks, weather, whatever)and use that in the classes field on each appropriate module…
then you can see it right there…
oh, dad AND weather… easy
oh, this is the calendar instance I created for billys schedule… easy,… add that to the classes field… done
I just used page1, page2 as examples to distinguish the groupings of modules
------ mmm-carousel does this to look thru the modules
modules = MM.getModules().exceptModule(this).filter(function (module) { // this looks thru modules, code uses module name
------ mmm-pages does this
MM.getModules()
.exceptWithClass(modulesToShow) // this filters modules by classname -
Hi ! Nono, I´m not using pages, it´s that another module I assume, right?
-
@ufransa You will need to advise which other module you are using. I am assuming that the config you passing in may not be correct. When I run
domains: "bbc.co.uk"
it worked fine for me without that extra config. Can you confirm which other module you are using so I can check if you have specified that config setting correct.