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.

    Weatherforecast module problem

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 3 Posters 3.0k Views 3 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
      sgault
      last edited by

      I am very new to this so please go easy. I have been searching all afternoon on the forum trying to figure out what I’m doing wrong to no avail. I have the date, weather forecast, and calendar all set to top left on my mirror. The problem is the weatherforecast is set to display 7 days but will only display 5. I tried adding the following to my custom.css but it still doesn’t work.

      }
      .weatherforecast .maxnumberofdays {
      7;
      }

      I also tried deleting my calendar out of the config.js file thinking that I was running out of room on the monitor, but still only got 5 lines of weather.
      Any help would be greatly appreciated as my head is just about mush from beating it against the wall.![alt text]0_1534032279997_mm pic.JPG

      1 Reply Last reply Reply Quote 0
      • S Offline
        sgault
        last edited by

        OK after going back and reading the readme I figured out that I needed to put the configuration in my config.js I tried this and at 7 it only shows 5 entries. If I change it to 2 it will only display 2 as it should. I think my problem is the module sizing is wrong. Where do I change the height?

        thanks for any help.

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @sgault
          last edited by Mykle1

          @sgault

          There is something odd going on with that module (I think). I can’t get it to display more than 7 days, but everything below that value works as expected. Notice that maxNumberOfDays: 7, has no quotes.

          {
          			module: "weatherforecast",
          			position: "top_right",
          			header: "Weather Forecast",
          			config: {
          				location: "New York",
          				locationID: "5128581",
          				appid: "YOUR API KEY",
                          maxNumberOfDays: 7,
                          colored: true,
          			}
          		},

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S Offline
            sgault
            last edited by

            I took out the entry from my custom.css and put it in the config.js like it’s supposed to be. I’ve been getting the same results anything 5 or under works just fine. Don’t tell me I’ve been beating my head against the wall unnecessarily. Ugh.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @sgault
              last edited by

              @sgault

              Don’t kill the messenger (me). I didn’t go it!

              Create a working config
              How to add modules

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Charley Module Developer @Mykle1
                last edited by

                With the free option of openweathermaps the maximum is 5 days.

                MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Charley
                  last edited by

                  @charley

                  I get 7. I’m special. :-)

                  Create a working config
                  How to add modules

                  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 / 1
                  • 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