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 showing only two days.

    Scheduled Pinned Locked Moved Troubleshooting
    31 Posts 22 Posters 11.4k Views 21 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.
    • kayakbabeK Offline
      kayakbabe @castletonroad
      last edited by

      @castletonroad I have had the same eperience too.

      1 Reply Last reply Reply Quote 0
      • Z Offline
        zxjason
        last edited by

        @oemel09 Thanks, your fix is working fine!

        1 Reply Last reply Reply Quote 0
        • R Offline
          radioman
          last edited by

          I have the same Problem
          Thanks, your fix is working very good

          1 Reply Last reply Reply Quote 0
          • M Offline
            MacRock
            last edited by

            Hey guys,

            may I’m to silly for that stuff but I’m not able to fix the 2 day problem.

            If I change something in the weatherforecast.js and reboot the pi, every value is default again. I have changed a file named entrypoint.sh in the build directory. I set there both MM_OVERRIDE values to “false”.

            Can please anybody help me to fix that?

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

              If you are using this docker setup you have to set the MM_OVERRIDE values in the docker-compose.yml file as described in the link above (and not in entrypoint.sh).

              The simple solution is to use the develop-image which contains already the changes you want to do. In this case you have to edit the docker-compose.yml file and replace the image from karsten13/magicmirror:latest to karsten13/magicmirror:develop.

              In both cases after editing the docker-compose.yml file you have to restart the container. So navigate into the directory where the docker-compose.yml file is located and run docker-compose up -d.

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

                @oemel09 legend, i was going insane over this one

                1 Reply Last reply Reply Quote 0
                • E Offline
                  ember1205
                  last edited by

                  Can anyone explain why the Free API from OpenWeatherMap shows 7 Day Forecast but the discussion here (and what I actually see) is only being able to retrieve 5 days?

                  In looking at the documentation from the weather site, it appears that the URL should be constructed differently than how this weather module is building it out. Specifically, the URL should be something like:

                  https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&exclude={part}&appid={API key}
                  

                  But the URL is -actually- being built as:

                  https://api.openweathermap.org/data/2.5/forecast?id={id}&appid={API key}
                  

                  It seems that the URL needs be different?

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 3 / 4
                  • 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