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.

    EveryNews: need ID's for Dutch news

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 862 Views 2 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.
    • P Offline
      Peter @mumblebaj
      last edited by

      @mumblebaj Thanks for your reply, but where do I find the ID for the news sources?
      I tried several things but it did not work.
      Peter

      mumblebajM 2 Replies Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @Peter
        last edited by mumblebaj

        @Peter why not just use your country code as input? That would pull news from all available sources for your specific country. I do not think that they have a list of specific sources.

        you can add &country=nl to the end and it will filter just nl. From what I have seen is that nl only has one provider,

        {
          "status": "ok",
          "sources": [
            {
              "id": "rtl-nieuws",
              "name": "RTL Nieuws",
              "description": "Volg het nieuws terwijl het gebeurt. RTL Nieuws informeert haar lezers op een onafhankelijke, boeiende en toegankelijke wijze over belangrijke ontwikkelingen in eigen land en de rest van de wereld.",
              "url": "https://www.rtlnieuws.nl/",
              "category": "general",
              "language": "nl",
              "country": "nl"
            }
          ]
        }
        

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

        1 Reply Last reply Reply Quote 0
        • mumblebajM Offline
          mumblebaj Module Developer @Peter
          last edited by

          @Peter You can post the following in your browser.

          https://newsapi.org/v2/top-headlines/sources?apiKey=add-your-api-key-here

          This will return all news sources and you can look for more in your country or region.

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

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            Peter @mumblebaj
            last edited by

            @mumblebaj thank you very much for trying to help me but I think I am to much of a noob to get it working.
            The only source in NL I found was rtl-nieuws, like you said previously.
            Peter

            mumblebajM 1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @Peter
              last edited by

              @Peter Sorry about that Peter. If there is nothing further please remember to mark as resolved.

              There is another option. You can use my module, MMM-NewsAPI which has a language option. It will bring up news from multiple source with the language of nl.

              Just follow the instructions on the Github page.

              817bc357-c4cf-47cc-8ce7-c49777a0dd20-image.png

              You can use your existing NewsAPI apiKey.

              You can use the following configuration.

              {
                  module: "MMM-NewsAPI",
                  //header: "news",
                  position: "bottom_center",
                  disabled: false,
                  config: {
                      apiKey: "your-api-key-goes-here",
                      choice: "headlines",
                      pageSize: 20,
                      sortBy: "publishedAt",
              		drawInterval: 1000*30,
              		templateFile: "template.html",
              		fetchInterval: 1000*60*60,
                      query: {
                          country: "",
                          category: "",
                          q: "",
                          qInTitle: "",
                          sources: "",
                          domains: "",
                          excludeDomains: "",
                          language: "nl"
                      }
                  }
              }
              

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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