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-Pnews

    Scheduled Pinned Locked Moved Utilities
    47 Posts 9 Posters 27.4k Views
    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.
    • D
      DeanoAus
      last edited by

      Hey mate, I think I have a bug for you. :bug:

      In MMM-PNews.js you hard code in the sorting method (latest) for the source.

      this.url = "https://newsapi.org/v1/articles?source=" + this.config.newsSource + "&sortBy=Latest&apiKey=";
      

      Latest isn’t a valid sorting method for some sources.
      Example is the https://newsapi.org/abc-news-au-api

      If you hit that with the url they provide with Latest in there for sorting, it fails and gives

      {"status":"error","code":"sourceUnavailableSortedBy","message":"The news source you've selected (abc-news-au) isn't available sorted by latest"}
      

      But if you change Latest to Top in the url, works fine. :)

      This is causing some feeds to not work.

      1 Reply Last reply Reply Quote 1
      • D
        DeanoAus
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • D
          DeanoAus
          last edited by

          Also, mine doesn’t seem to be updating the feed. (Sorry!)

          Seeing this in the log?
          fatal: unable to access ‘https://github.com/cowboysdude/MMM-PNews/’: GnuTLS recv error (-54): Error in the pull function.

          1 Reply Last reply Reply Quote 0
          • cowboysdudeC
            cowboysdude Module Developer
            last edited by cowboysdude

            @DeanoAus said in MMM-Pnews:

            sourceUnavailable

            I’ve updated the url so that should fix that…

            The other error is a git error … “: Error in the pull function”

            1 Reply Last reply Reply Quote 1
            • D
              DeanoAus
              last edited by

              Awesome, thanks! :D

              1 Reply Last reply Reply Quote 0
              • lucallmonL
                lucallmon
                last edited by

                @cowboysdude Just installed this for the first time. Looks GREAT! However, it seems to take up a lot of space at the bottom bar; I am using a somewhat smaller screen. Is there a way I can limit the module to more of the center leaving space on both sides at the bottom for smaller modules? Also, I’d like to center the pic and text. It seems that it only aligns to the left. Any help would be greatly appreciated.

                cowboysdudeC 1 Reply Last reply Reply Quote 0
                • cowboysdudeC
                  cowboysdude Module Developer @lucallmon
                  last edited by

                  @lucallmon I’ll take a look at it later when I get home :) We’ll see what we can do!

                  1 Reply Last reply Reply Quote 0
                  • J
                    Johans
                    last edited by

                    hi Cowboysdude,

                    I like your modules, nice work.
                    I was wondering if you could modify or make a separate module for the dutch (belgian) newsfeeds.
                    take a look at this side: http://feeds.nieuwsblad.be/nieuws/snelnieuws
                    they provide for each headline, a pircture and short description.
                    It would be nice if you could also incorparate this into the module.

                    Johan

                    cowboysdudeC 1 Reply Last reply Reply Quote 0
                    • cowboysdudeC
                      cowboysdude Module Developer @Johans
                      last edited by

                      @Johans said in MMM-Pnews:

                      hi Cowboysdude,

                      I like your modules, nice work.
                      I was wondering if you could modify or make a separate module for the dutch (belgian) newsfeeds.
                      take a look at this side: http://feeds.nieuwsblad.be/nieuws/snelnieuws
                      they provide for each headline, a pircture and short description.
                      It would be nice if you could also incorparate this into the module.

                      Johan

                      Johan, Thank you! I will certainly take a peek at that this evening!! :)

                      1 Reply Last reply Reply Quote 0
                      • cowboysdudeC
                        cowboysdude Module Developer
                        last edited by

                        @Johans

                        Here you go:

                        https://github.com/cowboysdude/MMM-DNews

                        Mykle1M J G 3 Replies Last reply Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 4 / 5
                        • 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