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 743.8k 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.
    • swvalentiS Offline
      swvalenti Project Sponsor
      last edited by

      Got it up and running looks sharp, I have one minor request as my OCD kicks in. Can the throughout the week line up better with the hourly above like the icons and other data sets? See picture, hope I made sense.

      Capture.JPG

      J 1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @j.e.f.f
        last edited by

        @j-e-f-f Just a FYI for your next update on OpenWeather -

        “apikey needs to be secified as a String, while latitude and longitude can be specified as either a String or a Number. Both work fine.” Minor typo. :)

        Trying it out myself.

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

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

          @j-e-f-f - OpenWeather is looking good here… solid as a rock.

          Thanks!

          (suggestions/questions deleted as I’m an idiot that don’t know how to read config instructions completely!)

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

          J 1 Reply Last reply Reply Quote 0
          • nitewing76N Offline
            nitewing76 @Egnos
            last edited by nitewing76

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @swvalenti
              last edited by

              @swvalenti

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

              Can the throughout the week line up better with the hourly above like the icons and other data sets?

              You can do this, but you’ll need to do it in your custom CSS. Here’s why:

              The old module used a single table for both weekly and hourly forecast. But with the additions I have made in this module, you can have different columns for your hourly forecast versus what you have for weekly, and therefore they are two separate tables, meaning they might self-adjust to the content in the columns differently, even if you have the same columns in both.

              I can’t enforce a uniform column width because a) I don’t know how many columns you’ll be using and b) I don’t know the width of the master region in Magic Mirror that you are using.

              So long winded way of saying that once you have configured your tables just the way you like, if you want them to be uniform, you need to take a the extra step to set explicit pixel widths for your columns in your custom CSS file. Here’s an example of what that could look like:

              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .forecast-item .time,
              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .forecast-item .day-name {
                width: 105px;
              }
              
              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .header-row .weather-icon-header,
              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .forecast-item .forecast-icon-container {
                width: 80px;
              }
              
              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .header-row .temperature-header,
              .MMM-OpenWeatherForecast .wrapper.table .forecast-container .forecast-item .temperature-container {
                width: 100px;
                white-space: nowrap;
              }
              

              Prefixing your CSS with .MMM-OpenWeatherForecast .wrapper.table limits your rules to just the MMM-OpenWeatherForecast module and specifically .wrapper.table will limit your rules to the table layout version. This way if you change your mind and switch to the tiled layout, it won’t be affected by the rules you set for the table layout.

              If you take a look at mmm-openweather-forecast.njk you can figure out what the class names are for each specific column, so you can target specific columns. I’ve given pretty much everything a unique class so you should be able to style everything exactly as you need. Make sure you style every column in your tables. If even one column is left unstyled you might get the same problem with them not lining up.

              I hope this helps!

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

                @bkeyport Glad it’s working for you! Thanks for pointing out the typo. Will fix.

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

                  @swvalenti @BKeyport

                  I’ve released the module for everyone. To get the latest code, you’ll need to navigate to your installed MMM-OpenWeatherForecast directory and execute:

                  git pull

                  followed by

                  npm install
                  (depencies have changed, so this step is important!)

                  Optionally you can run npm prune to remove old dependencies that are no longer used, but not necessary,

                  Restart MM and you should be good to go.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 30
                  • 31
                  • 32
                  • 33
                  • 34
                  • 34 / 34
                  • 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