• 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.

Weatherforecast module problem

Scheduled Pinned Locked Moved Solved Troubleshooting
7 Posts 3 Posters 2.3k 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 Aug 12, 2018, 12:08 AM

    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 Aug 12, 2018, 12:36 AM

      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.

      M 1 Reply Last reply Aug 12, 2018, 12:43 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @sgault
        last edited by Mykle1 Aug 12, 2018, 12:43 AM Aug 12, 2018, 12:43 AM

        @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 Aug 12, 2018, 12:48 AM

          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.

          M 1 Reply Last reply Aug 12, 2018, 12:49 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @sgault
            last edited by Aug 12, 2018, 12:49 AM

            @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 Aug 12, 2018, 12:52 PM Reply Quote 0
            • C Offline
              Charley Module Developer @Mykle1
              last edited by Aug 12, 2018, 12:52 PM

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

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

              M 1 Reply Last reply Aug 12, 2018, 1:24 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @Charley
                last edited by Aug 12, 2018, 1:24 PM

                @charley

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

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/7
                  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