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

Scheduled Pinned Locked Moved Utilities
334 Posts 67 Posters 633.6k 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.
  • S Offline
    Smotx
    last edited by Smotx Nov 30, 2018, 7:54 PM Nov 30, 2018, 7:45 PM

    Beautifull but…

    On mine, 'Loading"…

    and no error on log:
    Module helper loaded: MMM-DarkSkyForecast
    …
    Connecting socket for: MMM-DarkSkyForecast
    ====================== Starting node_helper for module [MMM-DarkSkyForecast]
    …

    J 1 Reply Last reply Dec 2, 2018, 12:57 AM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Guest
      last edited by Nov 30, 2018, 8:34 PM

      @sean I think that’s doable. Should be a simple addition to the code. Will take a look this weekend.

      1 Reply Last reply Reply Quote 0
      • R Offline
        rudibarani Project Sponsor
        last edited by rudibarani Nov 30, 2018, 10:51 PM Nov 30, 2018, 10:17 PM

        So beautiful - thank you very much!!
        This is more than an adequate replacement for MyWeather. Great job!

        I’d like to bring forward three questions:

        • Does the module support the USER_PRESENCE notification to suspend / resume API calls? If not, it would be nice if you could consider that.

        • Could you please add an option for a"label_timeFormatSuffix"? It would be nice if the time could be displayed like “14h” if one uses the 24h format.

        • Could you please add an option to hide the icons above the table (umbrella and wind) to make it more compact, if needed?

        J 1 Reply Last reply Dec 1, 2018, 12:31 AM Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @rudibarani
          last edited by Dec 1, 2018, 12:31 AM

          @rudibarani

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

          Does the module support the USER_PRESENCE notification to suspend / resume API calls?

          It doesn’t suspend API calls based on user presence. This is intentional. I don’t spend more than about 30 seconds looking at my mirror, so when I do, I want the information that appears to be immediately up to date. By default the module polls every ten minutes for data, so you don’t run the risk of exceeding the 1000 request limit per day, nor are you really burning up a lot of CPU cycles to do so.

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

          Could you please add an option for a"label_timeFormatSuffix"?

          This is already possible. Look at the label_timeFormat parameter

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

          Could you please add an option to hide the icons above the table (umbrella and wind) to make it more compact, if needed?

          I’ll add this in at some point, but you can do it now in your custom CSS. Just hide the div with the .header-row class, like so:

          .MMM-DarkSkyForecast .header-row {
            display: none;
          }
          
          R 1 Reply Last reply Dec 2, 2018, 12:46 AM Reply Quote 0
          • R Offline
            rudibarani Project Sponsor @j.e.f.f
            last edited by Dec 2, 2018, 12:46 AM

            Dear @j-e-f-f,
            thanks for the quick reply. Today, I tried to get my toes wet with JS coding and added an option to hide the column header icons from the forecast table or optionally show a header above the forecast table. It seems to work as expected and I have created a pull-request to give others access to the feature as well and maybe safe you some time.

            I also found a way to hide the vertical lines from the table via the custom.css file and now the module looks even better, if a fullscreen background image is used.

            J 1 Reply Last reply Dec 2, 2018, 2:22 AM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @Smotx
              last edited by j.e.f.f Dec 2, 2018, 12:58 AM Dec 2, 2018, 12:57 AM

              @smotx I fixed a bug with the summary display last night. Try doing a git pull in the MMM-DarkSkyForecast directory, then restart MagicMirror. See if that fixes it.

              1 Reply Last reply Reply Quote 0
              • J Offline
                j.e.f.f Project Sponsor Module Developer @rudibarani
                last edited by Dec 2, 2018, 2:22 AM

                @rudibarani I merged your pull request, but then I did a bit of refactoring. I renamed the the parameter forecastTableHeaderText to forecastHeaderText, as it can be used in both the table and tiled views.

                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.

                Lastly, this update enables notifications for other modules. The notification is called DARK_SKY_FORECAST_WEATHER_UPDATE and the payload is Dark Sky’s weather JSON object. For details see https://darksky.net/dev/docs.

                R C 2 Replies Last reply Dec 2, 2018, 2:21 PM Reply Quote 0
                • R Offline
                  RedNax Module Developer @j.e.f.f
                  last edited by Dec 2, 2018, 6:20 AM

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

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BKeyport Module Developer
                    last edited by Dec 2, 2018, 11:53 AM

                    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 Dec 3, 2018, 11:12 PM Reply Quote 0
                    • R Offline
                      rudibarani Project Sponsor @j.e.f.f
                      last edited by rudibarani Dec 2, 2018, 2:41 PM Dec 2, 2018, 2:21 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 33
                      • 34
                      • 1 / 34
                      1 / 34
                      • First post
                        7/334
                        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