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-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

    Scheduled Pinned Locked Moved Utilities
    256 Posts 55 Posters 631.7k Views 57 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.
    • J Offline
      j.e.f.f Project Sponsor Module Developer
      last edited by

      @DDE12 Could you share your config? Also be sure put your API key in quotes in the configuration. If you aren’t using quotes, this could be a reason why the module is giving you the 401 error

      1 Reply Last reply Reply Quote 0
      • D Offline
        DDE12
        last edited by

        @j-e-f-f
        I can, but I think I figured it out last night without changing anything in MM or the module. I initially signed up for the free account on OpenWeatherMap. Last night I signed up for the One Call by Call https://openweathermap.org/api and MMM-OpenWeatherForecast starting working. Before signing up, I tested my API in a browser at https://api.openweathermap.org/data/2.5/onecall?lat=someLatitude&lon=someLongitude&appid=secretAPI
        and at https://api.openweathermap.org/data/3.0/onecall?lat=someLatitude&lon=someLongitude&appid=secretAPI
        and both reported 401 error. After signing up, the module began working in MM. This does require a credit card and subscribers get 1000 free calls per day. Subscribers can set the maximum number of calls in their dashboard to prevent going over and getting charged. This doesn’t seem like it would be too much of a problem if users set the module’s config appropriately.

        I’m guessing that the module is trying to get data that is no longer free and some API’s are grandfathered ?? Or I misunderstood what type of account I needed from the start.

        Where is the API address in the module’s code?

        Let me know if I can provide further information.

        T S 2 Replies Last reply Reply Quote 0
        • T Offline
          trividar @DDE12
          last edited by

          If the Module doesn’t load the informations change ```
          “https://api.openweathermap.org/data/3.0/onecall”

          to
          

          “https://api.openweathermap.org/data/3.0/onecall?”

          an it should work!
          
          1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @DDE12
            last edited by

            @DDE12 the API url is in the node_helper.js

            we recently add a Parm to enable picking v3 of the API vs 2.5 (old free).

            the add on modules need to do the same

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yk
              last edited by

              Fantastic work! I was using the previous DarkSkyForecast version - easy shift to this one.

              I’m trying to put the hourly data and daily data in the same “row” across using tiled view instead of 2 rows. I’m happy to edit the njk file (have tweaked a bit haven’t gotten it “just right” yet). Any ideas? I gather it’s something with the hourly and daily divs.

              Is data available to get mm of precipitation in the hourly and daily blocks? It shows % chance - keen to add precipitation instead.

              Thanks!!

              Y 1 Reply Last reply Reply Quote 0
              • Y Offline
                yk @yk
                last edited by

                @yk said in MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast:

                Fantastic work! I was using the previous DarkSkyForecast version - easy shift to this one.

                I’m trying to put the hourly data and daily data in the same “row” across using tiled view instead of 2 rows. I’m happy to edit the njk file (have tweaked a bit haven’t gotten it “just right” yet). Any ideas? I gather it’s something with the hourly and daily divs.

                Is data available to get mm of precipitation in the hourly and daily blocks? It shows % chance - keen to add precipitation instead.

                Thanks!!

                Replying to my own post incase someone else wants a single row for 3 hours and 3 days. You’ll need to comment out lines 191, 309, 315, 318 in the njk file. This results in a single row readable left to right hours then days. It’s a useful view if you’re using a full width view.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  justbob
                  last edited by

                  So what’s the solution for the 401 error?
                  The key works in default weather module, but in this one it’s not.

                  @sdetweil said in MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast:

                  @DDE12 NEVER run audit fix…

                  Can you elaborate why?
                  I for one don’t like seeing vulnerabilities and critical messages anywhere, and letting security flaws linger…

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @justbob
                    last edited by sdetweil

                    @justbob audit fix forces changes, and many times drags in breaking changes that we can do nothing about.

                    we are not running a web site w hundreds of random users, and are not dragging in other page content with their scripts. we are calling apis…

                    so the risks for (y)our site is extremely small…

                    I don’t know the answer on openweathermap.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • C Offline
                      chris1971
                      last edited by

                      I am using MMM-DarkSkyForecast - everything was fine, but today the module is not loading anymore. Are there any changes or known issues? Do I have to swith to another module?

                      Thx, Chris

                      BKeyportB 1 Reply Last reply Reply Quote 0
                      • BKeyportB Offline
                        BKeyport Module Developer @chris1971
                        last edited by

                        @chris1971 DarkSky is dead. You’ll have to switch. Apple bought 'em up and is shutting down the APIs.

                        The "E" in "Javascript" stands for "Easy"

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          chris1971
                          last edited by

                          Thanks for the Info. Hope that the switch to Open Weather will be smooth. Long time ago that I have modified something on the mirror…

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @chris1971
                            last edited by

                            @chris1971 @BKeyport

                            there is a replacement API. same parns
                            just different url

                            was posted here in the last few months.
                            no time to search right now

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            karsten13K 1 Reply Last reply Reply Quote 0
                            • karsten13K Offline
                              karsten13 @sdetweil
                              last edited by

                              @sdetweil

                              http://pirateweather.net

                              C 1 Reply Last reply Reply Quote 1
                              • C Offline
                                chris1971 @karsten13
                                last edited by chris1971

                                @karsten13
                                I tried a new API Token from pirateweather for OpenWeather - but the module is not loading. Do I have to do some other changes next to the API?
                                The token is valid until April 22nd. Do I have to renew the token every month?

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @chris1971
                                  last edited by

                                  @chris1971 pirate weather is the dark sky replacement.

                                  openweather has a different API token

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  C 1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    chris1971 @sdetweil
                                    last edited by chris1971

                                    @sdetweil
                                    pirateweather is another module next to openweather? Sorry for the dumb question…
                                    Then I will try to go with Openweather acc. the description…

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @chris1971
                                      last edited by

                                      @chris1971 no. pirateweather.net provides an API that looks like the dark sky API.

                                      so the dark sky module could be made to work again

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        chris1971 @sdetweil
                                        last edited by

                                        @sdetweil this would be cool. Will try and give a feedback soon.

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          chris1971
                                          last edited by chris1971

                                          I tried several API tokens from Pirateweather without success… But the old DarkSky APi is working again - I assume it will work only until March31st… :disappointed_face:

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @chris1971
                                            last edited by

                                            @chris1971 you would have to change the dark sky module to use the pirate weather url too

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 8 / 13
                                            • 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