• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-News and BBC

Scheduled Pinned Locked Moved Solved Troubleshooting
40 Posts 4 Posters 7.8k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Away
    sdetweil @DarrenHill
    last edited by Sep 6, 2022, 8:18 PM

    @DarrenHill said in MMM-News and BBC:

      source: [Object],
    

    its in there

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • D Offline
      DarrenHill @MMRIZE
      last edited by Sep 6, 2022, 8:20 PM

      @MMRIZE said in MMM-News and BBC:

      @DarrenHill
      Ok, I found something. I don’t know why, but your result has “articles.source.Name” instead of “articles.source.name” that makes this error.

      Anything I can do to overcome that?

      No idea why I’m getting different API returns to you guys…?

      S 1 Reply Last reply Sep 6, 2022, 8:25 PM Reply Quote 0
      • S Away
        sdetweil @DarrenHill
        last edited by sdetweil Sep 6, 2022, 8:26 PM Sep 6, 2022, 8:25 PM

        @DarrenHill @MMRIZE

        also doesn’t get ‘content’ or ‘description’, so those will fail too…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Sep 7, 2022, 10:48 AM Reply Quote 0
        • D Offline
          DarrenHill @sdetweil
          last edited by Sep 7, 2022, 10:48 AM

          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…

          M 1 Reply Last reply Sep 7, 2022, 4:07 PM Reply Quote 0
          • M Offline
            mumblebaj Module Developer @DarrenHill
            last edited by Sep 7, 2022, 4:07 PM

            @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.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            D 1 Reply Last reply Sep 7, 2022, 7:15 PM Reply Quote 0
            • D Offline
              DarrenHill @mumblebaj
              last edited by DarrenHill Sep 7, 2022, 7:15 PM Sep 7, 2022, 7:15 PM

              @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).

              S M 3 Replies Last reply Sep 7, 2022, 7:21 PM Reply Quote 0
              • S Away
                sdetweil @DarrenHill
                last edited by Sep 7, 2022, 7:21 PM

                @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.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @DarrenHill
                  last edited by Sep 7, 2022, 7:23 PM

                  @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: ""
                                      }
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mumblebaj Module Developer @DarrenHill
                    last edited by sdetweil Sep 7, 2022, 7:43 PM Sep 7, 2022, 7:26 PM

                    @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: ""
                                                            }
                                                    }
                    				},

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories

                    D S 2 Replies Last reply Sep 7, 2022, 7:42 PM Reply Quote 0
                    • D Offline
                      DarrenHill @mumblebaj
                      last edited by DarrenHill Sep 7, 2022, 7:43 PM Sep 7, 2022, 7:42 PM

                      @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.

                      M 1 Reply Last reply Sep 7, 2022, 7:45 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        30/40
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy