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-DarkSkyForecast - Yet ANOTHER weather module

    Scheduled Pinned Locked Moved Utilities
    334 Posts 67 Posters 835.2k Views 74 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.
    • RedNaxR Offline
      RedNax Module Developer @j.e.f.f
      last edited by

      @j-e-f-f :) This looks familiar… well done!

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

        Does it handle midnight properly in 12 hour mode? So darned tired of the 0am stuff the other DarkSky one has. ;)

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

        J 1 Reply Last reply Reply Quote 0
        • rudibaraniR Offline
          rudibarani Project Sponsor @j.e.f.f
          last edited by rudibarani

          @j-e-f-f said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

          I also fixed up how the header is formatted. I’m now using an HTML5 header element and it has two classes: module-header so that it is formatted the same as all of the other module headers, and forecast-header if you want to target it specifically with CSS.

          Thanks for accepting my pull request and your improvements. They help me learn how this all works.

          I have some trouble with the animated current conditions icons. Sometimes they do not show up, although configured - and reappear on a restart. Sometimes they are shown only for one instance of MMM-DarkSkyForecast. Do you have any idea, what might be the cause?

          A second question: I have limited the max-width of MMM-DarkSkyForecast to 250px as I would like to have my mirror with cascading module widths with in creasing width the lower a module is. This works fine on the left side. If I send MMM-DarkSkyForecast to the right side and the module below is wider, it is aligned on the left side of the right region. Do you have any advice how to right align all modules in the right region?

          1 Reply Last reply Reply Quote 0
          • Hein-JanH Offline
            Hein-Jan
            last edited by

            @j-e-f-f ,

            I am also stuck at “Loading” actually it says “Bezig met laden…” which is Dutch for “Loading”.

            I ran the “git clone…”, switched to the “MMM-DarkSkyForecast” directory, and ran the NPM Install.
            I do get this warning: “npm WARN mmm-darkskyforecast@1.0.0 No repository field.”, but I do not know how to act upon it.

            The module is making calls to DarkSky, I see that in the Api usage.

            The logs show no error.
            This is the config:

            		{
              			module: "MMM-DarkSkyForecast",
              			header: "Weersverwachting",
              			position: "top_right",
            //  			classes: "default everyone",
              			disabled: false,
              			config: {
                				apikey: "XXXXXXXXXXXXX",
                				latitude: "51.5096192",
                				longitude: "5.6364183",      
                				iconset: "1c",
            //				maxHourliesToShow: 4,
            //				maxDailiesToShow: 4,
            //				useAnimatedIcons: true,
                				concise: false,
            //				label_timeFormat: "k[h]",
                				forecastLayout: "table"
            			}
            		},
            
            

            I am not sure were I went wrong. Can you provide help?

            Kind Regards,

            Hein-Jan

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

              Same here with “Loading” and nothing happens.

              Seems to be a problem with lon/lat.

              If i provide the example lon/lat it works.

              1 Reply Last reply Reply Quote 0
              • B Offline
                baschke
                last edited by yawns

                looks awesome but doesn’t work with the coordinates of Berlin. It says “loading” but nothing happens.

                {
                  module: "MMM-DarkSkyForecast",
                  header: "Weather",
                  position: "top_right",
                  classes: "default everyone",
                  disabled: false,
                  config: {
                    apikey: "db7derpderpderp214eae3b0f6e",
                    latitude: "52.520008",
                    longitude: "13.404954",      
                    iconset: "2m",
                    concise: false,
                    forecastLayout: "table",
                    language: "de"
                  }
                },
                
                1 Reply Last reply Reply Quote 0
                • K Offline
                  krouton
                  last edited by

                  I posted this on the GitHub page;

                  When I use the default Long and Lat, the module loads. London works as does Vancouver and New York however when trying Hawaii, Sydney, Paris, Cape Town, Moscow, Melbourne, and Wellington, the module will not load. Using https://www.latlong.net/ for Long and Lat.

                  When I use the same Long and Lat in this module that works with the Forecast.io module, the module won’t load. At first, I thought it was southern hemisphere’s (given the Lat is a ‘negative’ number) but that doesn’t appear to be the cause.

                  1 Reply Last reply Reply Quote 0
                  • rudibaraniR Offline
                    rudibarani Project Sponsor
                    last edited by rudibarani

                    @baschke, @karsten13, @Hein-Jan

                    @j-e-f-f has updated the module on GitHub. Go to the module folder and update it via git pull.

                    If the error still persists, leave out line

                    concise: false,

                    from the config file. That solved it for me in the prior version.

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

                      I had the same loading issue after just installing it…but leaving out the concise line worked for me too

                      Full time Dad, DJ and entertainer and lover of technology.

                      1 Reply Last reply Reply Quote 0
                      • lavolp3L Offline
                        lavolp3 Module Developer
                        last edited by

                        Beautiful module!
                        A bit too beautiful in my opinion since I’m currently putting a lot of work into MMM-forecast-io :-D

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User
                          last edited by

                          MMM-WeatherBackground supports MMM-DarkSkyForecast now. (Just set source as "MMM-DarkSkyForecast")
                          Thanks @j-e-f-f again.

                          1 Reply Last reply Reply Quote 1
                          • J Offline
                            jasondreher
                            last edited by jasondreher

                            Awesome!!! Just want I want after WeatherUndergrown stops its free api.

                            I have it working but it takes up my entire screen even thought its set to top_right. And I cant get it to take any config changes, like table vs tiled.

                            {
                              module: "MMM-DarkSkyForecast",
                              header: "Weather",
                              position: "top_right",
                              classes: "default everyone",
                              disabled: false,
                              config: {
                                apikey: "xxxx",
                                latitude: "xxxx",
                                longitude: "-xxxx",      
                                iconset: "4c",
                                concise: false,
                                forecastLayout: "table"
                              }
                            },
                            

                            Any idea why this would happen?

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

                              @rudibarani

                              @baschke, @karsten13, @Hein-Jan
                              
                              @j-e-f-f has updated the module on GitHub. Go to the module folder and update it via git pull.
                              
                              If the error still persists, leave out line
                              
                                  concise: false,
                              
                              from the config file. That solved it for me in the prior version.
                              

                              Had already the newest version, but leaving out concise: false did the trick. Thanks!

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                j.e.f.f Project Sponsor Module Developer @jasondreher
                                last edited by j.e.f.f

                                @jasondreher said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

                                I have it working but it takes up my entire screen even thought its set to top_right.

                                @rudibarani said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

                                @j-e-f-f has updated the module on GitHub. Go to the module folder and update it via git pull.
                                If the error still persists, leave out line

                                concise: false,

                                from the config file. That solved it for me in the prior version.

                                Both of the above issues are now fixed. Do a git pull for the latest version and restart Magic Mirror.

                                By default the width is fixed to 300px. If you wish to override this, you can do so in your custom.css file as follows:

                                .MMM-DarkSkyForecast .module-content {
                                  width: 500px; /* adjust this to taste */
                                }
                                
                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  j.e.f.f Project Sponsor Module Developer @BKeyport
                                  last edited by

                                  @bkeyport said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

                                  Does it handle midnight properly in 12 hour mode? So darned tired of the 0am stuff the other DarkSky one has. ;)

                                  I’m using moment.js to format the time display, and midnight gets displayed properly by default. You can also override the default display style for time with the parameter label_timeFormat. Provide any valid formatting string you can find from the moment.js docs: https://momentjs.com/docs/#/displaying/

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jasondreher @j.e.f.f
                                    last edited by

                                    @j-e-f-f

                                    All works great!! Love the module! Thanks

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

                                      I was using your MyWeather module and was really bummed that weather underground was shutting down their free API. I just found your new module last night and I am ecstatic to be able to switch over to this one. Everything seems to be working well except that I have a couple of Moon icons for the forecast table. 3 of the 7 days are showing moon/clouds instead of sun/clouds. Is that something I can fix or is it on Dark Sky’s end?

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        j.e.f.f Project Sponsor Module Developer @colel83
                                        last edited by

                                        @colel83 Do you have a screenshot?

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

                                          Sure. It’s only showing 2 incorrect icons tonight.
                                          0_1544068035128_20181205_213829.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            shbatm Module Developer
                                            last edited by

                                            @j-e-f-f Awesome module! Great replacement for MMM-Wunderground.

                                            Is there a way to turn off the total precipitation and max wind speed for the forecasts in the table, without turning it off for the current conditions?

                                            J 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
                                            • 3
                                            • 4
                                            • 5
                                            • 16
                                            • 17
                                            • 3 / 17
                                            • 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